[PHP] Running PHP from inside another application!

2005-02-15 Thread Mikael Andersson
Hi, I've a case where I have to run a lots of php-scrips, in a short time, from inside a delphi-application. Every script connects to the same databas. Today I use CreateProcess to start php.exe and then I'm using pipes to get the php-result. I'm doing this for each php-script I want to run, and

[PHP] mediator between PHP and Perl (with sessions)

2005-02-15 Thread Eli
Hi... I got a shared lib API written in PHP, that depends on sessions for its operation. I took a prepared system in Perl that I want integrate with the shared lib API in PHP. What I thought about is, to write a mediator class in Perl that will define the same API functions as I got in the shar

[PHP] mediator between PHP and Perl (with sessions)

2005-02-15 Thread Eli
Hi... I got a shared lib API written in PHP, that depends on sessions for its operation. I took a prepared system in Perl that I want integrate with the shared lib API in PHP. What I thought about is, to write a mediator class in Perl that will define the same API functions as I got in the shar

Re: [PHP] User Passwords: checking for unique chars

2005-02-15 Thread Burhan Khalid
[ snipped ] Oh! You're so mean!! ;) A lot of people are making some great points. I feel I must strighten this out a little. While I may not be the best coder in the world I do have my reasons. I originally made the passwords automatically generated and emailed to the user. Nice complicated

[PHP] Image Creation

2005-02-15 Thread Aaron Todd
I just wrote a little script to play around with the GD library but I am having a problem displaying it in the browser. I have not problem at all when I just run the script. But I was trying to make the image in a custom function which will return the image when its called. All I end up getti

[PHP] test

2005-02-15 Thread Giulio
only a test. sorry Cantoberon Multimedia srl http://www.cantoberon.it Tel. 06 39737052 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Many forms in one php file

2005-02-15 Thread James Taylor
Nsk wrote: Hi I want to create a single php file which will be able to display multiple html forms. Like this: Form1 -> Form2 -> Form3. After the user completes and submits Form1, the script will process it and display a different form. etc... I am new to php, I would need some detailed instruc

[PHP] Re: who's on-line application - php

2005-02-15 Thread Stefan Dengscherz
Hello, usually you can not determine clearly who is online on your website at the moment because http is a session-less protocol (thus php implements a session mechanism through cookies or session id). However you can use the following approach: - add a 'last_seen' field to the users table of you

Re: [PHP] php products licensing system

2005-02-15 Thread Jad Madi
as I said, we are willing to have our product open source, but No free. and that fair enough, thats why I'm asking about a good method to protect our products from being used illegaly and keeping it open source On Tue, 15 Feb 2005 13:05:52 +0200, Jad Madi <[EMAIL PROTECTED]> wrote: > as I said, w

Re: [PHP] test

2005-02-15 Thread NSK
On Tuesday 15 February 2005 14:54, Giulio wrote: > only a test. Your test was successful -- NSK http://portal.wikinerds.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] base32/62 mcrypted data

2005-02-15 Thread Marek Kilimajer
Gary C. New wrote: I am currently storing mcrypted data as a base64 encoded string. I now need to store the mcrypted data as a base32 or base62 string, because of problems occurring due to the '+', '/', and '=' characters. It seems that there is only the base64_en/decode default function. Does an

Re: [PHP] PHP 5 with Apache 2.0

2005-02-15 Thread Lester Caine
Lars B. Jensen wrote: So from here, go for it mate Same here. The more of us running it the sooner it will become the norm ;) -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] php products licensing system

2005-02-15 Thread Jason Barnett
Jad Madi wrote: as I said, we are willing to have our product open source, but No free. and that fair enough, thats why I'm asking about a good method to protect our products from being used illegaly and keeping it open source It's a tough balancing act. Encoding / closing the source with one of t

Re: [PHP] mediator between PHP and Perl (with sessions)

2005-02-15 Thread Matt M.
> Is there a way to use sessions variables in PHP shell script (without > reading the session file and parse it in the script)? Do you have a database available? You could put the session info in a database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Fancy Form processing Ideas

2005-02-15 Thread Burhan Khalid
Chris W. Parker wrote: [EMAIL PROTECTED] on Monday, February 14, 2005 6:29 AM said: I am looking for interesting approaches to form submissions and error checking in the forms. One time, at PHP Summer Camp, I made this one form that, when submitted, would open the C

[PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
Hi, I have a database that contains encrypted data using Mysql function ENCODE(). Certain users will be allowed to view this data and I will allow them to download a CSV file contain the decrypted data using the Mysql DECODE() function. However I don't want this file to be left on the server,

[PHP] Re: Running PHP from inside another application!

2005-02-15 Thread Jason Barnett
Mikael Andersson wrote: Hi, I've a case where I have to run a lots of php-scrips, in a short time, from inside a delphi-application. Every script connects to the same databas. Today I use CreateProcess to start php.exe and then I'm using pipes to get the php-result. I'm doing this for each php-scri

[PHP] How to make use of the billing token the right way???

2005-02-15 Thread Scott Fletcher
I created the token via Javascript where the billing can be controlled better and to prevent the mixed up of the billing such as incorrect statements or calculation. I use the billing lock file for that purpose. I found that it doesn't alway work that way when the browser is refreshed or submitte

[PHP] Handling email bouncebacks

2005-02-15 Thread Chris Bruce
Hi, I am looking for a way to manage email bouncebacks on my Linux server for one of my client's email marketing system. What I would like to do is have a way of capturing the email address from the header of each bounce and insert it into a MySQL table. At that point I can do the requisite scr

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
Scott Fletcher wrote: I created the token via Javascript where the billing can be controlled better and to prevent the mixed up of the billing such as incorrect statements or calculation. I use the billing lock file for that purpose. I found that it doesn't alway work that way when the browser is

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Matt M.
> I have a database that contains encrypted data using Mysql function > ENCODE(). Certain users will be allowed to view this data and I will allow > them to download a CSV file contain the decrypted data using the Mysql > DECODE() function. However I don't want this file to be left on the server, >

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
Hi Matt, Thanks for the reply, I know how to delete a file I just wanted to know if its possible to ensure that its deleted automatically as soon as the user has downloaded it. Thanks... "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> I have a database that contains e

[PHP] Re: mediator between PHP and Perl (with sessions)

2005-02-15 Thread Eli
It's quite easy to pass the session variables to the script. The problem with sessions and shell PHP scripts, is that PHP doesn't support sessions on that mode (CLI mode it is called). So, I would have to manualy read the session file and parse it. If anyone knows what is the exact function tha

[PHP] fopen problem using ftp

2005-02-15 Thread Giulio
HI all, I have a script that uses fopen to acces for read a file using ftp: $filepointer = fopen($address,'r'); having $address string formed this way: $address = "ftp:/ /".$FTPuser.":".$FTPpassword."@".$FTPserver."/".$FileFolder"."/".$FileNa me; This script always worked for me, it has now st

[PHP] Re: PHP 5 with Apache 2.0

2005-02-15 Thread Matthew Weier O'Phinney
* Neal Schilling <[EMAIL PROTECTED]>: > I know this question probably gets asked a lot, but I'm setting up a Web > Server shortly and am debating going with PHP 5 on Apache 2.0 or 1.3. In > short, is PHP 5, when combined with either Apache 1.3 or 2.0 on Linux or > FreeBSD, ready for a production

[PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Dave
PHP General, The Situation: I'm retrieving some email addresses from a database. I want to be able assemble all the addresses into one string that I can use in the mail() command. At no time should there ever be more than about 5 email addresses collected from the database. I want all addr

[PHP] isset

2005-02-15 Thread D_C
I often use this type of construct $cmd = $_POST['cmd']; if ($cmd == null) { // do default but this throws a notice if the ['cmd'] index is not defined. ugly. using if (isset($_POST['cmd'] ) { $cmd = $_POST['cmd']; } seems lengthy. is there a way around this? i tried using $cmd = @ $_POS

RE: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Warren Vail
Try loading he email address to an array from your query; $addressarray[] = $address; and when done extracting the rows from your database, parse them into a comma separated string using $listofaddresses = implode(", ",$addressarray); HTH, Warren Vail > -Original Message- > From: Dav

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Matt M.
> The Problem: > I can't quite figure out how to take the results of the > mysql_query() and assemble them into a string. In my experiments so far, > I either get a "mysql_data_seek(): Offset 0 is invalid for MySQL result > index" error, or my mail function sends to a blank address. no gua

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Gareth Williams
Use implode: http://nl2.php.net/manual/en/function.implode.php On 15 Feb 2005, at 16:37, Dave wrote: PHP General, The Situation: I'm retrieving some email addresses from a database. I want to be able assemble all the addresses into one string that I can use in the mail() command. At no tim

RE: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Chris W. Parker
Dave on Tuesday, February 15, 2005 7:37 AM said: > The Problem: > I can't quite figure out how to take the results of the > mysql_query() and assemble them into a string. In my experiments so > far, I either get a "mysql_data_seek(): Offset 0 is invalid for M

[PHP] Re: Image Creation

2005-02-15 Thread Aaron Todd
Thanks for the compliment on my function. I have since improved upon it...see below. I can do the exact same thing as you and get results, but what I can't do is show the image within an HTML table. I think it is something to do with the header line, but I dont know how to get around it. I'v

[PHP] Re: isset

2005-02-15 Thread M. Sokolewicz
D_c wrote: I often use this type of construct $cmd = $_POST['cmd']; if ($cmd == null) { // do default but this throws a notice if the ['cmd'] index is not defined. ugly. using if (isset($_POST['cmd'] ) { $cmd = $_POST['cmd']; } seems lengthy. is there a way around this? i tried using $cmd

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Scott Fletcher
I can do the Session Token but problem is two browser windows can have the same Session Token via "File --> New Window" or Browser Tab. I have thought about using the Database Table instead but it all go back to the original problem with 2 same browser windows that use the same Session. I'm think

[PHP] Many forms in one php file

2005-02-15 Thread NSK
Hi I want to create a single php file which will be able to display multiple html forms. Like this: Form1 -> Form2 -> Form3. After the user completes and submits Form1, the script will process it and display a different form. etc... I am new to php, I would need some detailed instructions, or

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Leif Gregory
Hello Dave, Tuesday, February 15, 2005, 8:37:02 AM, you wrote: D> while ($tantoData = mysql_fetch_array($tantoResult)) D> { D> $tantoEmail = $tantoEmail . "," . $tantoData; D> } D> mail($tantoEmail, $subject, $mailcontent, $addHeaders); Everything looked good up to here.

[PHP] Re: Set a timeout on file_get_contents?

2005-02-15 Thread Jason Barnett
Brian Dunning wrote: Is there any way to specify a timeout on a file_get_contents()? I'm trying to verify a URL but I don't want to spend more than a few seconds on it. - Brian Note that using file_get_contents to do this is only going to work if your php.ini has allow_url_fopen = 1. Actually I th

[PHP] php_serializer

2005-02-15 Thread Catalin Trifu
Hi, Is the php5 session serializer php_binary faster than the php one ? Or it's purpose is just to obscure the saved datas ? thanks, catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Image Creation

2005-02-15 Thread Matt M.
get rid of : echo " This is a test".makepie(20,200)." "; and only have this : makepie(20,200); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Jochem Maas
Dave wrote: PHP General, The Situation: I'm retrieving some email addresses from a database. I want to be able assemble all the addresses into one string that I can use in the mail() command. At no time should there ever be more than about 5 email addresses collected from the database. I w

Re: [PHP] PHP book recommendations>

2005-02-15 Thread Chris Shiflett
--- "Bosky, Dave" <[EMAIL PROTECTED]> wrote: > I'm looking for an easy to read PHP book that will help me learn a > solid foundation in PHP. If you need a strong foundation: http://www.oreilly.com/catalog/learnphp5/ If you already have a strong foundation: http://www.amazon.com/exec/obidos/ASIN

[PHP] Set a timeout on file_get_contents?

2005-02-15 Thread Brian Dunning
Is there any way to specify a timeout on a file_get_contents()? I'm trying to verify a URL but I don't want to spend more than a few seconds on it. - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Ospinto
while ($tantoData = mysql_fetch_array($tantoResult)) { $tantoEmailArray[] = $tantoData; } now all the values are stored into an array ($tantoEmailArray). to convert an array to a string and join the elements together by a delimiter, use "implode". hence: implode(",",$tantoEmailA

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
Scott Fletcher wrote: I can do the Session Token but problem is two browser windows can have the same Session Token via "File --> New Window" or Browser Tab. I have thought about using the Database Table instead but it all go back to the original problem with 2 same browser windows that use the sa

Re: [PHP] Many forms in one php file

2005-02-15 Thread Leif Gregory
Hello NSK, Tuesday, February 15, 2005, 8:21:43 AM, you wrote: N> After the user completes and submits Form1, the script will process N> it and display a different form. etc... There's a boatload of ways to do this, but here's a real simple one to get you rolling. I'll leave it up to you to make

[PHP] Re: Image Creation

2005-02-15 Thread Aaron Todd
Hey Guys, I think I fixed my own problem. I tried calling the PHP script from a different page like this: This gave me the results I wanted. Thanks for all your help. Aaron "Aaron Todd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I just wrote a little script to play arou

[PHP] Re: Image Creation

2005-02-15 Thread James Taylor
Dude - that works fine! can you check your code - make sure you havnt got any white space at all before the php starts in ANY file, and then check that you've got ALL erros being reported (because you might have the error cant send headers, output allready sent at line x) which will prenvent th

RE: [PHP] Re: isset

2005-02-15 Thread Chris W. Parker
M. Sokolewicz on Tuesday, February 15, 2005 8:25 AM said: >> seems lengthy. is there a way around this? >> >> i tried using >> $cmd = @ $_POST['cmd']; >> >> to suppress errors but didnt seem to have ay effect. >> > still > if(isset($_POST['cmd'])) { > $cmd = $

Re: [PHP] isset

2005-02-15 Thread Richard Lynch
D_C wrote: > I often use this type of construct > > $cmd = $_POST['cmd']; > if ($cmd == null) { // do default > > but this throws a notice if the ['cmd'] index is not defined. ugly. > using > > if (isset($_POST['cmd'] ) { > $cmd = $_POST['cmd']; > } > > seems lengthy. is there a way around this?

Re: [PHP] PHP book recommendations>

2005-02-15 Thread Joe Harman
personally, I like Julie Meloni's books... PHP essentials.. and fast and easy web development... these were some of the first books that i bought and got started with... they are pretty easy to use, especially if you are not into reading technical manuals http://www.thickbook.com On Tue, 15 Feb

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Richard Lynch
Dave wrote: > The Situation: > I'm retrieving some email addresses from a database. I want to be > able assemble all the addresses into one string that I can use in the > mail() command. At no time should there ever be more than about 5 email > addresses collected from the database. I want

Re: [PHP] fopen problem using ftp

2005-02-15 Thread Richard Lynch
Giulio wrote: > HI all, > > I have a script that uses fopen to acces for read a file using ftp: > > $filepointer = fopen($address,'r'); > > having $address string formed this way: > > $address = > "ftp:/ > /".$FTPuser.":".$FTPpassword."@".$FTPserver."/".$FileFolder"."/".$FileNa > me; You really do

RE: [PHP] Many forms in one php file

2005-02-15 Thread Jay Blanchard
[snip] I want to create a single php file which will be able to display multiple html forms. Like this: Form1 -> Form2 -> Form3. After the user completes and submits Form1, the script will process it and display a different form. etc... I am new to php, I would need some detailed instructions,

[PHP] PHP Array question

2005-02-15 Thread R. Van Tassel
I have an array with image names like: $arrayone = array("1.jpg", "2.jpg"); $arraytwo = array("a.jpg", "b.jpg"); Then I have a variable for each to count the number of elements: $arrayoneElements = count($arrayone); $arraytwoElements = count($arraytwo); I'm using the element

Re: [PHP] Re: mediator between PHP and Perl (with sessions)

2005-02-15 Thread Richard Lynch
Eli wrote: > It's quite easy to pass the session variables to the script. The problem > with sessions and shell PHP scripts, is that PHP doesn't support > sessions on that mode (CLI mode it is called). So, I would have to > manualy read the session file and parse it. If anyone knows what is the > e

RE: [PHP] Re: mediator between PHP and Perl (with sessions)

2005-02-15 Thread Warren Vail
Eli, Sessions work just fine with CLI (Command Line Interpreter), although there is little need for them as a CLI script, since once started the script does not wait on user clicks of a browser for it's next set of input, therefore no need to use sessions for passing information. Most CLI scri

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Richard Lynch
Shaun wrote: > Thanks for the reply, I know how to delete a file I just wanted to know if > its possible to ensure that its deleted automatically as soon as the user > has downloaded it. Yes. You don't even put the file into your web tree DocumentRoot directory, and you write a PHP script that al

Re: [PHP] Set a timeout on file_get_contents?

2005-02-15 Thread Torsten Rosenberger
Am Di, den 15.02.2005 schrieb Brian Dunning um 16:48: > Is there any way to specify a timeout on a file_get_contents()? I'm > trying to verify a URL but I don't want to spend more than a few > seconds on it. http://de.php.net/manual/de/function.fsockopen.php not so easy a file_get_contents but

[PHP] Re: mediator between PHP and Perl (with sessions)

2005-02-15 Thread Eli
Hi.. Thanks for your help. I searched a bit more, combined with your data, tested, and found a solution. :-) #!/usr/local/bin/php -q //initialize session: ini_set("session.use_cookies","0"); //use no session cookies session_cache_limiter(null); //use no session cache limiter session_id($sid);

[PHP] Re: mediator between PHP and Perl (with sessions)

2005-02-15 Thread Eli
Eli wrote: Hi.. Thanks for your help. I searched a bit more, combined with your data, tested, and found a solution. :-) Oops.. forgot the most important line.. #!/usr/local/bin/php -q //initialize session: ini_set("session.use_cookies","0"); //use no session cookies session_cache_limiter(null);

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Richard Lynch
Matt M. wrote: >> I have a database that contains encrypted data using Mysql function >> ENCODE(). Certain users will be allowed to view this data and I will >> allow >> them to download a CSV file contain the decrypted data using the Mysql >> DECODE() function. However I don't want this file to be

Re: [PHP] Image Creation

2005-02-15 Thread Richard Lynch
Aaron Todd wrote: > I just wrote a little script to play around with the GD library but I am > having a problem displaying it in the browser. I have not problem at all > when I just run the script. But I was trying to make the image in a > custom > function which will return the image when its ca

Re: [PHP] Running PHP from inside another application!

2005-02-15 Thread Richard Lynch
Mikael Andersson wrote: > I've a case where I have to run a lots of php-scrips, in a short time, > from > inside a delphi-application. Every script connects to the same databas. > Today I use CreateProcess to start php.exe and then I'm using pipes to get > the php-result. I'm doing this for each ph

Re: [PHP] php products licensing system

2005-02-15 Thread Richard Lynch
Jad Madi wrote: > I hardly convince my company to have their PHP products open source, > now the challenge is to protect their products from being stolen and > used illegally so we may Encode only one or two files to keep the use > of our products on Certain domain or IP address. Any idea how to >

Re: [PHP] Many forms in one php file

2005-02-15 Thread Richard Lynch
NSK wrote: > I want to create a single php file which will be able to display multiple > html > forms. > > Like this: Form1 -> Form2 -> Form3. > > After the user completes and submits Form1, the script will process it and > display a different form. etc... > > I am new to php, I would need some det

Re: [PHP] PHP 5 with Apache 2.0

2005-02-15 Thread Richard Lynch
Neal Schilling wrote: > I know this question probably gets asked a lot, but I'm setting up a Web > Server shortly and am debating going with PHP 5 on Apache 2.0 or 1.3. In > short, is PHP 5, when combined with either Apache 1.3 or 2.0 on Linux or > FreeBSD, ready for a production environment? This

Re: [PHP] Removing non-numbers

2005-02-15 Thread Richard Lynch
Ben Miller wrote: > OK - easy one here, I know. Having troubles removing anything that is not > a > number from user input. According to manual, [!] is supposed to mean set > of > non-matching optional characters. Tried ! means that, but only in a completely different context from what you are

Re: [PHP] PHP Array question

2005-02-15 Thread Matt M.
> What I want to do is to only show 20 pictures at a time with a "Next" link > and a "Previous" link. For the first 20 only the "Next" link would show and > whenever the last set would show only the "Previous" link would. Every other > time both would show. > > Can someone point me in the right di

Re: [PHP] User Passwords: checking for unique chars

2005-02-15 Thread Richard Lynch
Jochem Maas wrote: > Alex Gemmell wrote: >> On Mon, 14 Feb 2005 22:51:42 +0100, Jochem Maas <[EMAIL PROTECTED]> >> wrote: >> >>>Alex Gemmell wrote: #Contain at least one number if ( !preg_match ('/\\d/', $password) ) return false; >>> >>>Im pretty sure the double backslash is a

Re: [PHP] Session Vars and Performance

2005-02-15 Thread Richard Lynch
Greg Donald wrote: > On Mon, 14 Feb 2005 16:03:10 -0500, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: >> I have a multi-page form which I build up and store in session >> variables. The data saved includes all an internal list of items on >> the form (derived from a database table), all the form

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Bret Hughes
On Tue, 2005-02-15 at 14:00, Richard Lynch wrote: > Matt M. wrote: > >> I have a database that contains encrypted data using Mysql function > >> ENCODE(). Certain users will be allowed to view this data and I will > >> allow > >> them to download a CSV file contain the decrypted data using the Mysq

[PHP] issue with accents and mysql

2005-02-15 Thread mario
Hello, please help me on the following issue. please reply to [EMAIL PROTECTED] too. (I asked for help on the php-db ml, but nobody replied) I have hacked the following function: function accents($text) { global $export; $search = array ( 'à', 'è', 'ì', 'ò' , 'ù'); $replace = array ( '\

Re: [PHP] issue with accents and mysql

2005-02-15 Thread Guillermo Rauch
Try SHOW VARIABLES LIKE 'character_set%' and verify your character set is latin1. If not, see http://dev.mysql.com/doc/mysql/en/charset-database.html On Tue, 15 Feb 2005 22:04:30 +, mario <[EMAIL PROTECTED]> wrote: > Hello, > > please help me on the following issue. > please reply to [EMAIL

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Scott Fletcher
Never heard of the uniqid() before and looked it up on the php.net. It look very promising. I can do that. That leave me with 2 questions. How do I do (or how does it work) this with a token if 1) The webpage is submitted (goes from page 1 to page 2) with the uniqid(). 2) The 2nd browser windo

Re: [PHP] Handling email bouncebacks

2005-02-15 Thread Ligaya Turmelle
I am doing something similar and was told to look at the IMAP, POP3, NNTP extension. I think I have a way of doing it using that extension (still in planning stage) but I would also be very interested in any other ideas. Respectfully, Ligaya Turmelle Computer Programmer Guam International

[PHP] Intelligent Forms and Form Processing

2005-02-15 Thread dan
Hello, all - I am working on a few small projects to try and teach myself how to build intelligent forms. I have come as far as making a few simple ones that are created when their parent function is called. Something like the following: function displayMyForm($username='',$password='',$accou

Re: [PHP] Session Vars and Performance

2005-02-15 Thread Greg Donald
On Tue, 15 Feb 2005 13:01:45 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > If you have to choose between a meaningful variable name and performance > considerations, buy more hardware! :-) > > The cost you'll save in the long run for code maintenance will make it > worth it. Comments i

Re: [PHP] Re: isset

2005-02-15 Thread M. Sokolewicz
Chris W. Parker wrote: M. Sokolewicz on Tuesday, February 15, 2005 8:25 AM said: seems lengthy. is there a way around this? i tried using $cmd = @ $_POST['cmd']; to suppress errors but didnt seem to have ay effect. still if(isset($_POST['cmd'])) { $cmd = $_POST['c

Re: [PHP] issue with accents and mysql

2005-02-15 Thread mario
Hi, thanks, but that seems to be ok: SQL result Host: 127.0.0.1 Database : Generation Time: Feb 15, 2005 at 11:36 PM Generated by: phpMyAdmin 2.5.7-pl1 / MySQL 3.23.58 SQL-query: SHOW VARIABLES LIKE 'character_set%'; Rows: 2 Variable_name Value character_set lat

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Marek Kilimajer
Shaun wrote: Hi, I have a database that contains encrypted data using Mysql function ENCODE(). Certain users will be allowed to view this data and I will allow them to download a CSV file contain the decrypted data using the Mysql DECODE() function. However I don't want this file to be left on t

Re: [PHP] Intelligent Forms and Form Processing

2005-02-15 Thread Matt M.
> Any feedback will be appreciated. why reinvent the wheel? take a look at: http://pear.php.net/package/Html_quickform -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intelligent Forms and Form Processing

2005-02-15 Thread dan
Matt M. wrote: Any feedback will be appreciated. why reinvent the wheel? take a look at: http://pear.php.net/package/Html_quickform To the people who want to truly understand how the system works, the wheel, as it stands, is wothless :) I know I can use a drop-in solution, and I might consider i

Re: [PHP] Set a timeout on file_get_contents?

2005-02-15 Thread Marek Kilimajer
Brian Dunning wrote: Is there any way to specify a timeout on a file_get_contents()? I'm trying to verify a URL but I don't want to spend more than a few seconds on it. - Brian ini_set('default_socket_timeout', $seconds); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
Hi Marek, Thanks for your reply, could you tell me how I would go about this please? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Shaun wrote: >> Hi, >> >> I have a database that contains encrypted data using Mysql function >> ENCODE(). Certain users will be

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Jason Barnett
Scott Fletcher wrote: Never heard of the uniqid() before and looked it up on the php.net. It look very promising. I can do that. That leave me with 2 questions. How do I do (or how does it work) this with a token if 1) The webpage is submitted (goes from page 1 to page 2) with the uniqid(). 2)

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Marek Kilimajer
Shaun wrote: Hi Marek, Thanks for your reply, could you tell me how I would go about this please? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Shaun wrote: Hi, I have a database that contains encrypted data using Mysql function ENCODE(). Certain users will be all

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Jason Barnett
Shaun wrote: Hi Marek, Thanks for your reply, could you tell me how I would go about this please? header('Content-type: text/csv'); header('Content-Disposition: attachment; filename="download.csv"'); /** Now you perform the MySQL query, DECODE the information and echo it to the screen. Hopefully

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Richard Lynch
Shaun wrote: > Hi Marek, > > Thanks for your reply, could you tell me how I would go about this please? You can muck around with CSV if you prefer, but tab-delimited is way easier, assuming no tabs in your content. This also assumes no newlines in your content. If there are tabs and/or newline

Re: [PHP] Re: isset

2005-02-15 Thread Marek Kilimajer
M. Sokolewicz wrote: Also note that empty($non_existent_var) will always throw an E_NOTICE error when the variable in question is not set. No, it does not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intelligent Forms and Form Processing

2005-02-15 Thread Bret Hughes
On Tue, 2005-02-15 at 17:00, dan wrote: > Matt M. wrote: > >>Any feedback will be appreciated. > > > > > > > > why reinvent the wheel? > > > > take a look at: > > http://pear.php.net/package/Html_quickform > > > > To the people who want to truly understand how the system works, the > wheel,

Re: [PHP] issue with accents and mysql

2005-02-15 Thread Bret Hughes
On Tue, 2005-02-15 at 17:40, mario wrote: > Hi, > > thanks, but that seems to be ok: > SQL result > Host: 127.0.0.1 > Database : > Generation Time: Feb 15, 2005 at 11:36 PM > Generated by: phpMyAdmin 2.5.7-pl1 / MySQL 3.23.58 > SQL-query: SHOW VARIABLES LIKE 'character_set%'; > Rows: 2 > >

[PHP] function to remove all \" from a variable

2005-02-15 Thread Tim Burgan
Hello, I'm using FCKeditor to edit content on my site. But the content it produces escapes all the " (double quote) characters from my HTML, and replaces it with \" (backslash-double quote). Is the a function that I can use to change it back? Does str_replace() do it.. if so is this how I use it

Re: [PHP] function to remove all \" from a variable

2005-02-15 Thread Lars B. Jensen
The manual to the rescue http://jp2.php.net/stripslashes -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com - Original Message - From: "Tim Burgan" <[EMAIL PROTECTED]> To: "[php] PHP G

Re: [PHP] function to remove all \" from a variable

2005-02-15 Thread Tim Burgan
Sorry for clogging up you mail box. Yes.. str_replace('\"', '"', $_POST['FCKeditor1']) works. I must've needed to think through my thoughts by typing it out. Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mediator between PHP and Perl (with sessions)

2005-02-15 Thread YaronKh
Hi What you can do is change the php.ini file In the [session] section like this: session.use_cookies = 0 session.use_only_cookies = 0 session.auto_start = 0 and now make sure that all script are running under the same session id at the beginning of each php script you should add the following

Re: [PHP] Re: isset

2005-02-15 Thread Bret Hughes
On Tue, 2005-02-15 at 16:22, M. Sokolewicz wrote: > > Chris. > that's a different issue. > There are always at least 2 things you should do with your (expected) input: > 1 - check if it *exists* (isset) > 2 - check the validity (input-validation) > > for step #2 empty is very commonly used, and a

Re: [PHP] fopen problem using ftp

2005-02-15 Thread The Disguised Jedi
Why not use the built in FTP functions instead of fopen? us2.php.net/ftp Those should be able to handle any of the address problems you have, seeing as they don't use the ftp://username:[EMAIL PROTECTED] syntax, they open a connection and work with the FTP system. -- The Disguised Jedi [EMAIL

Re: [PHP] Session Vars and Performance

2005-02-15 Thread trlists
On 15 Feb 2005 Richard Lynch wrote: > Throw an ab (Apache Benchmark) test at it and find out. > > Don't just guess or sit there wondering. > > You could run test in about the time it took to compose this email -- Perhaps if you are already familiar with ab, which I'm not ... and if the server

Re: [PHP] Session Vars and Performance

2005-02-15 Thread trlists
On 15 Feb 2005 Greg Donald wrote: > > If you have to choose between a meaningful variable name and performance > > considerations, buy more hardware! :-) > > > > The cost you'll save in the long run for code maintenance will make it > > worth it. > > Comments in the code make using short session

[PHP] other mhash hashes

2005-02-15 Thread David Norman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I thought some other people would be interested in the other hashes that you can do with mhash that aren't on the php.net docs after the recent news that SHA-1 might be weaker than previously thought: http://www.schneier.com/blog/archives/2005/02/sha1_b

  1   2   >