Re: [PHP] mysql_errror bug on innodb table

2003-09-10 Thread Raditha Dissanayake
Great to hear. Reading my previous post, i am suprised you understood it with all the glaring spelling mistakes :-). Yikes. Sorry about that i typed it in too much of a hurry. [EMAIL PROTECTED] wrote: ok i managed to set the generated error screen to a variable, do the rollback then die H,

[PHP] mail function

2003-09-10 Thread Deependra b. Tandukar
Dear all, Recently installed PHP in my Linux server. It says, mail function is not enabled? How is turn this on? Regards, _DT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_errror bug on innodb table

2003-09-10 Thread daniel
ok i managed to set the generated error screen to a variable, do the rollback then die > H, > > The mysql_error() fucntion returns the error that took place for the > last call to the db. If you do a roll back that would be considered > another call and mysql_error() would then return the error (is

Re: [PHP] mysql_errror bug on innodb table

2003-09-10 Thread Raditha Dissanayake
H, The mysql_error() fucntion returns the error that took place for the last call to the db. If you do a roll back that would be considered another call and mysql_error() would then return the error (is any) associated with the roll back. If this reason many programmer create a separate error

[PHP] Encoding problem (french character) in txt file on Mac OS X

2003-09-10 Thread Thierry Santacana
Hi, I've tried several things but I can't get out of this issue ! I have this meta-tag in my header : When I write some strings with french accentuated characters in a .txt file with fwrite(), then when I open the file with SimpleText or TextEdit (Mac OS X 10.2) or even with pico and emacs, I

Re: [PHP] mysql_errror bug on innodb table

2003-09-10 Thread daniel
hmm this is tricky, on an innodb table if i do a rollback when i find an error then trigger the error handler which dies to the screen it wont show the message, but i commented out the rollback and it was find, how could i execute the rollback properly then ? > hi there i have noticed a bug where

[PHP] mysql_errror bug on innodb table

2003-09-10 Thread daniel
hi there i have noticed a bug where mysql_error is not returned on a transaction, why is this ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] URGENT BUSINESS RELATIONSHIP

2003-09-10 Thread MR BEN IFEANYI.
DEAR SIR, MY NAME IS MR.BEN IFEANYI, THE MANAGER CREDIT AND FOREIGN BILLS OF ECOBANK OF NIGERIA .I AM WRITING IN RESPECT OF A FOREIGN CUSTOMER OF MY BANK WITH ACCOUNT NUMBER 14-255-2004/utb/t WHO DIED IN A PLANE CRASH [ETHIOPIAN AIRLINE 961] WITH OTHER PASSENGERS ABOARD. SIR, SINCE THE DEATH OF T

Re: [PHP] Shell question.

2003-09-10 Thread murugesan
use ; at the end of print $sysnew = `echo $system | awk -F. '{ print; $1 }'` ; -Murugesan - Original Message - From: "Sethi, Samir (IDS DM&DS)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 12:31 AM Subject: [PHP] Shell question. > Anyone had a chance t

Re: [PHP] referer on javascript location.href

2003-09-10 Thread daniel
please excuse me, there is tonnes on google :\ > hi there, i have a delete button which uses a javascript location.href > to switch to a delete action in the same script as the form action > handles something different, if i switch to that page the referer gets > lost in the mix so i cant tell how

[PHP] referer on javascript location.href

2003-09-10 Thread daniel
hi there, i have a delete button which uses a javascript location.href to switch to a delete action in the same script as the form action handles something different, if i switch to that page the referer gets lost in the mix so i cant tell how to redirect back to that page on error. if someone has

Re: [PHP] loading classes and efficiency

2003-09-10 Thread Mike Migurski
>>>This is really funny i've been doing php for a good while now but what >>>is the reason to use the & symbol on the function ? >> >>returns by reference. > >ok i get it but why would i need it in my example ? I think it was a hypothetical thing on Brad's part ... one of the annoying things about

Re: [PHP] loading classes and efficiency

2003-09-10 Thread Mike Migurski
>> $some_object =& create_object('some_object'); >> > >This is really funny i've been doing php for a good while now but what is >the reason to use the & symbol on the function ? returns by reference. - michal migurski- contact i

Re: [PHP] Session Id in forms

2003-09-10 Thread Justin French
This is done by PHP's enable-trans-sid directive. The simple solution would be to disable trand-sid in the php.ini file, but you may rely on it to maintain sessions on non-cookie users. So, then there is this directive in php.ini: ; The URL rewriter will look for URLs in a defined set of HTML

Re: [PHP] loading classes and efficiency

2003-09-10 Thread daniel
> function &create_object() { > [..] > } > > $some_object =& create_object('some_object'); > This is really funny i've been doing php for a good while now but what is the reason to use the & symbol on the function ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] loading classes and efficiency

2003-09-10 Thread Brad Pauly
On Wed, 2003-09-10 at 18:45, [EMAIL PROTECTED] wrote: > i'mn about to learn some java, maybe swt in the eclipse environment, it > would be nice if php could have the classes or the path precompiled in, so > all you need to do is load the object ? I think in php5 there will be a mechanism to handle

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Raditha Dissanayake
I meant to do this: $szPipe = `/htdocs/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`; Adam Douglas wrote: Backticks is simply the ` sign (usually the character above the tab). Popularly know as `hair on the ear` in

Re: [PHP] loading classes and efficiency

2003-09-10 Thread daniel
i'mn about to learn some java, maybe swt in the eclipse environment, it would be nice if php could have the classes or the path precompiled in, so all you need to do is load the object ? > woah > > function create_object($class_path,$class_name) { > include("".$class_path."/".$class_name.".php

Re: [PHP] loading classes and efficiency

2003-09-10 Thread Dan Anderson
> Hi there i was wondering is it more efficient to load class files and > objects when needed per page or is it ok to include them in my main include > file ? require_once() or include_once() The files containing the class files before you need them. They will only be loaded when needed that way

Re: [PHP] loading classes and efficiency

2003-09-10 Thread daniel
woah function create_object($class_path,$class_name) { include("".$class_path."/".$class_name.".php"); return new $class_name; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] loading classes and efficiency

2003-09-10 Thread daniel
> $foo_object = CreateObject('FooObject'); :D How would it look you reckon ? function CreateObject($class) { include('$class.".php"'); return new $class; } ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Escaping the " ' " character

2003-09-10 Thread Robert Cummings
Funny, I could swear I made a comment about bandwidth not topic. You should go read my original message, then read the guidelines, then wonder to yourself if you are all alone in this world -- if you by chance find that you're not in your own little world, perhaps you see why guidelines posted for

Re: [PHP] Do you really still pay for bandwidth?

2003-09-10 Thread Robert Cummings
Of course I do, as soon as I break 30 Gigs of usage I start paying. But this is beside the point, I live in a technologically luxurious country, the PHP mailing list is global, and so not everyone has such luxury. I think people be a little less ignorant and self indulgent and have a little respect

Re: [PHP] Escaping the " ' " character

2003-09-10 Thread Dan Anderson
> I believe the general posting guidelines discourage posting HTML to > mailing lists, and to be quite honest many of us pay for our bandwidth > and don't need your 8k image eating up resources. If you don't like somebodys post just ignore it. I'd bet your 2 cents that you don't find every post t

Re: [PHP] loading classes and efficiency

2003-09-10 Thread Brad Pauly
On Wed, 2003-09-10 at 17:58, [EMAIL PROTECTED] wrote: > Hi there i was wondering is it more efficient to load class files and > objects when needed per page or is it ok to include them in my main include > file ? It might be fine. If the class files are not that large, there might not be much diff

Re: [PHP] Looking for a real good editor with some specific featrues ...

2003-09-10 Thread David T-G
Dan, et al -- ...and then Dan Anderson said... % % 60% of what makes an editor good is familiarity. Take emacs for Indeed. % instance (http://www.gnu.org/software/emacs/emacs.html). Running PHP Aah! RUN AWAY! ... % % So google around, try things out, and see what you like. And don'

RE: [PHP] Looking for a real good editor with some specific featrues ...

2003-09-10 Thread Dan Anderson
60% of what makes an editor good is familiarity. Take emacs for instance (http://www.gnu.org/software/emacs/emacs.html). Running PHP Mode (http://sourceforge.net/projects/php-mode/) I fly through code. But I've also spent quite a lot of time memorizing the zillion or so commands to do things aut

[PHP] Do you really still pay for bandwidth?

2003-09-10 Thread DougD
Do you really still pay for bandwidth? "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I believe the general posting guidelines discourage posting HTML to > mailing lists, and to be quite honest many of us pay for our bandwidth > and don't need your 8k image eating

[PHP] loading classes and efficiency

2003-09-10 Thread daniel
Hi there i was wondering is it more efficient to load class files and objects when needed per page or is it ok to include them in my main include file ? I dont this for specialised classes for a few pages but other globally used classes i include in a main include file. Let me know thanks. -- P

RE: [PHP] Looking for a real good editor with some specific featrues ...

2003-09-10 Thread Chris W. Parker
Daniel Szasz on Sunday, September 07, 2003 6:43 AM said: > I'm working in programming for many years and I'm looking now for an > editor for php good like the borland editor in Delphi/CBuilder.. > Also I will be glad to b something with the same shortcuts like there

[PHP] PEAR DB flipped fetch mode

2003-09-10 Thread Dan Phiffer
Could somebody explain (or point me to some online docs) the usage of DB_FETCHMODE_FLIPPED, defined by PEAR DB? I feel like I've seen it mentioned on the PEAR site, but somehow I can't find it now. I'm pretty sure it's on a page linked from here: http://pear.php.net/manual/en/package.database.php

[PHP] Re: Multiple image buttons

2003-09-10 Thread Baroiller Pierre-Emmanuel
Hi, I don't understand what you really want to do... what do you mean by "image button" ? an or ?? On my opinion, you don't need php to check what button is pressed... All this can be done with a simple javascript function ... or with tag. After this, send a value to your phpscript like "presse

RE: [PHP] PHP on a .NET enviroment machine: Conflicts?

2003-09-10 Thread Mike Brum
I've had to use CF and .Net on the same machines before and have had only minor issues with it. I've never had an issue mixing PHP and any other language before since it's pretty stand-alone, whereas CF and .Net want to "own" a lot of Windows functionalities as servers. I don't forsee any real p

[PHP] PHP on a .NET enviroment machine: Conflicts?

2003-09-10 Thread Jay Paulson
Quick question to the community here. The company I work for got bought out and now they are wanting to migrate all the web sites that I have created in PHP to their Windows, IIS, .NET enviroment. I have been trying to talk to the people at corporate about putting PHP on their Windows machines

[PHP] Shell question.

2003-09-10 Thread
Anyone had a chance to look at this. Been trying different combinations, doesn't appear To work. Thanks. -Original Message- From: Sethi, Samir (IDS DM&DS) [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 1:07 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Shell question. Anoth

Re: [PHP] Can't use strtotime for dates before 1970. Why not??

2003-09-10 Thread CPT John W. Holmes
From: "Free Grafton" <[EMAIL PROTECTED]> > We provide a MySQL, PHP solution to customers. One of the fields that we > store for the customers are birthdates. We just recently upgraded from Red > Hat 7.1 to Red Hat 9.0 and now have realized that at version 7.3 they > changed it where strtotime no l

RE: [PHP] Upload seems to time out over 7.5 M

2003-09-10 Thread Dan Anderson
> In the php.ini file set this value? I believe so. If safe mode isn't stopping you from doign so you should be able to set_time_limit manually. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Upload seems to time out over 7.5 M

2003-09-10 Thread Lou Parmelee
In the php.ini file set this value? Thanks, Lou -Original Message- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 2:18 PM To: [EMAIL PROTECTED] Cc: '[EMAIL PROTECTED] Php. Net' Subject: Re: [PHP] Upload seems to time out over 7.5 M try: set_time_limit(0)

RE: [PHP] RE: Upload seems to time out over 7.5 M

2003-09-10 Thread Lou Parmelee
It is my dedicated server so I have root access... my phpinfo() says timeouts - Connection 300 - Keep Alive - 15 Is this what I need to change? Thanks, Lou -Original Message- From: Jackson Miller [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 2:20 PM To: '[EMAIL PROTECTED]

Re: [PHP] RE: Upload seems to time out over 7.5 M

2003-09-10 Thread Jackson Miller
> The only timeout (that I *know of!*) that I don't know how to change is the > Apache timeout of 300 seconds. It appears that it is indeed timing out > after 300 seconds (five minutes). It shows as HTTP_KEEP_ALIVE = 300 in > phpinfo(). There is also a setting in Apache for the maximum size of a

Re: [PHP] Upload seems to time out over 7.5 M

2003-09-10 Thread Dan Anderson
try: set_time_limit(0); // don't time out. By default, if it takes more then 30 seconds (or is it 60?) to execute a web page PHP kills the script. -Dan On Wed, 2003-09-10 at 14:15, Lou Parmelee wrote: > Hello all, > > I couldn't upload any files larger than 2M. So I searched around an

[PHP] RE: Upload seems to time out over 7.5 M

2003-09-10 Thread Lou Parmelee
Sorry... here is the post Lou <<< - POST - >> From: Fred ([EMAIL PROTECTED]) Subject: Large file uploads timeout - ouch! View this article only Newsgroups: php.general Date: 2001-12-05 02:18:53 PST I'm designing a simple content management system with PHP, and it is going great

[PHP] Upload seems to time out over 7.5 M

2003-09-10 Thread Lou Parmelee
Hello all, I couldn't upload any files larger than 2M. So I searched around and found this post last night and I made the changes to the php.ini file to support 20M file uploads. The changes were successful but just like in the post below I can't upload over a 7.5M file now. Any ideas would be muc

Re: [PHP] Escaping the " ' " character

2003-09-10 Thread murugesan
Try this   $url="";echo "asd";?>  HTH -Murugesan - Original Message - From: Todd Cary To: [EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 10:57 PM Subject: [PHP] Escaping the " ' " character I need to print the following:http://www.gilardi.com/pdf/gwy

Re: [PHP] Escaping the " ' " character

2003-09-10 Thread Robert Cummings
I believe the general posting guidelines discourage posting HTML to mailing lists, and to be quite honest many of us pay for our bandwidth and don't need your 8k image eating up resources. 2 cents, Rob. On Wed, 2003-09-10 at 13:27, Todd Cary wrote: > I need to print the following: > > onClick="

Re: [PHP] Escaping the " ' " character

2003-09-10 Thread Mike Migurski
>I need to print the following: > >onClick="MM_openBrWindow('http://www.gilardi.com/pdf/gwyt1poc.pdf','','')" > >and I am not sure how to escape the " ' " characters. with a slash. http://www.google.com/search?&q=php+single+quote+escape+site%3Aphp.net -

[PHP] PHP and Ekit

2003-09-10 Thread Todd Cary
Has anyone incorporated Ekit with PHP? If you have Java 2 installed, a simple demo of the Java based HTML editor can be seen at http://209.204.172.137/editor/ekit.html Todd -- <>

RE: [PHP] Can't use strtotime for dates before 1970. Why not??

2003-09-10 Thread Dan Joseph
Hi, Unix time stamps are based on the number of ...minutes/seconds (one of the two)... between 1/1/1970 and Now(). -Dan Joseph > -Original Message- > From: Free Grafton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 10, 2003 1:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Can't

[PHP] Escaping the " ' " character

2003-09-10 Thread Todd Cary
I need to print the following: moz-txt-link-freetext" href="">http://www.gilardi.com/pdf/gwyt1poc.pdf','','')" and I am not sure how to escape the " ' " characters. Actually, the 'http://www.gilardi.com/pdf/gwyt1poc.pdf' will be a variable, $url. Can someone point me toward some docs on thi

[PHP] Can't use strtotime for dates before 1970. Why not??

2003-09-10 Thread Free Grafton
I¹ve been on this list for a short time so my question may have been answered, but if someone could direct me to a satisfying answer, it would be greatly appreciated. We provide a MySQL, PHP solution to customers. One of the fields that we store for the customers are birthdates. We just recently u

[PHP] GD lib security issues

2003-09-10 Thread Verdon vaillancourt
Hi, I use a fairly standard sort of reseller package (*nix and hsphere based) for hosting sites. Although the versions of php and mySQL are fairly up to date, the version of GD lib is frozen at 1.6.2. When I question my provider about this and when GD v2.x would be available, they replied that the

[PHP] Shell question.

2003-09-10 Thread
Another shell question - $system is set to eq-cca-u1.etsd.ml.com , Running the commands below should give sysnew as eq-cca-u1 , stripping out the etsd.ml.com. $sysnew = `echo $system | awk -F. '{ print $1 }'` ; echo "sysnew = $sysnew " ; However the echo statement returns sysnew as eq-cca-u1

RE: [PHP] executing shell commands.

2003-09-10 Thread
This seems to do the trick - $system = `/bin/ls /dcsa-ws1/share/webadm1/public_html/system-reports/security/rhosts/ eqty | /bin/egrep -v "server|header|index|report|php|old|title" | /bin/head -$x | /b in/tail -1 | /bin/awk '{ print $1 }'` ; $numlin = `/bin/wc -l /dcsa-ws1/share/webadm1/public

[PHP] output compression and ETags

2003-09-10 Thread Thomas van Gulick
I can't get output compression and ETags to work at the same time on most Internet Explorer browsers. Is it at all possible to combine etags and output compression? I've tested it using this very small php script: CUT HERE: etag.php AA AA

RE: [PHP] Elance/rentacoder type scripts (please ignore previous)

2003-09-10 Thread Adrian Teasdale
Sorry, Ignore the previous message. I should have looked at Hotscripts.com first :( Ade > -Original Message- > From: Adrian Teasdale [mailto:[EMAIL PROTECTED] > Sent: 10 September 2003 17:32 > To: [EMAIL PROTECTED] > Subject: [PHP] Elance/rentacoder type scripts > > > Hi there > > J

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
> Backticks is simply the ` sign (usually the character above the tab). > Popularly know as `hair on the ear` in my country :-) > for example if you want to invoke ls from php you just type > > $result = `ls`; > > hey presto the output from ls is now in your $result variable. Ohhh okay. Well if

[PHP] Elance/rentacoder type scripts

2003-09-10 Thread Adrian Teasdale
Hi there Just being a little lazy. Does anyone know of a set of PHP scripts that will run a site similar to elance.com or rentacoder.com? Got a client asking for something similar and rather than invent the wheel I thought I'd ask :) Thanks Ade -- PHP General Mailing List (http://www.php.net

[PHP] Session Id in forms

2003-09-10 Thread Gustavo Del Castillo Meza
Hi, been having some problems with sessions. When i use a session and a form on the same page. Sometimes php will create a form object called PHP_SESSIONID. Since this is inserted as the first object of the form, this will screw up my javascript validation, wich uses the form element index, i dont

Re: [PHP] PHP-General List post bounces???

2003-09-10 Thread Curt Zirzow
* Thus wrote Adam Douglas ([EMAIL PROTECTED]): > Why do I keep getting this? woah.. this is still happening? I don't seem to be getting these anymore. Send an email to the list admin's letting them know this is happening, including all the headers. [EMAIL PROTECTED] > > > -Original Message-

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Raditha Dissanayake
hi Backticks is simply the ` sign (usually the character above the tab). Popularly know as `hair on the ear` in my country :-) for example if you want to invoke ls from php you just type $result = `ls`; hey presto the output from ls is now in your $result variable. all the best Adam Douglas wr

Re: [PHP] Issues with exec()/system()

2003-09-10 Thread Curt Zirzow
* Thus wrote Tom Ray [List] ([EMAIL PROTECTED]): > I'm having a bit of an issue using exec() and system(). hmm.. seems to be the theme today :) > > $dir="unique_dir"; > system("cp -R forum /path/of/forum/location/of/forums/".escapeshellarg($dir)); > > The forum directory is located in the same

[PHP] PHP-General List post bounces???

2003-09-10 Thread Adam Douglas
Why do I keep getting this? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 10, 2003 10:12 AM > To: [EMAIL PROTECTED] > Subject: [ERR] RE: [PHP] How to access a program outside of PHP? > > > Transmit Report: > > To: [EMAIL PROTECTED

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
> >1) When I echo out $szPipe I get "Resource id #2". > > > Sorry i was thinking of backticks. btw have you tried it ? > (backticks) Backticks? Is this a PHP API function, I can't find it? That's the thing here I haven't been able to get things to work and I have no clue what I should use, exec(

Re: [PHP] executing shell commands.

2003-09-10 Thread Curt Zirzow
* Thus wrote Sethi, Samir (IDS DM&DS) ([EMAIL PROTECTED]): > > I am executing the following within PHP - > > $system = `/bin/ls > /dcsa-ws1/share/webadm1/public_html/system-reports/security/rhosts/eqty | /bin/egrep > -v "server|header|index|report|php|old|title" | /bin/head -$x | /bin/tail >

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Marek Kilimajer
Adam Douglas wrote: 3)Yes I tried running gs in the console as root works fine and as myself and that works fine. The user is www that runs httpd. How could I test to see if www has access? To my understanding such accounts can not be used to log in with. # su www -- PHP General Mailing List (

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Raditha Dissanayake
Adam Douglas wrote: 1) When I echo out $szPipe I get "Resource id #2". Sorry i was thinking of backticks. btw have you tried it ? (backticks) 2) Oops, that chrooted in /var/www/. So I thought I should be putting just a /htdocs/, no? yeps. 3)Yes I tried running gs in the console as root works f

Re: [PHP] executing shell commands.

2003-09-10 Thread Douglas Douglas
Hi! I'm not sure this could be your problem, but this is what I see: $numlin = '/bin/cat /dcsa-ws1/share/webadm1/public_html/system-reports/security/rhosts/eqty/$system | /bin/wc -l'; I think you should write it like this: $numlin = "/bin/cat /dcsa-ws1/share/webadm1/public_html/system-reports

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
> > Hi. I'm trying to develop a web interface to the ghostscript (gs) > > application. I have the ghostscript syntax down perfectly > in the console. > > Now when I go to try and do it in PHP I get nothing. No > errors, nothing > just > > a blank page with PHP logs turned on and errors turned on.

Re: [PHP] A complete EXIF extension?

2003-09-10 Thread Marek Kilimajer
So go ahead and add the functionality. You have a code you can start with. I don't believe php version will be a lot slower then its c equivalent, and you are not c coder anyway. Besides this gives you more freedom to choose a host, as most hosts don't have exif extension enabled. Greg Militell

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
> 1) please try $szPipe and see if you get any output. > 2) if you are jailed in /var/htdocs/ your pathname /htdocs/qs > is incorrect. > 3) I guess you tried running gs from the jail either as > yourself or as > root. > please see if nobody or apache (the webserver's user) can run > gostscript.

[PHP] Issues with exec()/system()

2003-09-10 Thread Tom Ray [List]
I'm having a bit of an issue using exec() and system(). Background: I have this script that installs forum software for a client, and that works like a champ. In it I use system() to copy the the default forum directory to the specified location the client sets, along with a unique directory nam

[PHP] executing shell commands.

2003-09-10 Thread
I am executing the following within PHP - $system = `/bin/ls /dcsa-ws1/share/webadm1/public_html/system-reports/security/rhosts/eqty | /bin/egrep -v "server|header|index|report|php|old|title" | /bin/head -$x | /bin/tail -1 | /bin/awk '{ print $1 }'` ; $numlin = `/bin/cat /dcsa-ws1/share/we

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread CPT John W. Holmes
From: "Adam Douglas" <[EMAIL PROTECTED]> > Hi. I'm trying to develop a web interface to the ghostscript (gs) > application. I have the ghostscript syntax down perfectly in the console. > Now when I go to try and do it in PHP I get nothing. No errors, nothing just > a blank page with PHP logs turn

Re: [PHP] A complete EXIF extension?

2003-09-10 Thread Greg Militello
Also phpExifRW is not able to parse the EXIF format of all the different camera types I need it to. -Greg Marek Kilimajer wrote: Try http://www.phpclasses.org/browse.html/package/1042.html Greg Militello wrote: Hey all, I've been dealing with EXIF data in images for a while now. Reading i

Re: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Raditha Dissanayake
Hi, 1) please try $szPipe and see if you get any output. 2) if you are jailed in /var/htdocs/ your pathname /htdocs/qs is incorrect. 3) I guess you tried running gs from the jail either as yourself or as root. please see if nobody or apache (the webserver's user) can run gostscript. all the best

[PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
Hi. I'm trying to develop a web interface to the ghostscript (gs) application. I have the ghostscript syntax down perfectly in the console. Now when I go to try and do it in PHP I get nothing. No errors, nothing just a blank page with PHP logs turned on and errors turned on. I'm running Apache wit

Re: [PHP] divide

2003-09-10 Thread CPT John W. Holmes
From: "phpu" <[EMAIL PROTECTED]> > I'm new in php and i've got allready a problem. > I wanna divide 2 numbers and the result to be an integer separated by comma. For example: > $number1=1000; > $number2=17; > $result=$number1 / $number2; > In this case the result is 588235.29411764 > And I

RE: [PHP] ereg_replace vs. preg_replace [was: str_replace question]

2003-09-10 Thread Wouter van Vliet
thanks, that pretty much cleared things up.. -> -Oorspronkelijk bericht- -> Van: Curt Zirzow [mailto:[EMAIL PROTECTED] -> Verzonden: woensdag 10 september 2003 6:30 -> Aan: [EMAIL PROTECTED] -> Onderwerp: Re: [PHP] ereg_replace vs. preg_replace [was: str_replace -> question] -> -

Re: [PHP] A complete EXIF extension?

2003-09-10 Thread Greg Militello
Currently the phpExifRW, the classes you mentioned which are from http://www.sanisoft.com/phpexifrw/ has incomplete write functions. In fact the comments included in the code include text like "This functiion writes back the modifed exif data into the imageinfo array - INCOMPLETE" -exif.inc:1488

[PHP] Memory leak in PHP 5 / ODBC?

2003-09-10 Thread chris . neale
I'm having memory problems running a script in PHP 5 Beta on WINNT SP6a. I am trying to generate 600 static HTML pages each containing a table of data. I've taken out all the table formatting routines out the code below, but it still replicates the same fault. The loop appends the SQL string with

Re: [PHP] Variable Overloading or Replacement (long)

2003-09-10 Thread Raditha Dissanayake
Hello, my comments are below this snippet. class AGENT{ /* ** 2003-09-04 jb PRIVATE PROPERTIES */ var $strCommCode; // agent commission code --

Re: [PHP] SQL not returning entire field

2003-09-10 Thread Christopher J. Crane
I checked the field properties and it is set as large text or memo, and the data is complete in the field, just when I try to fetch it, it comes back truncated somehow. "Christophe Chisogne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Christopher J. Crane wrote: > > returning only

[PHP] session_set_save_handler

2003-09-10 Thread Chris Boget
If the above is called to set user defined session handling functions, is there a way to reset it back to the default PHP session handling? I tried calling it with no arguments but got an error. I've looked in the docs but it doesn't say anything about resetting the handlers. Does anyone know if/

Re: [PHP] Session Variables in a Class

2003-09-10 Thread CPT John W. Holmes
From: "micro brew" <[EMAIL PROTECTED]> > Here's my class. I start the session in the > constructor and in later methods attempt to register > session variables. You can see I've tried a couple > different methods but none of them maintain the > session variable values. Any suggestions? Is regi

[PHP] Re: PHP configure error

2003-09-10 Thread Mark McCulligh
My mysql user home directory is set to: /var/lib/mysql which was were the data was for the rpm version of mysql. When I installed the source version of mysql wouldn't this be change to something like: /usr/local/mysql/current/data/ What do other people have there mysql user home directory linked t

Re: [PHP] SQL not returning entire field

2003-09-10 Thread Christophe Chisogne
Christopher J. Crane wrote: returning only like some of the data in the field. What I am getting back only 255 chars or so... Perhaps a varchar(255) field which should be something like "text" (MySQL) ? -- Christophe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Variable Overloading or Replacement (long)

2003-09-10 Thread Jay Blanchard
First let me say that I have done quite a bit of reading this morning and have been employing OOP techniques for several years in other languages and I have found something that seems strange to me (given the early hour, lots of things seem strange). If I have a property declared in a class, extend

[PHP] WDDX Module for PHP

2003-09-10 Thread Rubal
> I have compiled my apache with WDDX PHP Module using CPanel inbuild > feature.. But nothing seems to be working fine .. It doesn't show me > proper weather ( forcast ) details also it doesn't return me icon > names and because of that i cant see icons also.. When i see PHPInfo > of my Serv

Re: [PHP] PHP configure error

2003-09-10 Thread Mark McCulligh
MySQL in located in /usr/local/mysql/current/ This is what is in my lib folder: [EMAIL PROTECTED] current]# cd lib [EMAIL PROTECTED] lib]# l -rw-r--r--1 root mysql 10806 Jul 18 11:34 libdbug.a -rw-r--r--1 root mysql 879270 Oct 24 2001 libmygcc.a -rw-r--r--1 root

Re: [PHP] Multiple Forms

2003-09-10 Thread Matthew Vos
Process Forms Matt On Tue, 2003-09-09 at 20:11, Dan Anderson wrote: > Is it possible to tell a browser to send form a to URL a and form b to > URL b? > > (i.e. post to two different URLS) > > Thanks, > > -Dan signature.asc Description: This is a digitally signed message part

[PHP] SQL not returning entire field

2003-09-10 Thread Christopher J. Crane
Please Help! I am using PHP to pull data from a MS SQL database. All other fields are returning data fine, but this one table PROFILE is returning only like some of the data in the field. I am using the following simplified code: MSSQL_CONNECT($HostName,$UserName,$Password); mssql_select_

Re: [PHP] PHP configure error

2003-09-10 Thread Marek Kilimajer
Are mysql libraries installed in /usr/local/mysql/lib? Can you paste here the full command that caused the error? Mark McCulligh wrote: Hi again, I once had MySQL 4.0.14 installed using rpm version, but now have removed it and installed MySQL 4.0.14 from the source file. When I run the make comman

Re: [PHP] maillist php manger/interface

2003-09-10 Thread Marek Kilimajer
We are just strugling with this. We are using ezmlm, you need to compile it with mysql support. I solved webbased subscribing and unsubscribing with sending an email to the apropriate addresses with From and Return-Path set to the user's email address (I used smtp class instead of mail() functi

[PHP] PHP configure error

2003-09-10 Thread Mark McCulligh
Hi again, I once had MySQL 4.0.14 installed using rpm version, but now have removed it and installed MySQL 4.0.14 from the source file. When I run the make command the link --with-mysql=/usr/local/mysql/ I get this errors: ext/mysql/php_mysql.lo: In function `zif_mysql_create_db': /usr/local/src/

RE: [PHP] str_replace question

2003-09-10 Thread SLanger
> preg_replace('/*\<[a-z]+)[0-9]+(\>)/', '$1$2', $String); Ok why not simply use reg_replace('//', '//', $String); BTW preg regex are more powerfull since they support some stuff that the posix standard does not support. As far as I know lookbehinds and lookbacks and stuff like that. Also the PO

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
Ok, I may be a little bad at telling people what exactly I want. Probably I should try and figure this out for myself, I'm good at that! :D "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10 September 2003 12:14, zavaboy contributed these pearls of wisdom: > > > if I w

RE: [PHP] Setting execution time for a loop

2003-09-10 Thread Ford, Mike [LSS]
On 10 September 2003 12:14, zavaboy contributed these pearls of wisdom: > if I wait untill $sDate is zero, it'll be in 2000. > I have $Date based on the current date, like to day is: 03252 > 03 is the year 252 is the day of the year. So for goodness' sake just choose a sensible value to limit the

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
if I wait untill $sDate is zero, it'll be in 2000. I have $Date based on the current date, like to day is: 03252 03 is the year 252 is the day of the year. "Mike Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10 September 2003 11:26, zavaboy contributed these pearls of wisd

Re: [PHP] A complete EXIF extension?

2003-09-10 Thread Marek Kilimajer
Try http://www.phpclasses.org/browse.html/package/1042.html Greg Militello wrote: Hey all, I've been dealing with EXIF data in images for a while now. Reading in PHP is available, however editing, or creating EXIF entries doesn't exist. I am going to work on a set of classes to interphase

RE: [PHP] Setting execution time for a loop

2003-09-10 Thread Ford, Mike [LSS]
On 10 September 2003 11:26, zavaboy contributed these pearls of wisdom: > // Ok, I have a loop: > for ($i = $Date; $i >= $sDate; $i--) > > // Somthing like this is inside the loop: > if ($Exists) > echo "Something here."; > else > $sDate--; > > I have it check if it exists, if it doesn't, then

  1   2   >