[PHP] Error Loading File

2002-06-11 Thread Bryan Gintz

I am getting this error with a new install of PHP4.2.1 and Zend 
Optimizer 1.3.1:

The file '/tmp/phpr4WYQY' must be in the database directory or be 
readable by all

I just updated PHP and the Zend Optimizer, and it had worked previously 
with PHP4.1.2,

Any ideas??

Thanks


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




[PHP] Mail stopped working - Somewhat Urgent

2002-02-07 Thread Bryan Gintz

All of a sudden Mail through PHP just stopped working, we can do it 
through the command line, but refuses to work in PHP.
Any ideas?

Thanks,
Bryan


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




Re: [PHP] How do I Resize an image?

2002-01-30 Thread Bryan Gintz

For Linux (Unix) you can get a tool called imagemagik (not sure of 
spelling) and do a system call to it from a php script.

Bryan

Francis Cronjé wrote:

I am new to php and wd appreciate any help!
I have been through the manual, but have found no solution:
1.How do I resize an image retrieved from an interbase database before =
displaying it on a page?

ie If the image is 800 x 600 pixels and I want to resize the image to =
256 x 192
2.Do I have to install gd library?

3.How do I display the image from the interbase database?







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Tables Loading Slow

2002-01-30 Thread Bryan Gintz

Hi.
I have a large database query that returns anywhere from 10-30ish 
records.  The problem comes from loading them in tables.  With IE5 and 
Netscape 5 on windows, the results do not display until the last 
/table tag is written.  Does anyone have any ideas on how to show the 
results as the come from the query?

Thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Page Not Found - on IE

2002-01-30 Thread Bryan Gintz

Sometimes with certain PHP scripts, when a form is posted to another PHP 
script, IE says the page cannot be found.  It seems to happen randomly, 
and if you refresh a couple times, you can then load the page.  

Any ideas on why, and how to fix it?

Thanks,


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





Re: [PHP] Redirect problem.... UGH!!

2002-01-30 Thread Bryan Gintz

Try it with JavaScript (a very nice supplement to PHP sometimes )
?
print SCRIPT\n;
print document.location=\index.html\;\n;
print /SCRIPT\n;
?


Ben Turner wrote:

I am trying to put together a very simple redirect from php.  all it is
supposed to do is pull down the $p var and ship the user off to the
destination.

Ready for some code?

?
 #Header(Location: index.html);
?

When I try this on a Linux server using PHP... everything works fine.  The
minute I put it on IIS5 (the clients server) I receive The specified CGI
application misbehaved by not returning a complete set of HTTP headers. 

I am guessing this is a bu with PHP and IIS but does anyone know how to
circumvent it?

Thanks!
Ben




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] MySQL Fetch_Array VS. Fetch_Object

2002-01-30 Thread Bryan Gintz

Does anyone know what the pros and cons of using mysql_fetch_object vs. 
mysql_fetch_array.

I find it easier to use the object version because you dont have to code 
any extra statements to put them into regular variables.

print $obj-field_name;
as opposed to
$field_name = $row[field_name];
print $field_name;

Im just curious to see if there are any problems (resources, etc) that 
come with using the object method???



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Page Not Found - on IE

2002-01-30 Thread Bryan Gintz

Sorry,

The page cannot be displayed  
DNS Error

Mike Frazer wrote:

Page not found (error 404) or Page cannot be displayed (a DNS error, as
stated at the bottom of the screen)?  I've seen the latter of the two
countless times, only in IE.

Mike Frazer


Bryan Gintz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Sometimes with certain PHP scripts, when a form is posted to another PHP
script, IE says the page cannot be found.  It seems to happen randomly,
and if you refresh a couple times, you can then load the page.

Any ideas on why, and how to fix it?

Thanks,








Re: [PHP] Re: Page Not Found - on IE

2002-01-30 Thread Bryan Gintz

If I do this:
$uniq = uniqid();
form name=junk action=frustrating.php?x=$uniq method=POST

It seems to get by the problem, but if anyone knows WHY it is doing 
this, please let me know.

Thanks

Mike Frazer wrote:

Page not found (error 404) or Page cannot be displayed (a DNS error, as
stated at the bottom of the screen)?  I've seen the latter of the two
countless times, only in IE.

Mike Frazer


Bryan Gintz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Sometimes with certain PHP scripts, when a form is posted to another PHP
script, IE says the page cannot be found.  It seems to happen randomly,
and if you refresh a couple times, you can then load the page.

Any ideas on why, and how to fix it?

Thanks,








[PHP] Re: [PHP-DB] Select statement only returns 1 record

2002-01-30 Thread Bryan Gintz

I don't know if this will help, and it begs an answer from my earlier 
question.  But here is an easy way to fill a drop-down (?) box with a 
mysql_query.

$sql=SELECT * FROM webl_players ORDER BY $sortby;
$result=mysql_query($sql,$db);
print select name=\canidate\;
while($obj = mysql_fetch_object($result))
{
print option;
print $obj-LastName, $obj-FirstName;
print /option;
}
print /select;
?
You will have to do some conditional stuff to get the right record to be 
automatically selected (option selected)
But this might help



Miles Thompson wrote:

 Check the manual for the mysql_fetch_array() function, it shows you 
 how to extract data from $result. You will use the while loop (as 
 shown in the manual's example) to fill your combo box / selct list 
 /drop down menu, whatever we're calling that creature today.

 Miles

 At 12:45 PM 1/30/2002 -0600, Todd Williamsen wrote:

 I am trying to get data from two columns, FirstName and Last name and
 displaying all the records LastName, FirstName in a drop down menu.

 The weird thing is that it only displays one record.  I thought the 
 table
 was hosed, but its not.  I tried it through another database and still
 doesn't work.

 Here is the code:

 ?
 $db = mysql_connect($dbserver, $dbuser, $dbpass);
 mysql_select_db($dbname,$db);
 $sortby = name ASC;
 $sql=SELECT * FROM webl_players ORDER BY $sortby;
 $result=mysql_query($sql,$db);
 $row = mysql_fetch_array($result);
 $FirstName = $row[FirstName];
 $LastName = $row[LastName];
 ?

 select name=canidate
   option selected
   ?php echo $LastName, $FirstName; ?
   /option

 I would list the whole page but its long!  There is another SQL 
 statement at
 the top of the page:

 ?php

 $db = mysql_connect($dbserver, $dbuser, $$dbpass);
 mysql_select_db($dbname, $db);
 $sql = SELECT * FROM Canidate SORT BY 'LastName';
 $result = mysql_query($sql);
 ?



 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQL Fetch_Array VS. Fetch_Object

2002-01-30 Thread Bryan Gintz

Personal preference, and all my code is written with that so far, but 
seeing about the speed issue, that might change.

Thanks.

Jim Lucas [php] wrote:

oh and mysql_fetch_object is a little slower then mysql_fetch_array()

Jim Lucas
- Original Message - 
From: Bryan Gintz [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 10:48 AM
Subject: [PHP] MySQL Fetch_Array VS. Fetch_Object


Does anyone know what the pros and cons of using mysql_fetch_object vs. 
mysql_fetch_array.

I find it easier to use the object version because you dont have to code 
any extra statements to put them into regular variables.

print $obj-field_name;
as opposed to
$field_name = $row[field_name];
print $field_name;

Im just curious to see if there are any problems (resources, etc) that 
come with using the object method???



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]








Re: [PHP] Re: Page Not Found - on IE

2002-01-30 Thread Bryan Gintz

It does now, but supposedly, it still doesn't work.  
I tried to force it to look for refresh by making the form action call 
the script with a unique id

Nick Wilson wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Mike Frazer blurted

I have no idea what may work as a permanent fix.  It's just one of those
annoying Windows errors.  I have, however, found that most often there's an
error in your code that isn't a compile-time error.


Does the URL have vars in it? like ../index.php?var=hivar2=there

Just curious.

- -- 

Nick Wilson

Tel:   +45 3325 0688
Fax:   +45 3325 0677
Web:   www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8WF2gHpvrrTa6L5oRAp2WAKCp5tpnpkbkzKAXCQMIWp4gOvK0SACfd3ej
l4Hzp3oHua4ChFUCzZc58pk=
=JEQo
-END PGP SIGNATURE-





Re: [PHP] Re: Page Not Found - on IE

2002-01-30 Thread Bryan Gintz

It was was just the script:
form name=junk action=script.php method=POST

The script was there, and it would work if you refreshed it a bunch, but 
then it would give page could not display error ??


Nick Wilson wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Bryan Gintz blurted

It does now, but supposedly, it still doesn't work.  
I tried to force it to look for refresh by making the form action call 
the script with a unique id


What /was/ the URL when it was giving you trouble?

- -- 

Nick Wilson

Tel:   +45 3325 0688
Fax:   +45 3325 0677
Web:   www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8WGgGHpvrrTa6L5oRAsmeAJ9G/qipZy2xNny6SafxkCHXn5TULACeO8Ui
yjiV6QhOFA6tXtQPu/vdBxE=
=POqY
-END PGP SIGNATURE-