logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Video Tutorials
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-20-2007, 11:34 AM   #1
craig
 
Join Date: Feb 2007
Location: Notts, Uk
Posts: 11
Default url prefix error

hi dj

I was doing your php video tutorials last night and i am haveing a problem previewing what i have done in the browser. when defineing the website i type in to the url prefix in the test server catogary and i get a warning box pop up that says:

"The url prefix [/Test] for testing server does not match the site url prefix [] specified in HTTP address for the site.This may cause site relative links to display incorrectly at run time proceed anyway?"

This what i typed into that box:

http://localhost/Test/

Sorry if this is a stupid question and i am just being a dumb ass!!

Thanks for the help Dj and the tut's are awsome!!

Craig
craig is offline   Reply With Quote
Old 02-20-2007, 12:27 PM   #2
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

in dreamweaver you should have a php file your working on with the php extension

if you have setup your servers correctly and your Apache is running then if you press F12 you will launch the page in the browser.

try this and tell me what happens
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-20-2007, 02:04 PM   #3
craig
 
Join Date: Feb 2007
Location: Notts, Uk
Posts: 11
Default

Hi again

I have done the php files in the folders as explained in your tutorial for connection.php and dwc.php but when i press f12 i am getting this error:

Parse error: syntax error, unexpected $end in C:\wamp\www\Test\images\dwc.php on line 27

I have checked in my server error log and i have this error coming up:

[Tue Feb 20 13:47:26 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Tue Feb 20 13:47:26 2007] [notice] Server built: Jan 9 2007 23:17:20
[Tue Feb 20 13:47:26 2007] [notice] Parent: Created child process 2488
[Tue Feb 20 13:47:26 2007] [notice] Child 2488: Child process is running
[Tue Feb 20 13:47:26 2007] [notice] Child 2488: Acquired the start mutex.
[Tue Feb 20 13:47:26 2007] [notice] Child 2488: Starting 250 worker threads.
[Tue Feb 20 13:47:26 2007] [notice] Child 2488: Starting thread to listen on port 80.
[Tue Feb 20 13:50:03 2007] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/CFIDE
[Tue Feb 20 13:55:10 2007] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/CFIDE

HELP!!!
craig is offline   Reply With Quote
Old 02-20-2007, 02:24 PM   #4
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

post the code to dwc.php
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-20-2007, 02:27 PM   #5
craig
 
Join Date: Feb 2007
Location: Notts, Uk
Posts: 11
Default

PHP Code:
<?php
require_once("_notes/connections/connection.php");//Database connection script
/////////////////////////////////////////////
$query  =  sprintf("SELECT * FROM table1");
$result =  @mysql_query($query);
$row    =  mysql_fetch_array($result);
/////////////////////////////////////////////
do {
echo 
$row['field2'];
?>
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
craig is offline   Reply With Quote
Old 02-20-2007, 02:30 PM   #6
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

i dont know what you have been doing but...

where you have require_once("_notes. this is incorrect. I dont know why you have this in _notes ???

also why do you have dwc.php in images dir ????
PHP Code:
<?php
require_once("_notes/connections/connection.php");//Database connection script
/////////////////////////////////////////////
$query sprintf("SELECT * FROM table1");
$result = @mysql_query($query);
$row mysql_fetch_array($result);
/////////////////////////////////////////////
do {
echo 
$row['field2'];
?>
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-20-2007, 02:49 PM   #7
craig
 
Join Date: Feb 2007
Location: Notts, Uk
Posts: 11
Default

where you have require_once("_notes. this is incorrect. I dont know why you have this in _notes ???

I dont know why this has happend either i think it is because i moved the file at some point by accident? (i think) I have removed it now though.

also why do you have dwc.php in images dir ????

Becuse that is where it is in your video tutorial
EDIT (sorry it is not where you have it it is me reading your tree wrong sorry).

My code now looks like this:

PHP Code:
<?php
require_once("connections/connection.php");//Database connection script
/////////////////////////////////////////////
$query sprintf("SELECT * FROM table1");
$result = @mysql_query($query);
$row mysql_fetch_array($result);
/////////////////////////////////////////////
do {
echo 
$row['field2'];
?>
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
and when i press f12 i am still getting this error:

Code:
 
Parse error: syntax error, unexpected $end in C:\wamp\www\Test\connections\dwc.php on line 27

Last edited by craig; 02-20-2007 at 02:51 PM..
craig is offline   Reply With Quote
Old 02-20-2007, 02:55 PM   #8
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

so you now have dwc.php in your Connections dir ???
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-20-2007, 03:00 PM   #9
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

your
PHP Code:
Do{ 
loop is incomplete

you need to follow the tuts to the letter but not autonomously. You need to understand and absorb the consept or your going to run into problems
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 02-20-2007, 03:01 PM   #10
craig
 
Join Date: Feb 2007
Location: Notts, Uk
Posts: 11
Default

Quote:
Originally Posted by davidj View Post
so you now have dwc.php in your Connections dir ???
yes and i am now getting this error when pressing f12

Parse error: syntax error, unexpected $end in C:\wamp\www\Test\connections\dwc.php on line 27

Sorry for being such a pain in the ass
craig is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com