PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a file that will have a domain name in it along with other info the domain would be like this http://www.mydomain.com
Now the script of course would chk to see if the file exists but will compare the domain name from file to the url/domain. I need to have it give a error if they dont match
remember the file would have other info so it would have to look for the domain name/
I have tried everything but nothing seems to work for me here is code i have
another thing is i would use file.txt instead of file.php if your just using the file to store your information as a string. and instead of storing your data in a file why not use a database.
it didnt work. I changed it to a txt file and when i put the domainname in teh file and ran it on the same domain i still get a error msgs from the code.
it should be ok since its the same domain but its not
you where declaring $pageUR1 inside the if statement comparing $pageURL to $section. im assuming $pageUR1 and $pageURL are the same variable and there was just a typo.