[PHP] 4.3.10 failure

2004-12-26 Thread PaulWB
There is nothing on the website about the failed release of 4.3.10, I don't know how many of us have had to back out from this update but it is creating problems out in the wild. The problems with 4.3.10 need to be identified and resolved, there is a critical bug in 4.3.10 that consumes

[PHP] 4.3.7 array serialize problem

2004-12-26 Thread pf
Hi! Have PHP 4.3.7, magic_quotes_gpc = On Have a multidimensional array made from values from a POST form. It addslashes() every field of the form as expected, like (') = (\'), etc. When I searialize the array to put it into a mysql db it seems to fail to describe the string lenght of values with

Re: [PHP] 4.3.7 array serialize problem

2004-12-26 Thread Jason Wong
On Sunday 26 December 2004 16:41, [EMAIL PROTECTED] wrote: Have PHP 4.3.7, magic_quotes_gpc = On Have a multidimensional array made from values from a POST form. It addslashes() every field of the form as expected, like (') = (\'), etc. When I searialize the array to put it into a mysql db

[PHP] Using PHP to send file through a http pipe?

2004-12-26 Thread Jack
I was wondering if I could get some help on a minor problem I have. Here's the deal I have set up on my system. http://ftp.brajah.com/ I created this simple little interface to list files and directories in the public ftp folder. The only problem is, I had to move the whole directory to my web

[PHP] snmp nodes

2004-12-26 Thread arun parajuli
I am trying to get object data from a cisco AS5300 universal gateway through snmp. i am using the getsnmp,walsnmp etc functions of php. my proble is. i want to get cisco data using node address 1.3.6.1.4.1.9( when we start from the root of the tree) but php starts to look from the MIB node

Re: [PHP] getting home directory path

2004-12-26 Thread Greg Donald
On Sat, 25 Dec 2004 15:36:05 -0500, Sebastian [EMAIL PROTECTED] wrote: how do i get the path to my home directory.. eg, /usr/home/ $_SERVER['home'] -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

[PHP] Interfaces and Access Levels

2004-12-26 Thread Gerard Samuel
I would like bar::do_something_internal() to have an access level of *private* But this would fail, as the interface can only have *public* methods. Is there a way to get bar::do_something_internal() to be private? Or am I SOL, and it has be public? Thanks interface foo { function

[PHP] Re: [PHP-DB] what is wrong with my code.. please help

2004-12-26 Thread S Kumar
Dear group, I am trying to query my db and print the results. when i execute my script, i am not getting any result except a blank page. can any one please help me what is going wrong with my script. Script: $conn = pg_connect(user = $user dbname = $dbname host = $host password =

Re: [PHP] Using PHP to send file through a http pipe?

2004-12-26 Thread Curt Zirzow
* Thus wrote Jack: What I want to do is have a file (like get.php) which will read the file on the drive, and then transfer it through to the client on the browser. (ie: get.php?file=/atcommand.txt ) Is there a simple way to do this while reducing security concerns? (Ie: reading

[PHP] handling large files w/readfile

2004-12-26 Thread Sebastian
i'm working on a app which output files with readfile() and some headers.. i read a comment in the manual that says if your outputting a file php will use the same amount of memory as the size of the file. so, if the file is 100MB php will use 100MB of memory.. is this true? if it is, how can i

Re: [PHP] A serious bug? or operator gives out diffferent results depending on order of operands

2004-12-26 Thread Rory Browne
I think what Jose is trying to say, is that because 'or' has a lower precidence than =, you are interpreting the expression wrong. $b1 = is_null($x) or ($y 5); is the same as ($b1 = is_null($x)) or ($y 5) This assigns the value of is_null($x) to $b1, regardless of the result of ($y 5). It's

Re: [PHP] handling large files w/readfile

2004-12-26 Thread Heilig \(Cece\) Szabolcs
Hello! i'm working on a app which output files with readfile() and some headers.. i read a comment in the manual that says if your outputting a file php will use the same amount of memory as the size of the file. so, if the file is 100MB php will use 100MB of memory.. is this true? if it

Re: [PHP] handling large files w/readfile

2004-12-26 Thread Raditha Dissanayake
Sebastian wrote: i'm working on a app which output files with readfile() and some headers.. i read a comment in the manual that says if your outputting a file php will use the same amount of memory as the size of the file. so, if the file is 100MB php will use 100MB of memory.. is this true? I

Re: [PHP] MP3s

2004-12-26 Thread Richard Lynch
GH wrote: I am working on a PHP based website and would like to offer media to my visitors... I have the Audio in WMA and MP3 formats... I would like to know how I could get them to Stream? inline... using PHP any advice would be greatfully appreciated Having done this (a lot) I'll add

Re: [PHP] A serious bug? or operator gives out diffferent results depending on order of operands

2004-12-26 Thread Richard Lynch
Bogdan Ribic wrote: $b1 = is_null($x) or ($y 5); $b2 = ($y 5) or is_null($x); To add to what has been posted already: If 'or' isn't what you want '||' probably *IS* what you want. Watch out though -- Sometimes even the precedence of '||' isn't as high/low as I hoped, and if in doubt, use

Re: [PHP] How do I underline a string using php and fonts?

2004-12-26 Thread Richard Lynch
Brent Clements wrote: I have always wondered this and maybe you guys can help. How do I underline a bit of text using True Type Fonts? Right now, I am creating imagelines but I don't think that's the most efficient way of doing it. Anybody know how to do underlines but using the font

Re: [PHP] Any bright solution for my problem?

2004-12-26 Thread Richard Lynch
QT wrote: I have a database with thousands records. And every minutes I am selecting 50 rows from that database and send some data to another web url according sellected 50 rows. Whenever, my script finish job in one minute, I have no problem. Because after each transaction, I am uptading

[PHP] Re: negative numbers

2004-12-26 Thread Richard Lynch
I've managed to delete the original post, so apologies in advance if I got the Subject wrong and/or am missing the threading headers. Plus, this post isn't even strictly necessary, and could be construed as pedantic. Oh well. To change -40 to 40, http://php.net/abs is probably the best answer

Re: [PHP] Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-26 Thread Richard Lynch
Rinke Hoekstra wrote: I have a rather odd problem. Since a few days, my otherwise perfect SuSe 9.0 Apache2 server started to do some funny stuff. In general, php works fine, and I can do anything I want... after a little while Firefox/IE starts asking me whether I want to download/run the php

Re: [PHP] Help with code

2004-12-26 Thread Burhan Khalid
karl james wrote: I have since updated it. And I am having issues with a function I suppose. Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site38/fst/var/www/html/php/wrox_php/movie_details.php on line 119

Re: [PHP] Re: [PHP-DB] what is wrong with my code.. please help

2004-12-26 Thread Burhan Khalid
S Kumar wrote: Dear group, I am trying to query my db and print the results. when i execute my script, i am not getting any result except a blank page. can any one please help me what is going wrong with my script. Script: $conn = pg_connect(user = $user dbname = $dbname host =

[PHP] emailing files...

2004-12-26 Thread Gregory Machin
Hi I would like to email some log files as attachments, all the examples use an html page with a file input box, how can i do it without the file input box. Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions +27