Re: [PHP] php-help

2005-03-09 Thread Lars B. Jensen
The manual to the rescue http://jp2.php.net/stripslashes There is alot of good information in the manual, think it would benefit you alot going through some of it, especially the central chapters -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for en

[PHP] php-help

2005-03-09 Thread K Karthik
sir, i'll explain my problem.and if anyone could help me i'll be thankful. i am displaying a content read from a file into a text area of a form. when i make changes andretrieve back in the text area, i encounter a problem.. i.e., when i enter text="please enter" i have an outputas text= /" please

Re: [PHP] shell script - disable log output

2005-03-09 Thread Jason Wong
On Thursday 10 March 2005 06:28, Eli wrote: > I don't really need it to log into a file, but I wanted to prevent it > from echoing to the screen. > So I guess there's no way to prevent from error_log() (using defaults) > to echo to the screen (STDOUT). ini_set('display_errors', 0); // ?? -- J

[PHP] Re: a new it company

2005-03-09 Thread Colin Olkowski
wow. o.k. on this subject i think that : a) the initial email in question was probably stepping over the line (soliciting for business) b) John C. Nichel is correct in that outsourcing me somewhere with a beach where they speak spanish would be good c) Rory is a bit fast on the gun. If you don't

Re: [PHP] Re: Question re empty query

2005-03-09 Thread Jackson Linux
Okay, guys, I hope I'm getting closer with your help here but I am still highly confused (that's actually a general blanket statement these days). I've taken your advice and made several changes, On 9 Mar 2005, at 13:44, Jochem Maas wrote: M. Sokolewicz wrote: Jackson Linux wrote: Hi, This: if (

Re: [PHP] a new it company

2005-03-09 Thread James Williams
I agree entirely... *down with bansalsetech.com* Ryan A wrote: here here - I thought It was kind of humourous, I also bare in mind that these guys in the far east are just trying to make their way in the world too, they are at a disadvantage with the language also. besides which there is a quite a

Re: [PHP] PHP 5.0.3 and base64 encoded cookie value issue?

2005-03-09 Thread Pink Floyd
OK, after a little more closer examination, it does appear that the 'urlencode' is being used. I did the encode/decode thingy. BUT, the only character that is being messed up (at least the ones I had) appears to be '+'. After a lot of trial and error, I am fairly convinced that PHP parses the Cook

Re: [PHP] ezmlm "bounced email" warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread Nobody Special
On Wed, 09 Mar 2005 07:30:57 -0800, Rob Tanner <[EMAIL PROTECTED]> wrote: > Every ezmlm mailing list I'm on does that periodically. Lists that I'm > on that use MailMan never seem to have that problem. What then does > that tell us about ezmlm... > Everyone, eh. You must not be on many lists. I

Re: [PHP] Re: incrementing a number from a text file

2005-03-09 Thread blackwater dev
file_put_contents is only for PHP5 so if you are using PHP4, this won't work. On Thu, 10 Mar 2005 04:26:41 +0200, Eli <[EMAIL PROTECTED]> wrote: > Ross Hulford wrote: > > I want to read a number from an external (txt) file and increment it.then > > save the number back on the text file. > > I kno

[PHP] Re: incrementing a number from a text file

2005-03-09 Thread Eli
Ross Hulford wrote: I want to read a number from an external (txt) file and increment it.then save the number back on the text file. I know this is possible but want a simple amd economical way to do this. Try: file_put_contents("file.txt",((int)file_get_contents("file.txt"))+1); -- PHP General Ma

[PHP] Re: PHP RegExp and HTML tags attributes values etc...

2005-03-09 Thread Eli
Eli wrote: Try: preg_replace('/(?<=\<)([^>]*)(\w+)=(?\s]+)(?=\s|\>)([^<]*)(?=\>)/U','\1\2="\3"\4',$html); Hmm.. that could be a start.. and don't ask me how it works... :P Well.. problem with that, is that if you got more than 1 un-escaped attribute in a tag, the regex will fix only the first un

[PHP] Re: PHP RegExp and HTML tags attributes values etc...

2005-03-09 Thread Eli
BlackDex wrote: Hello ppl, I have a question about regex and html parsing. I have the following code: ---   --- It laks some quotemarks. I want to change it to: ---   --- So it will have " around the attribute values... But i can't figure out how to do that :(. Can anyone help me with this?? Thx in

[PHP] PHP RegExp and HTML tags attributes values etc...

2005-03-09 Thread BlackDex
Hello ppl, I have a question about regex and html parsing. I have the following code: ---   --- It laks some quotemarks. I want to change it to: ---   --- So it will have " around the attribute values... But i can't figure out how to do that :(. Can anyone help me with this?? Thx in advance. K

Re: [PHP] a new it company

2005-03-09 Thread dan
Dan Tappin wrote: I think Rory has trouble jumping to conclusions. I was attacked off list by Rory thinking I was another list member... another dant (remember the OT adult content rant / thread?). I would agree that this is not really spam... just bad judgment. The flood of angry replies to

[PHP] PHP hangs when exec'ing SSH

2005-03-09 Thread Ross Becker
Hello, I've beat on this for a while now, and I'm not seeming to get anywhere. Any ideas would be appreciated. I'm attempting to execute some things on remote servers using ssh, using a strictly limited account created for this express purpose. I set up passwordless key authentication from t

[PHP] Re: Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
Just as a follow up. Marek sent me a reply, but for some mysterious reason it didn't appear on the list: >Use either HTML_QuickForm::setDefaults() to set defaults for all >elements or HTML_QuickForm_element::setValue() to set value for >individual elements. Former is simpler, and if you name th

[PHP] Re: incrementing a number from a text file

2005-03-09 Thread Jason Barnett
Ross Hulford wrote: > I want to read a number from an external (txt) file and increment it.then > save the number back on the text file. > I know this is possible but want a simple amd economical way to do this. > > Thanks, > > > Ross Not 100% sure what the most economical way is going to be, but

Re: [PHP] comparison operator

2005-03-09 Thread Jason Barnett
Richard Lynch wrote: >>i ran into this problem and i dont remember how i worked around it. > > > http://php.net/isset > > I would also use isset. Or you can use the identical (===) comparison instead of the equivalent (==) comparison to check for 0. -- Teach a man to fish... NEW? | http://www.c

Re: [PHP] sorting arrays

2005-03-09 Thread Robert Cummings
On Wed, 2005-03-09 at 18:11, Richard Lynch wrote: > > Say I create a "matches" array from a set of SQL queries With each query, > > an entry is added to my matches array. If the name already exists, its > > value > > gets incremented. How can I sort the array based on the highest number of > > hits

Re: [PHP] shell script - disable log output

2005-03-09 Thread Richard Lynch
>> test.php 2> /var/log/test > I don't really need it to log into a file, but I wanted to prevent it > from echoing to the screen. test.php 2> /dev/null You might even be able to put 2> /dev/null at the end of your #! line... #!/usr/local/bin/php -q 2> /dev/null But I dunno if that's gonna wor

[PHP] incrementing a number from a text file

2005-03-09 Thread Ross Hulford
I want to read a number from an external (txt) file and increment it.then save the number back on the text file. I know this is possible but want a simple amd economical way to do this. Thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] comparison operator

2005-03-09 Thread Richard Lynch
> i ran into this problem and i dont remember how i worked around it. http://php.net/isset > if($_REQUEST['value'] == 1) > { > // do something > } > else if($_REQUEST['value'] == 0) > { > // do something > } > > even if i don't do ?value=0 its always prints something.. i want to make > an > on

Re: [PHP] sorting arrays

2005-03-09 Thread Richard Lynch
> Say I create a "matches" array from a set of SQL queries With each query, > an entry is added to my matches array. If the name already exists, its > value > gets incremented. How can I sort the array based on the highest number of > hits? > > What is the sort method? Say this is the array: > > ar

Re: [PHP] PHP / JavaScript integration

2005-03-09 Thread Richard Lynch
> Hi, > > I'm trying to integrate some JavaScript functions in PHP, but so far, no > good :( > > I want to have a js.php file that has the JavaScript functions i want to > use. This file, albeit its extension, has no PHP code or even tag. > > It's just like this: > > js.php > -- > > > function de

[PHP] Re: Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
Leonie wrote: I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest. Amend the existing form so it enters data and edits it, or have two different we

Re: [PHP] MySQL - PHP - limits...

2005-03-09 Thread Richard Lynch
> Is there a records limit when browsing (a sql SELECT) in PHP from a MySQL > table? Sort of, I think... When MySQL is compiled, there is a buffer limit on how much crap you can squirt through a single connection. You can maybe alter this in my.cnf or be re-compiling MySQL. If you are trying to

[PHP] comparison operator

2005-03-09 Thread Sebastian
i ran into this problem and i dont remember how i worked around it. if($_REQUEST['value'] == 1) { // do something } else if($_REQUEST['value'] == 0) { // do something } even if i don't do ?value=0 its always prints something.. i want to make an on/off value based on the value of the url.. 1 for

Re: [PHP] warning & question about mysql sessions & concurrency

2005-03-09 Thread Richard Lynch
> Agreed, initially I thought of that but I also need to use transactions > in my business logic and MySQL doesn't support nested transactions, so > I'd have to open a separate connection to the DB to handle the session > transaction while another connection handles the business > transaction(s).

Re: [PHP] software catalog

2005-03-09 Thread Richard Lynch
> Hey! > Anybody know of a "software catalog" (or cart preferably) that is free? > > A site i am working for sells software, now they want to have a cart > feature > so people can put the packages in a cart and get discounts etc if they > purchase more than 1 product...they are using 2checkout for

Re: [PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
Richard Lynch wrote: I always go for the "one form" system, because otherwise you have double the work to do (opening two files) every little change, and invariably one of the forms drifts out of sync when (not if, when) you forget to change the other form and... Thanks, Robert. I think this is th

Re: [PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
DID YOU TRY THIS?? echo "\n"; ?> Look! I just assigned data to the form! Chris. I'm using Pear Quickform (hence my subject title) with Smarty. The value needs to be assigned to the Quickform object somehow. Creating the field with: $form->addElement('text', 'year', 'Year:'); How do I add the

Re: [PHP] PHP5.0.3 and pam authentication

2005-03-09 Thread Richard Lynch
> I'm trying to use pam_auth for a script. It loads into php but it's not > authenticating the users. I'm using the correct password and username. > This is a example of how I'm using the function: > > pam_auth($_POST[uname], $_POST[passwd], &$error) > > Any ideas? Thanks in advance For starters

Re: [PHP] ezmlm "bounced email" warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread Richard Lynch
> Yeah, same here. I thought it was my hosting service, but if other people > are having the same issue then what's the deal? Usually it's only a > message or two, but sometimes it says there are like 8 or 9 messages that > bounced. Has anyone looked into this or have any information regarding

Re: [PHP] PHP 5.0.3 and base64 encoded cookie value issue?

2005-03-09 Thread Richard Lynch
> Greetings, > I tested Richard's suggestion below, and it appears > that 'urlencode' is not the function that I want. > Are there any other options? Does anyone know what > PHP uses internally to 'munge' the cookie? I looked at > the php.ini doc's and I could not find any option to > turn off w

Re: [PHP] imagedestroy()

2005-03-09 Thread Richard Lynch
> Sorry if this is an old subject but it's new to me. I have a 'default' > Fedora Core 1 installation of Apache2 v2.0.48 and php v4.3.8. I've > noticed a problem in one of the scripts i had written a few months ago, > but I was testing it on a Red Hat 8 system at the time and I'm not sure > if the

Re: [PHP] shell script - disable log output

2005-03-09 Thread Eli
Richard Lynch wrote: I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. "the log file"... *WHAT* log file? A shell script has no pre-determined log file, really. Actually, it's almost f

Re: [PHP] how can I determine the built options of PHP

2005-03-09 Thread Richard Lynch
> Hi, > > some applications like Horde require special build options, eg. > > --with-apache or: --with-apxs > --with-gettext > --with-mysql > --with-mcrypt > --with-iconv --enable-mbstring --with-mbstring=all > --with-gd > > I don't want to setup my own build environment at the moment because I >

Re: [PHP] Help with dates

2005-03-09 Thread Richard Lynch
>> > Right now I'm working on a script that would calculate dates from one >> > calendar to another. The normal calendar we use and a newly invented > one. >> >> [shudder] >> There are already WAY too many calendar systems. >> >> Inventing a new one is probably not such a good plan... >> >> Why re-

Re: [PHP] shell script - disable log output

2005-03-09 Thread Richard Lynch
> I'm writing a shell script that uses error_log function to log some > data, but it echos the error message to the output without logging the > message to the log file. "the log file"... *WHAT* log file? A shell script has no pre-determined log file, really. Actually, it's almost for sure STDO

Re: [PHP] posix_getgroups() and effective grooup id's

2005-03-09 Thread Richard Lynch
> Hello, > > while I can use posix_getgroups() to get groups additional to the > posix_getgid() value, I don't know which function to use to find out the > groups additional to posix_getegid(). There's no posix_getegroups() > function. You may be stuck with: \n"; echo implode("", $output); ?>

Re: [PHP] Serious problem with Compiler?!?

2005-03-09 Thread Richard Lynch
> I have removed 4.3.4 via Yast and want to compile 4.3.10 now. > ./configure and make test work fine, but when I use 'make', it only > shows a few lines and doesn't install successfull: What few lines? > This is all text produced by make: > <-- begin > > Installing PHP SAPI module: apache2

Re: [PHP] shell script - disable log output

2005-03-09 Thread Eli
John Nichel wrote: Eli wrote: From all the suggestions the script now looks like this: #!/usr/local/php5/bin/php -q But it still output the error to the screen.. :( I saw someone suggest this error_log ( "My error message", 3, "/dev/null" ); And that works fine on my machine...have you tried

Re: [PHP] Quickform - edit form

2005-03-09 Thread Marek Kilimajer
Leonie (phpgroup) wrote: I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest. Amend the existing form so it enters data and edits it, or have two di

Re: [PHP] Quickform - edit form

2005-03-09 Thread Richard Lynch
> I've set up a form using Quickform. I've got it working a dream. My > problem is at the moment it only adds records to the database. I would > like to also have an edit form. I don't know what is easiest. Amend the > existing form so it enters data and edits it, or have two different > webpages.

RE: [PHP] Quickform - edit form

2005-03-09 Thread Chris W. Parker
Leonie (phpgroup) on Wednesday, March 09, 2005 1:13 PM said: > I've set up a form using Quickform. I've got it working a dream. My > problem is at the moment it only adds records to the database. I would > like to also have an edit form. I don't know what is easiest.

Re: [PHP] shell script - disable log output

2005-03-09 Thread John Nichel
Eli wrote: From all the suggestions the script now looks like this: #!/usr/local/php5/bin/php -q But it still output the error to the screen.. :( I saw someone suggest this error_log ( "My error message", 3, "/dev/null" ); And that works fine on my machine...have you tried that? -- John C. Ni

[PHP] Creating Reports with PHP

2005-03-09 Thread Mike Smith
I am trying to find a systematic way to develop reports for our custom web app. What I've done in the past is basically create a query, dump it to an HTML table, and put a link to open the report in Excel. I would like to develop a report system that would allow a user (I have 2 advanced users that

Re: [PHP] shell script - disable log output

2005-03-09 Thread Eli
John Nichel wrote: Try output buffering and dumping the buffer to /dev/null? From all the suggestions the script now looks like this: #!/usr/local/php5/bin/php -q But it still output the error to the screen.. :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] shell script - disable log output

2005-03-09 Thread John Nichel
Eli wrote: John Nichel wrote: Try @error_log ( "My error message" ); Don't know if it will work, but it's worth a shot. Checked. That's not working, since the @ operator prevents logging of errors/warnings/notices that caused by the expression following, but doesn't prevent from the expressio

[PHP] Re: shell script - disable log output

2005-03-09 Thread Eli
Jason Barnett wrote: Eli wrote: I suppose error_log("My error message", 3, "/dev/null") would work. http://php.net/manual/en/ref.errorfunc.php#ini.error-log try: ini_set('error_log', null) Doesn't work either.. :( but thanks for trying.. -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Help with dates

2005-03-09 Thread Jochem Maas
Jason Barnett wrote: Jochem Maas wrote: It's mostly the past. The RPG is set in Egypt and the beginning of the society in egypt has been taken as year 0. The start date I think is obvious, but I do not understand an end date of a calendar.. Perhaps I'm just blond.. but could you perhaps explai

Re: [PHP] shell script - disable log output

2005-03-09 Thread Eli
John Nichel wrote: Try @error_log ( "My error message" ); Don't know if it will work, but it's worth a shot. Checked. That's not working, since the @ operator prevents logging of errors/warnings/notices that caused by the expression following, but doesn't prevent from the expression to be exe

[PHP] Re: shell script - disable log output

2005-03-09 Thread Jason Barnett
Eli wrote: >> I suppose error_log("My error message", 3, "/dev/null") would work. > http://php.net/manual/en/ref.errorfunc.php#ini.error-log try: ini_set('error_log', null) -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?

[PHP] Re: Question regarding simplexml predefined constants

2005-03-09 Thread Jason Barnett
David Allan wrote: > In reading the documentation on simplexml predefined constants, I see a note > that says these were added to "PHP 5.1.0". > > Am I reading that [future] version correctly, and I can expect that these > are to be released in a forthcoming stable release, and in fact do not yet >

Re: [PHP] shell script - disable log output

2005-03-09 Thread John Nichel
Eli wrote: Hello... I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. Code I use (php5 on unix): * #!/usr/local/php/bin/php -q **

Re: [PHP] Help with dates

2005-03-09 Thread Jason Barnett
Jochem Maas wrote: > >> It's mostly the past. The RPG is set in Egypt and the beginning of the >> society in egypt has been taken as year 0. The start date I think is >> obvious, but I do not understand an end date of a calendar.. Perhaps I'm >> just blond.. but could you perhaps explain that

[PHP] Re: shell script - disable log output

2005-03-09 Thread Eli
I suppose error_log("My error message", 3, "/dev/null") would work. I cannot change the error_log() params, since it is cored in extern lib I use. Is there a way to prevent the default error_log() from being outputed? -thanks, Eli -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Quickform - edit form

2005-03-09 Thread Leonie \(phpgroup\)
I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest. Amend the existing form so it enters data and edits it, or have two different webpages. Also

Re: [PHP] shell script - disable log output

2005-03-09 Thread Matthew Fonda
I suppose error_log("My error message", 3, "/dev/null") would work. On Wed, 2005-03-09 at 12:59, Eli wrote: > Hello... > > I'm writing a shell script that uses error_log function to log some > data, but it echos the error message to the output without logging the > message to the log file. > >

[PHP] Question regarding simplexml predefined constants

2005-03-09 Thread Allan, David (ThomasTech)
In reading the documentation on simplexml predefined constants, I see a note that says these were added to "PHP 5.1.0". Am I reading that [future] version correctly, and I can expect that these are to be released in a forthcoming stable release, and in fact do not yet exist in the version I am usi

[PHP] Re: Best way to validate a date

2005-03-09 Thread Eli
David Bevan wrote: Hi all, I'm looking to validate a date submitted through a form and I cannot decide which would be the best way to do it. The form of the date needs to be: -MM-DD. At the moment I'm torn between using a regex, something like: 20[\d][\d]-[0-1][\d]-[0-3][\d] or using the check

[PHP] shell script - disable log output

2005-03-09 Thread Eli
Hello... I'm writing a shell script that uses error_log function to log some data, but it echos the error message to the output without logging the message to the log file. Code I use (php5 on unix): * #!/usr/local/php/bin/php -q *

Re: [PHP] Help with dates

2005-03-09 Thread Jochem Maas
... Why re-invent the wheel? It's part of a game. In the RPG there are dates which the players would like to be able to convert from our calendar to that one, and back again.. In order to do that I need to find the exact days since the year 0 BC/AD. why is OBC relevant, I read later on that you t

Re: [PHP] a new it company

2005-03-09 Thread Ryan A
> here here - I thought It was kind of humourous, I also bare in mind > > that these guys in the far east are just trying to make their way in the > > world too, they are at a disadvantage with the language also. besides > > which there is a quite a culture gap - I notice it alot in the way people

[PHP] Best way to validate a date

2005-03-09 Thread David Bevan
Hi all, I'm looking to validate a date submitted through a form and I cannot decide which would be the best way to do it. The form of the date needs to be: -MM-DD. At the moment I'm torn between using a regex, something like: 20[\d][\d]-[0-1][\d]-[0-3][\d] or using the checkdate() function.

Re: [PHP] Serious problem with Compiler?!?

2005-03-09 Thread Stefan
I've found where the problem came from: I was using PHP 4.3.9 (sorry for misinformation in the first mail) but it was overwritten by a suse onlineupdate 4.3.4 last night. This is where the problems came from. I have removed 4.3.4 via Yast and want to compile 4.3.10 now. ./configure and make test

[PHP] posix_getgroups() and effective grooup id's

2005-03-09 Thread Marten Lehmann
Hello, while I can use posix_getgroups() to get groups additional to the posix_getgid() value, I don't know which function to use to find out the groups additional to posix_getegid(). There's no posix_getegroups() function. Regards Marten -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Help with dates

2005-03-09 Thread Kevin
Mr Lynch, Thanks a lot for your help so far! I will answer or respond in message. Yours, Kevin "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kevin wrote: > > Right now I'm working on a script that would calculate dates from one > > calendar to another. The normal

Re: [PHP] a new it company

2005-03-09 Thread Jochem Maas
Dan Tappin wrote: I think Rory has trouble jumping to conclusions. I was attacked off list by Rory thinking I was another list member... another dant (remember the OT adult content rant / thread?). who me? :-) I would agree that this is not really spam... just bad judgment. The flood of angry

Re: [PHP] Serious problem with Compiler?!?

2005-03-09 Thread Jochem Maas
Stefan wrote: Hi there, my Server worked fine for several month now with php 4.3.4. Since a few hours (without changing anything for the last days) PHP reboot? lame yes, but maybe it works. otherwise specify some server details here. check if files (e.g. the php binary, conf files) have changed (m

Re: [PHP] Re: Question re empty query

2005-03-09 Thread Jochem Maas
M. Sokolewicz wrote: Jackson Linux wrote: Hi, This: if (isset($_GET['r']) && !empty($_GET['r']) && ($r = intval($_GET['r'])) ){ does nobody notice the last 'bit' of the if expression?? if the IF statement evaluates to true then $r _has_ been set!!! $r = "{$_GET['r']}"; //Set the variable

[PHP] Serious problem with Compiler?!?

2005-03-09 Thread Stefan
Hi there, my Server worked fine for several month now with php 4.3.4. Since a few hours (without changing anything for the last days) PHP doesn't 'know' basic commands as mysql_connect() or session_start() ... (e.g.: Fatal error: Call to undefined function: mysql_connect() ) I have no idea where

Re: [PHP] a new it company

2005-03-09 Thread Dan Tappin
I think Rory has trouble jumping to conclusions. I was attacked off list by Rory thinking I was another list member... another dant (remember the OT adult content rant / thread?). I would agree that this is not really spam... just bad judgment. The flood of angry replies to this poster should

[PHP] Re: how can I determine the built options of PHP

2005-03-09 Thread Jason Barnett
I'm not 100% sure what options are used in the Windows build by default, but for windows everything is wrapped up into extensions. You need mysql, you enable the appropriate mysql .dll. You need Apache, you use the appropriate apache .dll. And all of that is controlled through php's ini and/or t

Re: [PHP] a new it company

2005-03-09 Thread Brian Dunning
Sharvan - You won't find too many fans of overseas outsourcing on this list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Fwd: Re: [PHP] PHP / JavaScript integration]

2005-03-09 Thread Jochem Maas
this post was meant for the OP - I sent it to Chris W. (only) by mistake. oops Original Message From: - Wed Mar 09 19:50:29 2005 Chris W. Parker wrote: Mário Gamito on Tuesday, March 08, 2005 4:28 PM said: I'm trying to integrate some JavaScript

Re: [PHP] orphan functions, how can I find them?

2005-03-09 Thread Jochem Maas
Al wrote: I'm cleaning up some old php scripts and find I'm creating some orphans. Anyone know of a tool, or a simple way, to identify all the unused functions in a script's functions include file? grep. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] a new it company

2005-03-09 Thread John Nichel
Brian Dunning wrote: Sharvan - You won't find too many fans of overseas outsourcing on this list. I'm a fan of it if they send ME overseas to outsource. Italy, Germany, Greece, AustraliaI'll go. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] Question re empty query

2005-03-09 Thread Jochem Maas
Jackson Linux wrote: Hi, This: if (isset($_GET['r']) && !empty($_GET['r']) && ($r = intval($_GET['r'])) ){ $r = "{$_GET['r']}"; //Set the variable $r to mean the category number for starters WTF is the preceding statement for??? $r is already set if it exists by the expression in the if s

[PHP] orphan functions, how can I find them?

2005-03-09 Thread Al
I'm cleaning up some old php scripts and find I'm creating some orphans. Anyone know of a tool, or a simple way, to identify all the unused functions in a script's functions include file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a new it company

2005-03-09 Thread Jochem Maas
Rory Browne wrote: SPAMMER From your email address I'm assuming that your name is Sharvan Saxena. It seems like too much of a coincidence that the contact person on that site(Tanuj Saxena), and your good self, have the same surname. Because it seems your are a spammer, and a liar(you concealed your

[PHP] Re: ezmlm "bounced email" warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread Lester Caine
[EMAIL PROTECTED] wrote: Yeah, same here. I thought it was my hosting service, but if other people are having the same issue then what's the deal? Usually it's only a message or two, but sometimes it says there are like 8 or 9 messages that bounced. Has anyone looked into this or have any i

RE: [PHP] a new it company

2005-03-09 Thread Chris W. Parker
Rory Browne on Wednesday, March 09, 2005 10:06 AM said: > Because it seems your are a spammer, and a liar(you concealed your > alleged connection with aforementioned site), I hereby CALL FOR A > BOYCOTT ON http://www.bansalsetech.com/ Ironic thing here is that there

[PHP] how can I determine the built options of PHP

2005-03-09 Thread Uwe Galle
Hi, some applications like Horde require special build options, eg. --with-apache or: --with-apxs --with-gettext --with-mysql --with-mcrypt --with-iconv --enable-mbstring --with-mbstring=all --with-gd I don't want to setup my own build environment at the moment because I dont have the tools ava

Re: [PHP] PHP5.0.3-3 on RedHat

2005-03-09 Thread John Nichel
Bronislav Klucka wrote: John Nichel wrote: You can build the RPM from the source rpmbuild -ta php-5.0.3xxx.tar.gz It will put the RPM somewhere like /usr/src/redhat/RPMS/ I've done this... how can I specify php configure parameters? (--with-mysql, etc) Brona It's been a long time since I've

Re: [PHP] a new it company

2005-03-09 Thread Rory Browne
SPAMMER >From your email address I'm assuming that your name is Sharvan Saxena. It seems like too much of a coincidence that the contact person on that site(Tanuj Saxena), and your good self, have the same surname. Because it seems your are a spammer, and a liar(you concealed your alleged connect

Re: [PHP] PHP5.0.3-3 on RedHat

2005-03-09 Thread Bronislav Klucka
John Nichel wrote: Bronislav Klucka wrote: Hi, does anybody have PHP5.0.3-3 rpms files for RH9? I also need imap, openssl, curl, etc. :) I'm looking every day on internet, but I cannot find it. Brona You can build the RPM from the source rpmbuild -ta php-5.0.3xxx.tar.gz It will put the RPM so

[PHP] Re: Question re empty query

2005-03-09 Thread M. Sokolewicz
Jackson Linux wrote: Hi, This: if (isset($_GET['r']) && !empty($_GET['r']) && ($r = intval($_GET['r'])) ){ $r = "{$_GET['r']}"; //Set the variable $r to mean the category number gods, that's an ugly statement... why don't you simply use $r = $_GET['r']; $fields = '*'; $sort = "ORDE

Re: [PHP] Shared variable / exclusive locking?

2005-03-09 Thread the_roibm
ok, so the solution is shm or shmop, but there is something I'm not sure about it... the way I wanna go is shm and sem and the things that are clear are: - use sem to block multiple processes(or threads) writing to the same shm block - there is no need to use sem for reading since multiple processe

Re: [PHP] PHP5.0.3-3 on RedHat

2005-03-09 Thread John Nichel
Bronislav Klucka wrote: Hi, does anybody have PHP5.0.3-3 rpms files for RH9? I also need imap, openssl, curl, etc. :) I'm looking every day on internet, but I cannot find it. Brona You can build the RPM from the source rpmbuild -ta php-5.0.3xxx.tar.gz It will put the RPM somewhere like /usr/s

[PHP] Question re empty query

2005-03-09 Thread Jackson Linux
Hi, This: if (isset($_GET['r']) && !empty($_GET['r']) && ($r = intval($_GET['r'])) ){ $r = "{$_GET['r']}"; //Set the variable $r to mean the category number $fields = '*'; $sort = "ORDER BY cv.sort"; } else { $where = ''; $fields = 'cv.cv_id,cv.category,dates,cv.job_title,cv.company,cv.

Re: [PHP] Re: Newbie Variable Question

2005-03-09 Thread Jackson Linux
Jochem and everyone, Thanks, this solved the problem. Regarding someone's much appreciated comment: [this]...allows any user to simply change the value of "r" to something more to their liking. given the reset of the code that you included in your first message, who knows what nice holes they'll f

[PHP] PHP5.0.3-3 on RedHat

2005-03-09 Thread Bronislav Klucka
Hi, does anybody have PHP5.0.3-3 rpms files for RH9? I also need imap, openssl, curl, etc. :) I'm looking every day on internet, but I cannot find it. Brona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ezmlm "bounced email" warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread Mat Harris
On Wed, Mar 09, 2005 at 07:30:57AM -0800, Rob Tanner wrote: > Every ezmlm mailing list I'm on does that periodically. Lists that I'm > on that use MailMan never seem to have that problem. What then does > that tell us about ezmlm... i get the same thing toobut as i run my own mail server i k

RE: [PHP] Pop-up message

2005-03-09 Thread pmpa
I believe one could also embed a small flash object and call the window open from flash. I'm just not sure if IE popup blocker will also block that window. Pedro. -Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] I don't know about 'CURRENT' but you have atleast 3 options: 1

Re: [PHP] Internal Server Error ?!?

2005-03-09 Thread [EMAIL PROTECTED]
thankns guys for your help. problem solved. tech from hosting company said they had last night power problem and rebooted server few times and "left open some files" ?!? I didn't get this part but didn't have time and nervs to talk to him more. Thanks! -afan -- PHP General Mailing List (http://

Re: [PHP] Re: Newbie Variable Question

2005-03-09 Thread Jochem Maas
Jackson Linux wrote: On 9 Mar 2005, at 11:15, Jason Barnett wrote: Jackson Linux wrote: ... asks for cv.'1'.include.php ... And I need it to ask for cv.1.include.php How can I make a variable to fetch the literal number from the field cv.category? Not 100% certain that it will work, but try casti

Re: [PHP] Newbie Variable Question

2005-03-09 Thread Jochem Maas
Jackson Linux wrote: Hi, All, A php variable question. I've done this to take the requested category from the URL (www.foo.com/file.htm?r=1) and use it to build the page: if the category number is really always supposed to be an integer (and that it must always be greater than 0, actually in 're

[PHP] Re: imagedestroy()

2005-03-09 Thread Jason Barnett
Edward Vermillion wrote: ... > a directory, about 5000 images are being counted. While the script > worked fine when i wrote it a few months ago, on the different system, > I was recently trying to use it and was repeatedly getting memory limit > errors at an 8MB limit. What the script does is loa

Re: [PHP] Re: Newbie Variable Question

2005-03-09 Thread Jackson Linux
On 9 Mar 2005, at 11:15, Jason Barnett wrote: Jackson Linux wrote: ... asks for cv.'1'.include.php ... And I need it to ask for cv.1.include.php How can I make a variable to fetch the literal number from the field cv.category? Not 100% certain that it will work, but try casting the variable $r to

  1   2   >