Re: [PHP] LAMP jobs

2003-11-20 Thread olinux
For $$$ or for the love? here's a start: For the $$$ http://www.elance.com http://www.scriptlance.com http://www.rentacoder.com For the love? sourceforge.net freshmeat.net pear.php.net olinux --- Susan Ator <[EMAIL PROTECTED]> wrote: > It seems like this question came up before. Is there >

Re: [PHP] PHP to create Printable format

2003-11-20 Thread John W. Holmes
[EMAIL PROTECTED] wrote: Right now, I am trying to do generation of report using PHP in which the report should be in a printable format later on. How do you define a "printable format"? Ideally, you want to do this in CSS. The "print version" would just load a differnet style sheet than the ma

[PHP] PHP to create Printable format

2003-11-20 Thread irinchiang
Hi all.. Right now, I am trying to do generation of report using PHP in which the report should be in a printable format later on. Is there any solution to use PHP to accomplish such task?? The report is viewed in a web browser and how should I create a navigation link or something whereby use

Re: [PHP] How to use SELECT with multiple options enabled in forms....

2003-11-20 Thread John Nichel
John W. Holmes wrote: Robert Restad wrote: I yet have to find a way to actually determine > how I could fetch i.e. the results from a SELECT > multiple-choice menu. I think I already asnwered this today Three more times, and you'll reach your quota. -- By-Tor.com It's all about the Rush h

Re: [PHP] How to use SELECT with multiple options enabled in forms....

2003-11-20 Thread John W. Holmes
Robert Restad wrote: I yet have to find a way to actually determine > how I could fetch i.e. the results from a SELECT > multiple-choice menu. I think I already asnwered this today Now the values the user selected will be in an array, $foo, $_GET['foo'], $_POST['foo'], $_REQUEST['foo'], e

Re: [PHP] How to use SELECT with multiple options enabled in forms....

2003-11-20 Thread John Nichel
Robert Restad wrote: Now, use SELECT is simple enough. The Select Name gives a value, the one you selected of course... However, I yet have to find a way to actually determine how I could fetch i.e. the results from a SELECT multiple-choice menu. What if I want the website visitor to choose from

Re: [PHP] passthru gives error in httpd/error_log

2003-11-20 Thread Tom Rogers
Hi, Friday, November 21, 2003, 10:53:08 AM, you wrote: JH> I'm trying to run a super simple command through passthru. JH> Here's my test.php file: JH> JH> JH> JH> It works if run directly with "php test.php". JH> When this is run from the browser, there is no output, and the JH> following e

Re: [PHP] Curious about something....

2003-11-20 Thread John W. Holmes
Mike Migurski wrote: Is there any particular advantage to having the default PHP install exclude a lot of useful modules such as mcrypt, cli, sockets, etc? The question sounded more like a technical one - is it an advantage in terms of memory? CPU? startup overhead? etc. Yeah, I think I misread tha

[PHP] How to use SELECT with multiple options enabled in forms....

2003-11-20 Thread Robert Restad
Now, use SELECT is simple enough. The Select Name gives a value, the one you selected of course... However, I yet have to find a way to actually determine how I could fetch i.e. the results from a SELECT multiple-choice menu. What if I want the website visitor to choose from multiple values, an

RE: [PHP] Where can i find error log

2003-11-20 Thread Martin Towell
look for this line in your php.ini file error_log = filename but that's only going to help if you have log_errors = On HTH Martin > -Original Message- > From: Manisha Sathe [mailto:[EMAIL PROTECTED] > Sent: Friday, 21 November 2003 12:19 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Wher

[PHP] Where can i find error log

2003-11-20 Thread Manisha Sathe
On server display_error is off in php ini, so I do not get the error msgs, is there anything like error log ? In this case how to find the errors? regard, manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Zip Code Locator / Radius Search

2003-11-20 Thread Manuel Lemos
Hello, On 11/20/2003 10:54 PM, Becoming Digital wrote: This class does exactly what you need: Class: phpZipLocator http://www.phpclasses.org/phpziplocator Thanks. I checked the Repository, but apparently not in the right sections. Don't you think it would be more appropriate in the "Geography

[PHP] passthru gives error in httpd/error_log

2003-11-20 Thread Jesper Hansen
I'm trying to run a super simple command through passthru. Here's my test.php file: It works if run directly with "php test.php". When this is run from the browser, there is no output, and the following error is logged in /var/log/httpd/error_log : sh: /ls: No such file or directory What do

[PHP] Re: Zip Code Locator / Radius Search

2003-11-20 Thread Becoming Digital
> This class does exactly what you need: > > Class: phpZipLocator > http://www.phpclasses.org/phpziplocator Thanks. I checked the Repository, but apparently not in the right sections. Don't you think it would be more appropriate in the "Geography" section? :-P Edward Dudlik "Those who say it

Re: [PHP] Zip Code Locator / Radius Search

2003-11-20 Thread Becoming Digital
> http://phparch.com/issue.php?mid=9 Thanks! > and it's even a free issue :) and I'm even a subscriber. ;) Edward Dudlik "Those who say it cannot be done should not interrupt the person doing it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "Marc

[PHP] Re: Zip Code Locator / Radius Search

2003-11-20 Thread Manuel Lemos
Hello, On 11/20/2003 10:19 PM, Becoming Digital wrote: I need a "search by zip code," aka radius search feature for a current project. I know I've seen info on how this works but I can't seem to find it. I guess my own search abilities are malfunctioning. Would someone be so kind as to point me

Re: [PHP] Zip Code Locator / Radius Search

2003-11-20 Thread Marco Tabini
This may help: http://phparch.com/issue.php?mid=9 ... and it's even a free issue :) Marco -- php|architect - The Magazine for PHP Professionals Try us free at http://www.phparch.com! Complete searchable PHP mailing list archives at http://www.phparch.com/mailinglists Becoming Digital wrote:

[PHP] Zip Code Locator / Radius Search

2003-11-20 Thread Becoming Digital
I need a "search by zip code," aka radius search feature for a current project. I know I've seen info on how this works but I can't seem to find it. I guess my own search abilities are malfunctioning. Would someone be so kind as to point me to a link? Thanks a lot. Edward Dudlik "Those who

RE: [PHP] Curious about something....

2003-11-20 Thread Vail, Warren
I also thought it was a technical or resource question. When not running as a cgi, don't the extensions gain persistence, loading only the first time requested or first time PHP is used, instead of loading with each request? That kind of question. Warren Vail -Original Message- From: Mik

Re: [PHP] Curious about something....

2003-11-20 Thread Mike Migurski
>> Is there any particular advantage to having the default PHP install >> exclude a lot of useful modules such as mcrypt, cli, sockets, etc? > >Honestly, this has kind of been discussed this week in the "encoder" >thread. Where do you draw the line on what's useful or not and who does >the deciding

Re: [PHP] Mulitple selects from form drop down box

2003-11-20 Thread CPT John W. Holmes
From: "Jeff McKeon" <[EMAIL PROTECTED]> > Is it possible to have a form "Drop down box" that allows multiple > selects? I know the form field itself exists, but It only seems to > return the last item selected and not all of them. > > Note in the code below the line: This is the expected behavi

Re: [PHP] Curious about something....

2003-11-20 Thread CPT John W. Holmes
From: "Dan Joseph" <[EMAIL PROTECTED]> > Is there any particular advantage to having the default PHP install exclude > a lot of useful modules such as mcrypt, cli, sockets, etc? Yes. I've found that I do not need those libraries and have a secret agreement preventing them from being included...

[PHP] Mulitple selects from form drop down box

2003-11-20 Thread Jeff McKeon
Is it possible to have a form "Drop down box" that allows multiple selects? I know the form field itself exists, but It only seems to return the last item selected and not all of them. Note in the code below the line: [code] ship1 ship2 ship3 [code] All th

Re: [PHP] array_search

2003-11-20 Thread CPT John W. Holmes
From: "Jake McHenry" <[EMAIL PROTECTED]> > I've been using array_search in my scripts for a while now, but have > come across a problem. My new page has a textarea field. If I enter > any new lines in the textarea, array_search returns false. [snip] > Kinda stuck here.. Not sure what I should try

[PHP] Curious about something....

2003-11-20 Thread Dan Joseph
Hi, Is there any particular advantage to having the default PHP install exclude a lot of useful modules such as mcrypt, cli, sockets, etc? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Scott Fletcher wrote: > > Anyway, don't do that, use an existing XML parser.. > > I'll try. I haven't got the PHP XML Parser to work, I think it is > because the XML stuffs I receive is not a true XML, some of them don't > have a closing tag either because one tag have actual

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
I'll try. I haven't got the PHP XML Parser to work, I think it is because the XML stuffs I receive is not a true XML, some of them don't have a closing tag either because one tag have actual data as an attribute inside one tag. It is kind of frustrating to on not knowing what XML Parser will work

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
Yea, the manual is clear but honestly, don't know what the offset really meant since there is no definition or explaination of how the offset work. All I know the definition of the offset is 'To balance each other out'. Like a weighting scale where one weight is more than other and I would need to

[PHP] SQLite

2003-11-20 Thread Bronislav Klučka
Hi, I was trying to work with SQLite, everything is OK, but it seems not to vork in thread, but in sequences. I mean: I perform a question which tooks 2 minutes, then another, which tooks 3 minutes, then I perform them both from 2 separated browser windows and both of them stops at the same time an

Re: [PHP] echo or print

2003-11-20 Thread Eugene Lee
On Thu, Nov 20, 2003 at 12:36:42PM -0500, John W. Holmes wrote: : : Jay Fitzgerald wrote: : > : >when should i use echo ' '; vs. print ' '; : : You should always use echo. It'll make a significant performance : increase in your scripts as it's only four letters instead of five. Also, the lett

Re: [PHP] Why is the php loop, 'for()', so slow????

2003-11-20 Thread Eugene Lee
On Thu, Nov 20, 2003 at 09:45:45AM -0500, Scott Fletcher wrote: : : I can give the strpos() a shot but I seem to have problem with getting the : strpos() to give me two seperate "" tags instead of just hte : first one only... Use the offset parameter: -- PHP General Mailing List (http

RE: [PHP] array_search

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Jay Blanchard wrote: > $foo = $_POST['textarea']; > $newFoo = str_replace("\n", " ", $foo); > $arrayFoo = explode(" ", $newFoo); In the code above any spaces on the lines will also be delimiters... I missed that part of the requirement...? Maybe I'm not understanding the prob

RE: [PHP] array_search

2003-11-20 Thread Jake McHenry
> -Original Message- > From: Jake McHenry [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 20, 2003 2:51 PM > To: 'Jay Blanchard' > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] array_search > > > > -Original Message- > > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > > Sent: T

RE: [PHP] Re: PHP Encoders

2003-11-20 Thread Michael
I like POB too but it's an obsfuscator. To fix your $email problem just do a search for $2d4g3a5sd and change them all to $email. An encoder would be Ioncube or Turck's mmcache but the server needs to be installed with their software to run the encoded scripts. POB doesn't need anything installe

Re: [PHP] Remote computer name?

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 03:33, John Nichel wrote: > Right...it doesn't return the machine name for any of my client machines > (didn't expect it too on the DHCP boxes, but thought it might on the two > static boxes). For the two static machines, it returns the Charter > (cable connection) and

RE: [PHP] array_search

2003-11-20 Thread Jake McHenry
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 20, 2003 2:48 PM > To: Jake McHenry; [EMAIL PROTECTED] > Subject: RE: [PHP] array_search > > > [snip] > I've been using array_search in my scripts for a while now, > but have come across a pr

RE: [PHP] array_search

2003-11-20 Thread Jay Blanchard
[snip] I've been using array_search in my scripts for a while now, but have come across a problem. My new page has a textarea field. If I enter any new lines in the textarea, array_search returns false. I have tried using html_encode, addslashes, serialize and nothing yet has worked. My only other

Re: [PHP] Javascript question

2003-11-20 Thread Brent Baisley
Funny off-off topic stuff. But to address the original question, which I deleted already, the problem is in your html, not your javascript. The syntax for selects is: Colorado You had the "name" parameter in the option, not the select. Now about unclogging drains... On Nov 20, 2003, at 2:05 PM

[PHP] array_search

2003-11-20 Thread Jake McHenry
I've been using array_search in my scripts for a while now, but have come across a problem. My new page has a textarea field. If I enter any new lines in the textarea, array_search returns false. I have tried using html_encode, addslashes, serialize and nothing yet has worked. My only other option

Re: [PHP] Remote computer name?

2003-11-20 Thread John Nichel
Jason Wong wrote: > 3) you can always use gethostbyaddr($_SERVER['REMOTE_ADDR']) whenever it is > needed. But do note that $_SERVER['REMOTE_ADDR'] is not a wholly reliable > indicator of who your client is. Right...it doesn't return the machine name for any of my client machines (didn't expect

Re: [PHP] Javascript question

2003-11-20 Thread Aaron Gould
$strSinkTrap = fopen("/under/the/cabinet/", "w+"); while(!feof($strSinkTrap)){ unscrewFittings($pipe); if($pipeUnscrewed == TRUE){ removeClog($hair, $grease, $grime); } } fclose($strSinkTrap); You may want to call the screwFittings fun

Re: [PHP] Remote computer name?

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 02:59, Jason Gerfen wrote: > So in that case there isn't a $_SERVER function to gather the remote > computer name? 1) print_r($_SERVER) to see what is available 2) it may be available if you have set your webserver to do DNS lookups. But because it is expensive (ie take

Re: [PHP] Javascript question

2003-11-20 Thread John Nichel
Jay Blanchard wrote: [snip] My kitchen sink always gets clogged when we clean out the fridge. Does anyone know of a way I can fix that? ;) [/snip] $strSinkTrap = fopen("/under/the/cabinet/", "w+"); while(!feof($strSinkTrap)){ unscrewFittings($pipe); if($pipeUnscrewed == TR

Re: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Ray
1. When you say "on my system in unencrypted form" do you indeed mean you want data that can be encrypted and then unencrypted as opposed to a hash like md5() that cannot be reversed? (I only ask this because a lot times people use them synonymously when they should not.) Yes, two way, like PKI.

Re: [PHP] Remote computer name?

2003-11-20 Thread John Nichel
Jason Gerfen wrote: John Nichel wrote: Jas wrote: I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1

RE: [PHP] Javascript question

2003-11-20 Thread Jay Blanchard
[snip] My kitchen sink always gets clogged when we clean out the fridge. Does anyone know of a way I can fix that? ;) [/snip] $strSinkTrap = fopen("/under/the/cabinet/", "w+"); while(!feof($strSinkTrap)){ unscrewFittings($pipe); if($pipeUnscrewed == TRUE){

Re: [PHP] Javascript question

2003-11-20 Thread John Nichel
Robin Kopetzky wrote: > Ah-hah! Jason hides under an email address that does not exist so one cannot > reply directly to him, only via the list. Does that not describe the person > well? > Jason's actions describe him, not his email address. Jason is a valued member of this list and has helped

Re: [PHP] Javascript question

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 02:38, Robin Kopetzky wrote: > Ah-hah! Jason hides under an email address that does not exist so one > cannot reply directly to him, only via the list. Does that not describe the > person well? My address only accepts mail directly from the list, cuts down on the spam s

Re: [PHP] Remote computer name?

2003-11-20 Thread Jason Gerfen
So in that case there isn't a $_SERVER function to gather the remote computer name? Jas John Nichel wrote: Jas wrote: I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of

Re: [PHP] Javascript question

2003-11-20 Thread John Nichel
Jason Wong wrote: > On Friday 21 November 2003 02:24, Robin Kopetzky wrote: > >>I know this may be off-topic but I've got a problem that I do not know how >>to work around... > > > Hey list moderators, can this list be renamed the > php-general-javascript-and-the-kitchen-sink list? > My kitch

Re: [PHP] echo or print

2003-11-20 Thread Burhan Khalid
Tom Rogers wrote: Hi, Friday, November 21, 2003, 12:37:50 AM, you wrote: JF> when should i use echo ' '; vs. print ' '; JF> JF> Jay Fitzgerald, Design Director JF> - Certified Professional Webmaster (CPW-A) JF> - Certified Professional Web Designer

RE: [PHP] Javascript question

2003-11-20 Thread Jay Blanchard
[snip] Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? [/snip] I found Jason's reply to be humorous! You yourselef said that your request was off topic. What did you expect? Here is somet

RE: [PHP] Javascript question

2003-11-20 Thread Mike Migurski
>Ah-hah! Jason hides under an email address that does not exist so one >cannot reply directly to him, only via the list. Does that not describe >the person well? Insofar as he is cautious about spam, sure. - michal migurski- cont

Re: [PHP] Remote computer name?

2003-11-20 Thread Mike Migurski
>> [Snippit used] >> $ipaddy = $_SERVER['REMOTE_ADDR']; >> $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of >> the server (i.e. localhost, 168.2.2.1) >> >> jas > >HTTP_HOST returns the name (or ip) of the machine on which php is >running. REMOTE_ADDR will return the ip of the

RE: [PHP] Javascript question

2003-11-20 Thread Robin Kopetzky
Ah-hah! Jason hides under an email address that does not exist so one cannot reply directly to him, only via the list. Does that not describe the person well? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] echo or print

2003-11-20 Thread Johnson, Kirk
> when should i use echo ' '; vs. print ' '; Here's a link listed in the manual at http://www.php.net/manual/en/function.print.php http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Javascript question

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 02:24, Robin Kopetzky wrote: > I know this may be off-topic but I've got a problem that I do not know how > to work around... Hey list moderators, can this list be renamed the php-general-javascript-and-the-kitchen-sink list? -- Jason Wong -> Gremlins Associates -> ww

[PHP] Javascript question

2003-11-20 Thread Robin Kopetzky
I know this may be off-topic but I've got a problem that I do not know how to work around... I'm displaying a list and the problem is getting the value back after an 'onChange' event. Code is like this:

[PHP] PHP LDAP attributes question

2003-11-20 Thread Cory Hicks
Hello, I am having trouble returning attributes from an LDAP dir and was curious if anyone had experienced similar issues. I am able to retrieve the attributes in the $nds_stuff fine. However, once I add an attribute to the array, I can get the last attribute in the array, but not the one that com

Re: [PHP] Remote computer name?

2003-11-20 Thread John Nichel
Jas wrote: I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas HTTP_HOST returns the name (or ip)

Re: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Jason Wong
On Friday 21 November 2003 01:31, Ray wrote: > I thought of that and I do plan on implementing it on the way in and out. > However, to meet HIPA and other business requirements, the data can not > exist at any point in time on my system in unencrypted form. I do not want > to be able to view it a

RE: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray on Thursday, November 20, 2003 9:32 AM said: > I thought of that and I do plan on implementing it on the way in and > out. However, to meet HIPA and other business requirements, the data > can not exist at any point in time on my system in unencrypted form. > I

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 17:39, Scott Fletcher wrote: > How exactly does the 3rd parameter option work. I tried this > but it doesn't > work, so I don't know how exactly does it work... There isn't detail > information on the php.net website... > > --snip-- >$XML_Start = (strpos($res_str,"",1);

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Kelly Hallman
On Thu, 20 Nov 2003, Scott Fletcher wrote: > How exactly does the 3rd parameter option work. I tried this but it > doesn't work, so I don't know how exactly does it work... There isn't > detail information on the php.net website... "The optional offset parameter allows you to specify which chara

Re: [PHP] Session vars not echoing?

2003-11-20 Thread John W. Holmes
Jas wrote: [Script registering vars - sessions.php] /* Format Date & Time */ $hour = (date("H:i:s")); $day = (date("d")); $date = (date("F $day, Y")); Don't you mean $data = date('F d, Y'); I don't see why you're calculating $day and then putting it in date(). /* Register vars */ $_SESSION['date

Re: [PHP] echo or print

2003-11-20 Thread John W. Holmes
Jay Fitzgerald wrote: when should i use echo ' '; vs. print ' '; You should always use echo. It'll make a significant performance increase in your scripts as it's only four letters instead of five. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The

RE: [PHP] Usort an array.

2003-11-20 Thread Jay Frumkin
Try using rsort() Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Usort an array.

2003-11-20 Thread pete M
array_reverse() Vincent M. wrote: Hello, I have an array like that: $return[0]["photo"] = monuments_01.jpg $return[1]["photo"] = monuments_00.jpg $return[2]["photo"] = monuments_03.jpg $return[3]["photo"] = monuments_02.jpg $return[4]["photo"] = monuments_04.jpg If I use the

[PHP] Remote computer name?

2003-11-20 Thread Jas
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote computer name? [Snippit used] $ipaddy = $_SERVER['REMOTE_ADDR']; $host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of the server (i.e. localhost, 168.2.2.1) jas -- PHP General Mailing List (http://www.php.

[PHP] Re: Session vars not echoing?

2003-11-20 Thread Jas
Yeah I did that, sorry I just didn't note it in the snippit.. and it is now working with the $_SESSION function, i just had to restart the browser to clear the cache after updating the code. jas Pete M wrote: need to issue a session_start() at top of page Pete Jas wrote: Not sure why this i

Re: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Ray
Chris, I thought of that and I do plan on implementing it on the way in and out. However, to meet HIPA and other business requirements, the data can not exist at any point in time on my system in unencrypted form. I do not want to be able to view it and I do not want to know what is there. Any o

Re: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Scott Fletcher
How exactly does the 3rd parameter option work. I tried this but it doesn't work, so I don't know how exactly does it work... There isn't detail information on the php.net website... --snip-- $XML_Start = (strpos($res_str,"",1); $XML_End = strpos($res_str,"]]>",2); --snip-- Scott "Mike F

[PHP] Usort an array.

2003-11-20 Thread Vincent M.
Hello, I have an array like that: $return[0]["photo"] = monuments_01.jpg $return[1]["photo"] = monuments_00.jpg $return[2]["photo"] = monuments_03.jpg $return[3]["photo"] = monuments_02.jpg $return[4]["photo"] = monuments_04.jpg If I use the sort function: sort($return) ; I get

Re: [PHP] Re: PHP Encoders

2003-11-20 Thread Ryan A
Hi, POBs is really good, but I have had some weird problems when encoding large files, especially if you take out the line breaks in the options. Another problem with POBS is that you can have your "config.php" file not encoded with the rest of the files, since it changes your variables (eg $email

RE: [PHP] On-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray on Wednesday, November 19, 2003 9:44 AM said: > Any ideas on how to accomplish this within the PHP construct? You already posted this question and I've already responded to it. Check the old thread. -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Re: file_exists on Windows problem

2003-11-20 Thread Chris Williams
Thanks, that worked "David Strencsev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you're using NTFS file system... please make sure that the PHP's temporay > UPLOAD directory and SESSIONDATA directory are set with the correct > permissions. > I mean that the user IUSR_YOURCOMP

[PHP] On-the-fly encryption

2003-11-20 Thread Ray
I want to do two-way encryption on a file coming through the web server. In this context, I would want to generate a public and private key, encrypt the file stream (i.e., don't want to write the unencrypted file to disk first and then encrypt it; I want to encrypt the stream as it comes in) with

RE: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray on Thursday, November 20, 2003 5:29 AM said: > Any ideas on how to accomplish this within the PHP construct? Instead of reinventing the wheel you can just use HTTPS. Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tu

[PHP] LAMP jobs

2003-11-20 Thread Susan Ator
It seems like this question came up before. Is there a resource for people looking for jobs working with open source products (LAMP specifically)? Thanks, susan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Avoiding duplicate orders?

2003-11-20 Thread Marek Kilimajer
J J wrote: What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card processing and will click the submit button two, three, or more times causing duplicate orders. Is there a quick way to disable the submit button at leas

[PHP] Two-way on-the-fly encryption

2003-11-20 Thread Ray
I want to do two-way encryption on a file coming through the web server. In this context, I would want to generate a public and private key, encrypt the file stream (i.e., don't want to write the unencrypted file to disk first and then encrypt it; I want to encrypt the stream as it comes in) with

[PHP] Re: Avoiding duplicate orders?

2003-11-20 Thread pete M
psuedo code session_start() if (incoming POST and $_SESSION['in_database'] != 1) { insert to DB $_SESSION['in_database'] = 1 } pete J J wrote: What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card pr

[PHP] Re: Session vars not echoing?

2003-11-20 Thread pete M
need to issue a session_start() at top of page Pete Jas wrote: Not sure why this is happening but I think it has something to do with an include statement... [Server environment] Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3 register_globalsOnOn report_memleaksOnOn safe_modeOffO

[PHP] Re: PHP Encoders

2003-11-20 Thread R. Rajesh Jeba Anbiah
Jerry <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi there ! > > I am curretly looking for suitbale solutions for encoding PHP scripts > after developing a couple of comercial applications in PHP. > > Has anybody made any experience with several encoders like IONCUBE, > SOU

Re: [PHP] Avoiding duplicate orders?

2003-11-20 Thread Sophie Mattoug
The way I do is, on the result page, to create a variable (for example $done) and I put to into the session. So if this variable already exists, I don't re-execute the form treatment code. Hope this helps -- Cordialement, --- Sophie Mattoug Développement web dynamique [E

Re: [PHP] PHP-Only Polling Script?

2003-11-20 Thread John Nichel
Rob Adams wrote: "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] For premade scripts, there's always here too... http://www.phpresourceindex.com Is this page a joke? When I go there, I get this message: Nope, no joke...just not thinking while I type http://php.r

RE: [PHP] PHP-Only Polling Script?

2003-11-20 Thread Dan Joseph
Hi, > Is this page a joke? When I go there, I get this message: > > > Active Server Pages error 'ASP 0241' > CreateObject Exception > > /Default.asp > > The CreateObject of '(null)' caused exception C005. > Looks ok to me, except last I remmeber, ASP gave you a line number it crash

[PHP] Avoiding duplicate orders?

2003-11-20 Thread J J
What is the simplest way to avoid duplicate order entry on a form? Some people aren't patient enough to wait for the SSL/credit card processing and will click the submit button two, three, or more times causing duplicate orders. Is there a quick way to disable the submit button at least in javasc

Re: [PHP] PHP-Only Polling Script?

2003-11-20 Thread Rob Adams
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > For premade scripts, there's always here too... > > http://www.phpresourceindex.com > Is this page a joke? When I go there, I get this message: Active Server Pages error 'ASP 0241' CreateObject Exception /Default.asp

Re: [PHP] Using JavaScript variables in PHP

2003-11-20 Thread John Nichel
Mike Knittel wrote: How does one go about using a JavaScript variable with PHP code. I have a function in JavaScript that takes a single input parameter (ID). I want to use this ID variable as the value on the where clause of a database query. Example: "select * from somedatabase where field=ID"

Re: [PHP] Using JavaScript variables in PHP

2003-11-20 Thread Mike Migurski
>How does one go about using a JavaScript variable with PHP code. I have >a function in JavaScript that takes a single input parameter (ID). I >want to use this ID variable as the value on the where clause of a >database query. > >Example: "select * from somedatabase where field=ID" > >Can this

RE: [PHP] Re: IE 6 mangling posted code

2003-11-20 Thread Pablo Gosse
David Strencsev wrote: > You may play with these functions: > > addslashes(); > stripslashes(); > htmlentities(); > html_entity_decode(); > Thanks for your help manu and david. I'm going to attempt converting the html characters and see if that works, but something also makes me think this migh

Re: [PHP] Installing Turck MMcache on win

2003-11-20 Thread Curt Zirzow
* Thus wrote Veress Berci ([EMAIL PROTECTED]): > Hello > > Curt wrote: > >php has to run as a mod in order to have mmcache run. Make a php > I knew this from the start. So I configured Apache (i think i did it right) > to run php as module. > I had an "httpd.conf.runphpasmodule" file, and I had re

[PHP] XML Parsing....

2003-11-20 Thread Scott Fletcher
Hi Everyone! I'm having a little trouble understanding how exactly to use the XML parser. I haven't found the right settings to set up the XML Parser's option because of no definition of the encoding setting in the XML tags I received. So, I'll post the script here and hope to get some feedb

[PHP] Using JavaScript variables in PHP

2003-11-20 Thread Mike Knittel
How does one go about using a JavaScript variable with PHP code. I have a function in JavaScript that takes a single input parameter (ID). I want to use this ID variable as the value on the where clause of a database query. Example: "select * from somedatabase where field=ID" Can this be done,

[PHP] Session vars not echoing?

2003-11-20 Thread Jas
Not sure why this is happening but I think it has something to do with an include statement... [Server environment] Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3 register_globals On On report_memleaks On On safe_mode Off Off safe_mode_exec_dir no value no value Session Support enabled [Script registering

RE: [PHP] Is there a way to use the strpos() for next string...

2003-11-20 Thread Ford, Mike [LSS]
On 20 November 2003 14:53, Scott Fletcher wrote: > Hi Everyone! > > Is there a way to get the strpos() to find the next needle in > the haystack instead of just the 1st one only? (Where the 1st > needle is the same string as the next needle)... Look at the optional 3rd parameter to strpos()

Re: [PHP] date question

2003-11-20 Thread Ahbaid Gaffoor
Beautiful, many thanks Ahbaid. Martin Cameron wrote: $ndays=14; function get_next_dates($ndays) { $today=date("m-d-Y",mktime(0,0,0,date("m"),date("d"),date("Y"))); $forward_date=date("m-d-Y",mktime(0,0,0,date("m"),date("d")+$few_days,date("Y"))); print "$today === $few_days === $forward_date";

Re: [PHP] echo or print

2003-11-20 Thread Tom Rogers
Hi, Friday, November 21, 2003, 12:37:50 AM, you wrote: JF> when should i use echo ' '; vs. print ' '; JF> JF> Jay Fitzgerald, Design Director JF> - Certified Professional Webmaster (CPW-A) JF> - Certified Professional Web Designer (CPWDS-A) JF> -

RE: [PHP] Why is the php loop, 'for()', so slow????

2003-11-20 Thread Wouter van Vliet
As a substitute for substr, you might want to give a regex a chance.. have no clue if it's faster, but it might just be. /^.{2}(.{0,8})/ would be your regex if you want to start at offset THREE and take out a MAX EIGHT char string (remove the 0 and get ONLY EIGHT char strings). Not sure i

  1   2   >