phpmyEdit???? - HELP HELP HELP 404 Error.

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!

Moderator: General Moderators

Post Reply
vixpoes
Forum Newbie
Posts: 4
Joined: Thu Aug 03, 2006 3:30 am

phpmyEdit???? - HELP HELP HELP 404 Error.

Post by vixpoes »

Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


I'm having MAJOR problems getting php code to work on a new server.

My friend has a website and her previous hosting seems to have gone bust - so I took a complete copy of the database and files and got her moved  over to a new hosting which has PHP and MySQL.

Some of the php pages work, but some do not and I get a 404 Error

In the page I have links as follows:-

Code: Select all

<td align="center" width="40%">							<a href="/members.php/userinfo">Change User Info</a>
</td>
Nothing major, the link should then point to the case for the userinfo include:-

Code: Select all

case 'userinfo':{
		print "<!-- start of phpmyedit --><p>";
		print '<table align="center" width="100%" ><tr><td>&nbsp;<p>';
			include( phpmyEditUserProfile.php" );
			print '</td></tr></table>' ;
			print "<!-- end of phpmyedit -->  " ;
			break;
		}
But everytime I click on the link, it gives me a 404 error, and I know for a fact that the files are there!

Any ideas??????

Many thanks in advance.

Vixpoes


Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Youve got a fairly obvious typo...look closer Image

Hint: its easier to spot when using the correct forum tags Image
vixpoes
Forum Newbie
Posts: 4
Joined: Thu Aug 03, 2006 3:30 am

Post by vixpoes »

Hi,

I put the double quote back in the code (That was a copy paste error onmy part!), but I still get the 404 error.


Boohoo! :cry:
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Code: Select all

"/members.php/userinfo"
Doesn't that type of link require some kind of mod_rewrite going on?
vixpoes
Forum Newbie
Posts: 4
Joined: Thu Aug 03, 2006 3:30 am

Post by vixpoes »

I'm not sure but looking it up now - I didn't originally write the pages, but the old hosting guy did - so i'm trying to figure out his code.

My experience is in thick client development (Java/SQL etc etc) - so i'm completely doing this blind as I haven't done php for years ans its all changed somewhat.

I do know his server had Apache and he had .htaccess files dotted all round - so i'll go investigate

Thanks
vixpoes
Forum Newbie
Posts: 4
Joined: Thu Aug 03, 2006 3:30 am

Post by vixpoes »

Ok

The new server does not have apache and will not allow .htaccess files to rseide and the woman bought a WINDOWS server Arrrrrrrrrrrrrrrrrrrrrrrrgh!

Why did I offer to help!
Post Reply