Page 1 of 1

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

Posted: Thu Aug 03, 2006 3:51 am
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]

Posted: Thu Aug 03, 2006 4:06 am
by JayBird
Youve got a fairly obvious typo...look closer Image

Hint: its easier to spot when using the correct forum tags Image

Posted: Thu Aug 03, 2006 4:13 am
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:

Posted: Thu Aug 03, 2006 4:15 am
by JayBird

Code: Select all

"/members.php/userinfo"
Doesn't that type of link require some kind of mod_rewrite going on?

Posted: Thu Aug 03, 2006 4:19 am
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

Posted: Thu Aug 03, 2006 4:41 am
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!