|
Hi,
I'm writing a PHP script that runs on my computer, and I was wondering if anyone knows how to retrieve the internet IP of my computer (even if it's behind a router). I tried using gethostbyname('localhost'); and gethostbyname('MYCOMPUTERNAME');, both simply return the IP of the computer within the network.
Joel Holdsworth
|
|
|
|
|
I'm having the same problem...I used ipconfig though...which works for all computers inside my home's router but nothing appears to work when entered remotely
If you figure it out lemme know please...
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
You need to have another server (outside of your network) that you can access to get your external IP (or, as an alternative, a program running on your router that you can query).
There are quite a few servers on the web that you can query to get your external IP as seen by the Internet (the first is the easiest to query, but you may want others to fall back on in case the first is down):
http://www.phpfreaks.com/myip.php[^]
http://www.whatismyip.com/[^]
http://www.networkports.net/yourip.php[^]
- Mike
|
|
|
|
|
way cool...thank you
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
I have a table which grows dynamically. Every row has different height due to its text inside which varies so the height of the row. Does someone know how to find pixel height of the table? I am using JavaScript.
Agha Khan
|
|
|
|
|
|
Agha Khan wrote:
Dear Richard Deeming:
Thank you for a kind reply. It does work perfectly.
Let me ask you another question. You might know the answer.
I created a calendar, which has a table. Every cell of the calendar
(table) has a text associated (Date) with it.
The user can double click to select the text, but I want to prevent
that. Do you any ideas how we can stop double click?
By the way I went to UMIST (Manchester, UK) for my BS in Mathematics.
Best regards,
Agha
Try adding onselectstart="return false;" to your table.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
A few days ago i moved a asp-application i created to a new server. This application connects to an access-database by using odbc.
Funny thing is, that is can connect to the database and read records without problems, but whenever i try to write data in to the database i get an internal server error.
On the old server everything worked ok. The datase is writeenabled and there is no password on it.
The difference is, on the new server runs IIS 6.
So maybe some settings have to be changed to allow me to write to the database but i have no idea what to change. I have given writeaccess to every user of my application, but this didn't make any difference.
Any idea would be highly appriciated, cause i am starting to get a little desperate by now!
|
|
|
|
|
|
GREAT!
This was the solution. I didn't even think about the "NETWORK_SERVICE" user until your mail and now everything is running fine.
THANK YOU VERY MUCH FOR YOUR HELP!
|
|
|
|
|
I have a web based application developed in delphi 5. This program accesses some Html files and is using TGeneralHttpEngine CGI component. This is a third party component. How do I debug this program.
I have tried seting the run parameter to
Host application : C:\WINDOWS\system32\inetsrv\inetinfo.exe
Parameters : -e w3svc.
Also i have set myself as a part of operating system.
I am putting some break points in the program and trying to debug the program by giving corresponding url in the browser, but the control does not goes to my application. Let me know if I am missing anything? Or is there any other way to achieve this?
|
|
|
|
|
hi all . i need to know how can i do a dynamic timer not static.
date.now give the time but it will stay static.
i want to make the clock dynamic (always changed)
|
|
|
|
|
Are you refering to a clock like thing? Something to spit out the current time? Or are you talking about a timer that counts time to an event?
|
|
|
|
|
Hi everyone,
I've got a very annoying problem with MS Frontpage 2002.
Every time I try to open a HTML file that is part of a web, the program crashes. It's the same problem when opening the web directly.
I'm using WinXP, and I just can't Frontpage to work on any of my 3 machines.
Any ideas?
|
|
|
|
|
Why use frontpage?? Use some good HTML editing toolssss
I was born intelligent Education ruined me!.
|
|
|
|
|
|
a page used as a menu in an active desktop enviroment is made up of frames. the menu being the top frame and a main frame for viewing, very simple... So how can i keep a page, such as "Code Project", from jumping out of the frame and taking the whole active window over?
shotgun
|
|
|
|
|
I do not think you can do this. Sites that do what you are describing do this on purpose. They don't want to be framed as part of another site/application. Am I wrong?
// Steve McLenithan
Cluelessnes: There are no stupid questions, but there are a lot of inquisitive idiots.
|
|
|
|
|
I have built a custom web control with C#. For some reason, when another control fires a postback (such as a drop down list with AutoPostBack set to true is changed), the event handler for my custom control gets fired as well as the event that is intended to get fired. Does anyone have an idea why this might be?
Thanks.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Hi,
I need to re-define the root of my html-page in the following sense:
When you write the picture will be taken from the websites root/pics/ folder. Now, I want to dynamically change this, say I have two different sets of images in
root/picsA and root/picsB - and I want to write something like
<image-root "="" picsa"="">
get it ? All pictures (etc.) must be loaded from another root than the default. I've looked at the <base..> tag, but it doesn't seem to be what I need. any other suggestions ?
Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert
|
|
|
|
|
What language are you wanting to accomplish this with? Regardless, you will have to process what you want on the server side. There are no HTML tags to accomplish what you want. It is a static markup language. Future browsers may have support for something like this using xml (xhtml maybe -- see http://www.w3.org/TR/xhtml1/ for the complet xhtml spec), but browsers in their current iteration do not. I would suggest that you create some routine that keeps track of all your images and inserts a record for each one into a database. Then you can grab an image record and the image path and place those in your src tag.
If you need more specific help, tell me what language you're using.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Thanks for your answer
I just hoped there would be something like the <base target="myOtherFrame" /> or whatever that could specify a common "root" for all source references (css, images, etc.) - but as I couldn't find it, I asked here. I'll trust you on the "There are no HTML tags to accomplish what you want" statement
Acutually, I'm generating the HTML from a template file with tags I replace with content - all done form C#. In the meantime, I've discovered some other problems regarding the folder-structure / IIS setup I'm using, so I think I'll move to a different setup, where I won't need this "root-switch".
But thanks again - this is why I like CP so much. You usually get at least one answer on a query. A lot of other sites seem to contain primarily questions and no answers...
/Jan
Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert
|
|
|
|
|
Doesn't this work?
<base href="http://your-web-site.com/rootB/" />
I believe it's depreciated in HTML 4.0, but there is a HTTP header you can send to do the same thing.
|
|
|
|
|
that would switch all relative to rootb not just img tags
"there is no spoon" biz stuff about me
|
|
|
|
|
Can anyone recommend a shopping cart? Hopefully a free one. I
have looked at them all. Agoracart is terrible. OsCommerce is
great, but lots of little adjustments.
Does an easy shopping cart exist?
|
|
|
|