[PHP] "The page you are looking for cannot be displayed because the page address is incorrect. "

2003-10-21 Thread AMC
Hi,

I'm trying to post from an asp page to a php and I get this error:

The page you are looking for cannot be displayed because the page address is
incorrect.

then later on in the same page I get the error:

http 405 resource not allowed
internet information services.

I have no experience with php so any advice on what is causing this would be
greatly appreciated (and please excuse any bone-head mistakes). Both pages
reside in the same directory.

Thanks,
AC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] use php to download mysql table

2004-09-18 Thread AMC
Hi,

Does anyone have any sample code that will download a mysql table to an
excel file?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] very basic php mysql question

2004-09-20 Thread AMC
Hi,

I have a php page with the code below. The page doesn't show the record from
the database when it runs and I'm not sure why. I'm not getting any error
message, just a blank page. There is one record in the tabele I'm trying to
query.
I'm brand new to php so I'd really appreciate the help.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] very basic php mysql question

2004-09-20 Thread AMC
Thanks,

the script runs now, but I cannot open a connection. I know the user name,
and password are correct. What could be the cause?



"Matthew Sims" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >
> > I have a php page with the code below. The page doesn't show the record
> > from
> > the database when it runs and I'm not sure why. I'm not getting any
error
> > message, just a blank page. There is one record in the tabele I'm trying
> > to
> > query.
> > I'm brand new to php so I'd really appreciate the help.
> >
> >  >
> >
> >
> > $user = "aclark";
> >
> > $host = "localhost";
> >
> > $password = "ajaxx";
> >
> > $database = "corrigent";
> >
> > $connection = mysql_connect($host, $user, $password)or die("can't open
> > damn
> > connection");
> >
> > $db = mysql_select_db($database, $connection) or die("can't open damn
> > database");
> >
> > $query = "select * from customer";
> >
> > $result = mysql_query($query) or die ("couldn't execute query");
> >
> > while ($row = mysql_fetch_array($result));
> >
> > {
> >
> > extract($row);
> >
> > echo $company;
> >
> > }
> >
> > ?>
> >
>
>
> Your while statment has a ; at the end of it.
>
> while ($row = mysql_fetch_array($result)) {
>   echo $row["company"];
> }
>
> -- 
> --Matthew Sims
> --

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] very basic php mysql question

2004-09-20 Thread AMC
I figured it out - using the wrong info for host

Thanks again
"Amc" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks,
>
> the script runs now, but I cannot open a connection. I know the user name,
> and password are correct. What could be the cause?
>
> 
>
>
> $user = "aclark";
>
> $host = "localhost";
>
> $password = "ajaxx";
>
> $database = "corrigent";
>
> $connection = mysql_connect($host, $user, $password) or die("can't open
damn
> connection");
>
> $db = mysql_select_db($database, $connection) or die("can't open damn
> database");
>
> $query = "select * from customer";
>
> $result = mysql_query($query) or die ("couldn't execute query");
>
> while ($row = mysql_fetch_array($result))
>
> {
>
> extract($row);
>
> echo $company;
>
> }
>
> ?>
>
> "Matthew Sims" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > >
> > > I have a php page with the code below. The page doesn't show the
record
> > > from
> > > the database when it runs and I'm not sure why. I'm not getting any
> error
> > > message, just a blank page. There is one record in the tabele I'm
trying
> > > to
> > > query.
> > > I'm brand new to php so I'd really appreciate the help.
> > >
> > >  > >
> > >
> > >
> > > $user = "aclark";
> > >
> > > $host = "localhost";
> > >
> > > $password = "ajaxx";
> > >
> > > $database = "corrigent";
> > >
> > > $connection = mysql_connect($host, $user, $password)or die("can't open
> > > damn
> > > connection");
> > >
> > > $db = mysql_select_db($database, $connection) or die("can't open damn
> > > database");
> > >
> > > $query = "select * from customer";
> > >
> > > $result = mysql_query($query) or die ("couldn't execute query");
> > >
> > > while ($row = mysql_fetch_array($result));
> > >
> > > {
> > >
> > > extract($row);
> > >
> > > echo $company;
> > >
> > > }
> > >
> > > ?>
> > >
> >
> >
> > Your while statment has a ; at the end of it.
> >
> > while ($row = mysql_fetch_array($result)) {
> >   echo $row["company"];
> > }
> >
> > -- 
> > --Matthew Sims
> > --<http://killermookie.org>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] generating a mysql script

2004-09-20 Thread AMC
Is there a tool that will generate a script that can be run to rebuild a
mysql database? I need to move my database to a different server

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] accessing querystring values

2004-09-21 Thread AMC
Hi,

How do you access values sent to a page as part of a querystring in php?

ac

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php upload script problems

2004-09-24 Thread AMC
Hi,

I have the following php page. The page just opens up blank and I assume I
made an error I cannot see. I'm new to php and any help would  be greatly
appreciated:

http://www.corrige2.bluehill.com/pdfs";; //url where files are
uploaded

$absolute_path = "http://www.corrige2.bluehill.com/pdfs";; //Absolute path to
where files are uploaded

$websiteurl = "http://www.corrige2.bluehill.com";; //Url to you website

$websitename = "Corrigent";



switch($action) {

default:

echo "Upload Or DownloadUpload File Download File";

echo "Return to $websitenamePowered by PHP
Uploader Downloader";

break;

case "download":

echo "File DownloadUpload File Return to
$websitename";

$list = "";

$list .= "Click To
Download";

$dir = opendir($absolute_path);

while($file = readdir($dir)) {

if (($file != "..") and ($file != ".")) {

$list .= "$file";

}

}

$list .= "";

echo $list;

echo"Powered by PHP Uploader Downloader";

break;

case "upload":

echo"File UploadFile to upload:";

echo"UploadPowered by PHP Uploader
Downloader";

break;



//File Upload

case "doupload":

$dir = "dir";

if ($file != "") {

if (file_exists("$absolute_path/$file_name")) {

die("File already exists");

}

$ext = strrchr($file_name,'.');

if (($extlimit == "yes") && (!in_array($ext,$limitedext))) {

die("The file you are uploading doesn't have the correct extension.");

}

@copy($file, "$absolute_path/$file_name") or die("The file you are trying to
upload couldn't be copied to the server");

} else {

die("Must select file to upload");

}

echo "File Uploaded";

echo $file_name." was uploaded";

echo "Upload Another File Download File Return
to $websitenamePowered by http://www.zachwhite.com/>PHP
Uploader Downloader";

break;

}

?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] how to retrieve path to web server files

2004-09-25 Thread AMC
Hi,

How can I get the string that is the path to the directories on my web
server? I need to upload some files, but don't know what to supply for the
destination path. In asp I used server.mappath, but I'm new to php.

Thanks,

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] redirecting to another page

2004-09-25 Thread AMC
Hi,

What code do I use to redirect a user to a different page in php?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] problem with file upload script

2004-09-27 Thread AMC
Hi,

Here is a script I'm using to upload files. Can anyone see anything wrong
with it?  No file is uploaded when I click the upload button











http://schemas.microsoft.com/intellisense/ie5";>












Browse for file to upload:









-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: problem with file upload script

2004-09-27 Thread AMC
Hi,

I changed the script to upload to a different directory but it still doesn't
work, any ideas?  I really appreciate the help.











http://schemas.microsoft.com/intellisense/ie5";>












Browse for file to upload:









"Mike" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I don't know if I'm right, but ckeck this out:
> the echo $_FILES['file']['name'] variable holds the file name on the
> computer that uploads the file. and in one place you try to move the
> uploaded file from the temp folder back into the folder where it came
from.
> I suggest you create a new folder on the server you are using and move the
> file there.
> Hope it helps.
>
> "Amc" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> >
> > Here is a script I'm using to upload files. Can anyone see anything
wrong
> > with it?  No file is uploaded when I click the upload button
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> >  > content="http://schemas.microsoft.com/intellisense/ie5";>
> >
> > 
> >
> > 
> >
> >
> >  >
> > echo $_FILES['file']['tmp_name'];
> >
> > echo $_FILES['file']['name'];
> >
> > move_uploaded_file("{$_FILES['file']['tmp_name']}",
> > "{$_FILES['file']['name']}");
> >
> > ?>
> >
> >
> >
> >  > enctype="multipart/form-data">
> >
> > Browse for file to upload: > ID="File1"/>
> >
> > 
> >
> > 
> >
> > 
> >
> > 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: problem with file upload script

2004-09-27 Thread AMC
I did read this and it did not resolve the problem

"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> AMC wrote:
>
> >Hi,
> >
> >I changed the script to upload to a different directory but it still
doesn't
> >work, any ideas?  I really appreciate the help.
> >
> >
> You are not the first person to run into problems with file uploads.
> Quite a few of those who managed to overcome them posted their finding
> at the link that Jay has sent. It seems obvious that you have not read it.
>
> -- 
> Raditha Dissanayake.
> 
> http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> Graphical User Inteface. Just 128 KB | with progress bar.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] empty connection string

2004-05-21 Thread AMC
Hi,

I'm using an include file to store the connection string to a mysql db.
Whenever I try to reference that a string to open a connection I get the
error 'empy connection string' . When I write the string to the page using
response.write(connectionstring) it shows up fine. Is the something else
that I need to do?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] empty connection string

2004-05-21 Thread AMC
Yes
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote AMC ([EMAIL PROTECTED]):
> > Hi,
> >
> > I'm using an include file to store the connection string to a mysql db.
> > Whenever I try to reference that a string to open a connection I get the
> > error 'empy connection string' . When I write the string to the page
using
> > response.write(connectionstring) it shows up fine. Is the something else
> > that I need to do?
>
> Are we talking about PHP here?
>
> Curt
> -- 
> "I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php