RE: [PHP] Configuring the Session Function in php.ini for WinNT...

2002-07-05 Thread Lazor, Ed
Any temp directory set aside for this purpose. You can create one c:\temp or c:\temp\sessions -Original Message- From: Kondwani Spike Mkandawire [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Configuring the Session Function

[PHP] Re: Will mail() function work for SMTP servers which needs Authentication

2002-07-02 Thread Manuel Lemos
Hello, On 07/03/2002 12:57 AM, Balaji Ankem wrote: Hi friend, Will mail()function work for SMTP servers which needs authentication? If so how can pass the username and password to my SMTP server. No, you need to communicate directly with the SMTP server to authenticate. mail() has no

Re: [PHP] Remote cgi script function

2002-06-24 Thread Haddad Said
Thanks John, See when i echo $contents, the page displayed contains backgrounds and other text from the remote site, how can i crop only the returned query and display it in a page with my backgrounds etc thanks John Holmes [EMAIL PROTECTED] wrote in message

Re: [PHP] Remote cgi script function

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 16:47, Haddad Said wrote: See when i echo $contents, the page displayed contains backgrounds and other text from the remote site, how can i crop only the returned query and display it in a page with my backgrounds etc Short answer: with great difficulty. Longer answer:

Re: [PHP] is there a function like javascript's window.open in PHP

2002-06-24 Thread Tracker 1
ular way. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 23, 2002 12:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] is there a function like javascript's window.open in PHP On Sunday 23 June 2002 07:21, Burak Delice wrote: hi,

[PHP] Remote cgi script function

2002-06-23 Thread Haddad Said
Hi, I am new to php, I would like to create a function that when called sends text from a text box as a query to a remote cgi script ,e.g http://www.anydomain.com/cgi-bin/script.cgi, and return the results as a variable so that i can echo the returned variable to an html page. I would

RE: [PHP] is there a function like javascript's window.open in PHP

2002-06-23 Thread Mark Charette
: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 23, 2002 12:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] is there a function like javascript's window.open in PHP On Sunday 23 June 2002 07:21, Burak Delice wrote: hi, I wonder that is there a PHP function like window.open

RE: [PHP] Remote cgi script function

2002-06-23 Thread John Holmes
I am new to php, I would like to create a function that when called sends text from a text box as a query to a remote cgi script ,e.g http://www.anydomain.com/cgi-bin/script.cgi, and return the results as a variable so that i can echo the returned variable to an html page. ? $contents = ;

Re: [PHP] is there a function like javascript's window.open in PHP

2002-06-23 Thread Burak Delice
-- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 23, 2002 12:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] is there a function like javascript's window.open in PHP On Sunday 23 June 2002 07:21, Burak Delice wrote: hi, I wonder that is there a PHP function like win

[PHP] is there a function like javascript's window.open in PHP

2002-06-22 Thread Burak Delice
hi, I wonder that is there a PHP function like window.open() into Javascript? thankyouverymuch. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is there a function like javascript's window.open in PHP

2002-06-22 Thread Jason Wong
On Sunday 23 June 2002 07:21, Burak Delice wrote: hi, I wonder that is there a PHP function like window.open() into Javascript? No. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

[PHP] Stumped on a function

2002-06-21 Thread Jason Soza
I've been using the following function successfully for months, tonight I literally copied/pasted it to another page I was creating, called it exactly the same using the same data type, and I'm getting an incorrect result. The function is supposed to take a standard MySQL CCYY-MM-DD date format

RE: [PHP] Stumped on a function

2002-06-21 Thread David Freeman
function cleandate($indate) { str_replace(-, /, $indate); return date(F j, Y, strtotime($indate)); } I suspect that you actually need something like this: function cleandate($indate) { $indate = str_replace(-, /, $indate); return date(F j, Y, strtotime($indate)); }

RE: [PHP] Stumped on a function

2002-06-21 Thread John Holmes
Why don't you just use DATE_FORMAT() in your query, then you don't have to do any extra PHP code at all?? ---John Holmes... -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 3:50 AM To: PHP-General Mailing List Subject: [PHP] Stumped

Re: [PHP] Stumped on a function

2002-06-21 Thread Jesper Brunholm
John Holmes wrote: Why don't you just use DATE_FORMAT() in your query, then you don't have to do any extra PHP code at all?? you might want a link to that: http://www.mysql.com/doc/D/a/Date_and_time_functions.html - look somewhat below the middle of the page function cleandate($indate) {

Re: [PHP] Stumped on a function

2002-06-21 Thread Jason Soza
- From: Jesper Brunholm [EMAIL PROTECTED] Date: Friday, June 21, 2002 2:02 am Subject: Re: [PHP] Stumped on a function John Holmes wrote: Why don't you just use DATE_FORMAT() in your query, then you don't have to do any extra PHP code at all?? you might want a link to that: target=lhttp

Re: [PHP] Help with header function

2002-06-11 Thread Shane Kelly
LOL...thanks ed...figured it out last night... don't need to do a file_exists since i capture file_name in my db...I do a query before the insert to see if the file_name entered in the form, matches any of the file_names stored in mySQL. if the count of the record set 0 then the file exists,

[PHP] Help with header function

2002-06-10 Thread Shane Kelly
I'm creating an upload form for users to upload files to my server. but I don't want them to overwrite existing files if they try to upload using the same file name... THE FOLLOWING SCRIPT WORKS PERFECTLY if (file_exists(uploads/documents/.$file_name)==TRUE) { die (File already exists);

Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
10, 2002 1:03 PM Subject: [PHP] Help with header function I'm creating an upload form for users to upload files to my server. but I don't want them to overwrite existing files if they try to upload using the same file name... THE FOLLOWING SCRIPT WORKS PERFECTLY if (file_exists(uploads

Re: [PHP] Help with header function

2002-06-10 Thread Stuart Dallas
On Monday, June 10, 2002 at 8:03:40 PM, you wrote: header(Location:http://www.mysite.com/file_exists.php;); You should have a space after Location:... header(Location: http://www.mysite.com/file_exists.php;); If that's not it, please post the error/what happens. We are not mind readers. --

Re: [PHP] Help with header function

2002-06-10 Thread Shane Kelly
I don't get an error message...but the page doesn't automatically forward to the redirected url. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
The only thing I can think of is that you have a syntax error in the header. -Kevin - Original Message - From: Shane Kelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 1:43 PM Subject: Re: [PHP] Help with header function I don't get an error message

RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed
I'm pretty sure it was the lack of a space in the header field between Location: and the actual url. -Original Message- The only thing I can think of is that you have a syntax error in the header. -Kevin

Re: [PHP] Help with header function

2002-06-10 Thread Kevin Stone
Stone' [EMAIL PROTECTED]; PHP-general [EMAIL PROTECTED] Sent: Monday, June 10, 2002 2:00 PM Subject: RE: [PHP] Help with header function I'm pretty sure it was the lack of a space in the header field between Location: and the actual url. -Original Message- The only thing I can think

RE: [PHP] Help with header function

2002-06-10 Thread Lazor, Ed
LOL Yea, it's always much easier if we have actual code to work from rather than taking guesses in the dark. -Original Message- Why do I get the feeling I'm playing that mind bender game where you have to guess the right combination within so many turns? LOL

[PHP] Question about Mail function time out

2002-06-07 Thread Al
Sorry if this shows twice. I originally posted it with Mozilla and forgot that this newsgroup server seems to ignore postings from it. This one is posted from IE. I've got a mail function script that occasionally terminates midway while sending out about 600 emails. The symptoms point to the

Re: [PHP] Question about Mail function time out

2002-06-07 Thread Chris Hewitt
Al, Interesting. I use Mozilla and I've never had any emails rejected or heard of anyone else have it happening. Have you some more information or is this an urban legend? Regards Chris Al wrote: Sorry if this shows twice. I originally posted it with Mozilla and forgot that this newsgroup

Re: [PHP] Question about Mail function time out

2002-06-07 Thread Al
Opps, hit the reply rather than the reply group. I normally use Moz. I'm subscribed to 8 newsgroup servers. All work perfect except news.php. I replied to you message with Moz; but it doesn't show. This one is with IE Chris Hewitt [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] preg_match_all href|src function

2002-06-02 Thread Michael Elms
Hi All, I have being working on PHP perl compaitable regular expressions for the last month and cannot work out how to program a preg_match_all that will get the file.html from the following examples: a href=file.html a href='file.html' a href=file.html frame src=file.html frame

[PHP] Re: Run php function with user click

2002-05-31 Thread Michael Davey
Not really, seeing as PHP is executed at the server and not on the client - you would need JavaScript for this. Mikey Dave Shacket [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I know how to have my php code run a function within itself. But is ther

[PHP] Is there a function getSize() of ming or libswf?

2002-05-27 Thread Augusto Cesar Castoldi
Hi... Is there a function getSize() of ming or libswf? I want to send Flash imagens to server to put them into HTML, but I need the width and height of the image, and I don`t want to ask this for the user!! thanks, Augusto

[PHP] Re: Time/date function MYSQL-UNIX

2002-05-24 Thread Hugh Bothwell
Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a built in PHP function which will convert a MySQL type date (DDMM or whatever) into a unix timestamp so it can be used with the other PHP time and date functions? I'm currently usin

[PHP] Re: Time/date function MYSQL-UNIX

2002-05-24 Thread Peter
OK cheers. I'll have a try. I saw UNIX_TIMESTAMP() in the MySQL docs but I didn't quite understand it (PHP is MUCH easier for me!) Thanks for the example too Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a built in PHP functi

Re: [PHP] bug in SLEEP() function...

2002-05-20 Thread Rasmus Lerdorf
This is well-documented. Right out of the set_time_limit() docs: Note: The set_time_limit() function and the configuration directive max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as

[PHP] bug in SLEEP() function...

2002-05-18 Thread Jason Caldwell
Dunno if this has been mentioned or fixed in the latest release (I'm using PHP version 4.1.1) -- but, a script will not timeout until the sleep() function has finished it's duration -- for example: In my script, if I set set_time_limit(30) -- then later in the script I call a sleep(45) -- the

[PHP] Confused about which function to use with forms/database

2002-05-17 Thread Don
Hi, I have forms that retrieve date from mysql databases and send (for storage) data to same databases. I note many functions to make sure that the data is correct in appearance when it comes to special characters. addslashes() stripslashes() htmlspecialchars() htmlentities()

Re: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread Analysis Solutions
Don: I have forms that retrieve date from mysql databases and send (for storage) data to same databases. I note many functions to make sure that the data is correct in appearance when it comes to special characters. addslashes() stripslashes() htmlspecialchars() htmlentities()

Re: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread Miguel Cruz
On Fri, 17 May 2002, Don wrote: I have forms that retrieve date from mysql databases and send (for storage) data to same databases. I note many functions to make sure that the data is correct in appearance when it comes to special characters. addslashes() stripslashes()

RE: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread David Freeman
I've read the documentation but am still confused about what to use when. When passing data from forms to database, which do I use? When retrieving data from database to display in forms, which do I use? Kinda depends on what you're using the data for really. If you don't care

RE: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread Miguel Cruz
On Sat, 18 May 2002, David Freeman wrote: As a general rule, though, you'll need to 'escape' anything that your database won't like - this is typically the ' and chars. Addslashes() will do that for you. Anything else you want to do depends on what you need the data for. When you suck

RE: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread David Freeman
When you suck the data back out you'll obviously need to stripslashes() to get rid of the 'escape' chars you added above. Nope, because the escape characters don't actually get added to the database. When the database's command interpreter sees it, it removes the escape

Re: [PHP] Re: getting a function name of the calling function

2002-05-03 Thread Joshua E Minnie
functions which call the base functions. But I want to know who (which function) called the base function. -josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: getting a function name of the calling function

2002-05-02 Thread Joshua E Minnie
What I am trying to do is create an error message within in a string that whenever each function fails it echos this particular string out with it's pertinent information. i.e. ? $error_string = Warning: unable to complete query in .__FUNCTION__.name in .__FILE__; function some_funct($var) {

[PHP] passing PhP parameter to JavaScript function

2002-05-02 Thread ZILBER,LEONID (HP-NewJersey,ex1)
Hi guys, From PhP, I want to call JavaScript and pass argument to it For some reason when I do the following: onClick=\return lastCheck($maxa);\ and printout maxa in JavaScript, it says maxa is undefined maxa is defined in PhP form section. User enters value into a form which name is

RE: [PHP] passing PhP parameter to JavaScript function

2002-05-02 Thread SHEETS,JASON (Non-HP-Boise,ex1)
-NewJersey,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 10:14 AM To: '[EMAIL PROTECTED]' Subject: [PHP] passing PhP parameter to JavaScript function Hi guys, From PhP, I want to call JavaScript and pass argument to it For some reason when I do the following: onClick=\return lastCheck

[PHP] Re: getting a function name of the calling function

2002-05-02 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joshua E Minnie) wrote: What I am trying to do is create an error message within in a string that whenever each function fails it echos this particular string out with it's pertinent information. i.e. ? $error_string = Warning: unable to

[PHP] Re: getting a function name of the calling function

2002-05-02 Thread Joshua E Minnie
Cc Zona [EMAIL PROTECTED] wrote: [snip] A step up would be to use the error handling functions instead http://php.net/errorfunc. Then you can customize which errors get reported to the user, under what circumstances, how, whether to forward the reports to you as well, plus the opportunity to

Re: [PHP] Re: getting a function name of the calling function

2002-05-02 Thread Miguel Cruz
On Wed, 1 May 2002, CC Zona wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joshua E Minnie) wrote: Does anybody know of any constants or predefined functions that will retrieve the calling functions name? For example: ? function new_func($somedata) { echo I am

Re: [PHP] Re: getting a function name of the calling function

2002-05-02 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Miguel Cruz) wrote: I'm guessing he wants to do something like a stack trace to figure out how a function managed to get itself called with bad data. With utility functions that may get called hundreds of times in a single run, that would

[PHP] Re: getting a function name of the calling function

2002-05-01 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Joshua E Minnie) wrote: Does anybody know of any constants or predefined functions that will retrieve the calling functions name? For example: ? function new_func($somedata) { echo I am function .get_func_name(); } ? What would be

Re: [PHP] Re: getting a function name of the calling function

2002-05-01 Thread Philip Olson
Does anybody know of any constants or predefined functions that will retrieve the calling functions name? For example: ? function new_func($somedata) { echo I am function . __FUNCTION__; echo I am function .get_func_name(); } ? __FUNCTION__ will exist (exists) in PHP

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-26 Thread Jim
Your problem doesn't have anything to do with PHP. The error says that libgd doesn't offer freetype support, so you need to get a more current version of gd. Regards, Jim Heffner No idea, check your config.log and see why it is failing. On Thu, 25 Apr 2002, zhaoxd wrote: Whatever I

[PHP] Why is imageTTFtext function useless?

2002-04-24 Thread zhaoxd
hello,all: I have already installed gd-1.8.4 in php-4.1.2 with some libraries,such as libpng -1.2.0,freetype-1.3,zlib-1.1.4,freetype2,in my apache server which version is 1.3.24,and phpinfo() display php can support such soft,as follow: GD Support---enabled GD

Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread Jason Wong
On Thursday 25 April 2002 10:08, zhaoxd wrote: ? //define the type of inputting picture; Heder(content-type:image/png); Is this a typo? Should be Header(...). //create picture $pic=imagecreate(240,30); //define color $black=imagecolorallocate($pic,0,0,0);

Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread Rasmus Lerdorf
It works fine. Spell Header() right, or remove the header altogether so you can see the error message. I predict you will see a message telling you it couldn't open the font file. -Rasmus On Thu, 25 Apr 2002, zhaoxd wrote: hello,all: I have already installed gd-1.8.4 in php-4.1.2 with

Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread zhaoxd
? //define the type of inputting picture; Heder(content-type:image/png); Is this a typo? Should be Header(...). Sorry, I did a wrong copy.But when I cut this line,it output a warning words: libgd was not built with FreeType font support in /usr/local/apache/htdocs/test.php

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-24 Thread zhaoxd
Whatever I tried ,it is also useless,why? This time I compile it with freetype-1.3.1.when I used the test code , it also said libgd was not built with FreeType font support in /usr/local/apache/htdocs/test.php on line 14. Would you mind tell me how you do this? I just wanna support

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-24 Thread Rasmus Lerdorf
No idea, check your config.log and see why it is failing. On Thu, 25 Apr 2002, zhaoxd wrote: Whatever I tried ,it is also useless,why? This time I compile it with freetype-1.3.1.when I used the test code , it also said libgd was not built with FreeType font support in

[PHP] From where was function called?

2002-04-22 Thread Nico van der Dussen
Hi, I'm having a real problem: In a codeset of more than 5000 lines of code, I have a rogue call to a function. Is there a way I can determine in a function from where the call was made? (Filename, linenumber etc) Thanks Nico -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] From where was function called?

2002-04-22 Thread Martin Towell
um - (unix) grep (windows) find files That's something that I've been wanting for a while - a function call stack that the php script can look at. -Original Message- From: Nico van der Dussen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 3:04 AM To: [EMAIL PROTECTED] Subject

[PHP] Conditions within a function

2002-04-16 Thread Scott St. John
I have been trying to organize my code better by using functions, especially where I am repeating logic. The problem seems to be when I run a condition within the function, an if statement to check for results of a variable. As is the code seems to be bypasses, but if I put a die; in the

Re: [PHP] Conditions within a function

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 08:58 AM, Scott St. John wrote: I have been trying to organize my code better by using functions, First of all, try organizing your code using whitespace. Here is an example of the code, formatted to be a bit easier to read: function chkFirstTime($userID) {

Re: [PHP] Conditions within a function

2002-04-16 Thread Scott St. John
On Tue, 16 Apr 2002, Erik Price wrote: First of all, try organizing your code using whitespace. Here is an example of the code, formatted to be a bit easier to read: Thank you, that was Pine doing some nice formatting tricks of it's own. Now, my first question, is why do you have $userID

Re: [PHP] Conditions within a function

2002-04-16 Thread Erik Price
On Tuesday, April 16, 2002, at 11:32 AM, Scott St. John wrote: What I am also discovering is I have to use die; to halt execution for certain things. An example, I check to see if a user is still active in the system, if they are not I use a header to redirect them to a page that tells

[PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Hermann Bier
Hi!! i`ve wrote a little script to run under shell, so this script: #!/usr/bin/php $saslpasswd = /usr/sbin/saslpasswd -p $username; $saslproc = popen($saslpasswd,w); fputs($saslproc, $passwd); pclose($saslproc); php-parser gives me the following as output: # sh: /saslpasswd: No such file or

[PHP] popen(); problem, the function don`t finds the command...

2002-04-09 Thread Hermann
Hi!! i`ve wrote a little script to run under shell, so this script: #!/usr/bin/php $saslpasswd = /usr/sbin/saslpasswd -p $username; $saslproc = popen($saslpasswd,w); fputs($saslproc, $passwd); pclose($saslproc); php-parser gives me the following as output: # sh: /saslpasswd: No such file or

[PHP] Re: Help with Function parameter

2002-04-04 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Simonk) wrote: I have programed a function for counting Date: function Datereturn() { snip Return $realday; Return $month; Return $year; } But when I want to echo out the result, I have typed: Datereturn(); echo

[PHP] From Newman: Redirect function not working.

2002-03-29 Thread Philip J. Newman
I have just updated my copy of PHP and changed the INI file. Some of my redirect commands no longer work. Any Suggestions. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

[PHP] Calling a javascript function?

2002-03-21 Thread David Johansen
Is there any way to call a javascript function from inside a php script? Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Calling a javascript function?

2002-03-21 Thread Kevin Stone
We recently went into lengthy discussion about this. No there is no a way to call a Javascript function from PHP. But you CAN send a Javascript the input it needs to decide which function to use. You can either have the PHP script generate the Javascript dynamically. Or if you need to run

Re: [PHP] Anybody have a function to encode a string?

2002-03-20 Thread maxwello
I need a function that encodes stuff, with a key. It, of course, needs to be decodable too. Does anbody know/have a function like this? What is everyone's thoughts on RC4Crypt? http://sourceforge.net/projects/rc4crypt/ http://www.paphe.com/php/tutorials/230101.php -- PHP General

Re: [PHP] Anybody have a function to encode a string?

2002-03-20 Thread maxwello
I need a function that encodes stuff, with a key. It, of course, needs to be decodable too. Does anbody know/have a function like this? http://www.php.net/manual/en/ref.mcrypt.php How about situations when mcrypt is not available? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Anybody have a function to encode a string?

2002-03-20 Thread maxwello
I need a function that encodes stuff, with a key. It, of course, needs to be decodable too. Does anbody know/have a function like this? What is everyone's thoughts on RC4Crypt? http://sourceforge.net/projects/rc4crypt/ http://www.paphe.com/php/tutorials/230101.php -- PHP General

RE: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Drew Lopucki
string. Hope I've been helpful, Drew Lopucki Mrdrew.com [EMAIL PROTECTED] -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 2:19 AM To: [EMAIL PROTECTED] Subject: [PHP] Anybody have a function to encode a string? I need a function that encodes

Re: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Alexander Skwar
»Drew Lopucki« sagte am 2002-03-19 um 10:25:02 -0500 : Lots of people will tell you to use PGP. However since PGP is not *free*, in that you cannot use it for commercial purposes without a license, I avoid it. Also it has to be downloaded and installed as most systems do not Well, use

RE: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Drew Lopucki
.) OpenSSL, on the other hand, is available on virtuall all systems since it is required for https servers. -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 2:52 PM To: Drew Lopucki Cc: Leif K-Brooks; [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Alexander Skwar
»Drew Lopucki« sagte am 2002-03-19 um 16:19:50 -0500 : This is a fairly condescending reply given that the license statement for PGP is present on every download screen from which it is available. Careful I stand corrected. Because of the IDEA patent by ASCOM, you're only allowed to use it

Re[2]: [PHP] Anybody have a function to encode a string?

2002-03-19 Thread Steve Clay
Tuesday, March 19, 2002, 2:51:33 PM, Alexander wrote: AS Well, use GnuPG. Then you can use PGP. And what you stated above is Just some advice if you go with GPG and you don't have root/chown access. Since you'll create your keyring under your user, you'll likely have to run PHP as a CGI so

[PHP] Anybody have a function to encode a string?

2002-03-18 Thread Leif K-Brooks
I need a function that encodes stuff, with a key. It, of course, needs to be decodable too. Does anbody know/have a function like this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anybody have a function to encode a string?

2002-03-18 Thread mnc
On Tue, 19 Mar 2002, Leif K-Brooks wrote: I need a function that encodes stuff, with a key. It, of course, needs to be decodable too. Does anbody know/have a function like this? http://www.php.net/manual/en/ref.mcrypt.php miguel -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Anybody have a function to encode a string?

2002-03-18 Thread Leif K-Brooks
on 3/19/02 2:28 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: On Tue, 19 Mar 2002, Leif K-Brooks wrote: I need a function that encodes stuff, with a key. It, of course, needs to be decodable too. Does anbody know/have a function like this? http://www.php.net/manual/en/ref.mcrypt.php

[PHP] Re: PHP MAIL function...why wont it work????

2002-02-27 Thread jtjohnston
Your smtp is valid? Try error checking for that? See you php.ini. If you are running it on localhost you might try the same smtp that is used in your emailer. I gaffed on that once. :) Brad Wright wrote: Hi all... I have a line in a page that should send me an email when the page is loaded.

[PHP] change request for function highlight_string

2002-02-20 Thread Rein Velt
At this moment (php4.1.1) the function highlight_string has the following syntax: [quote] bool highlight_string ( string str) This function prints out a syntax highlighted version of str using the colors defined in the built-in syntax highlighter for PHP. Returns TRUE or FALSE. [/quote] The

Re: [PHP] change request for function highlight_string

2002-02-20 Thread Lars Torben Wilson
in the docs, you can do this yourself: ?php error_reporting(E_ALL); function my_highlight_string($string) { ob_start(); highlight_string($string); $retval = ob_get_contents(); ob_end_clean(); return $retval; } $str = my_highlight_string('?php error_reporting(E_ALL); function

Re: [PHP] Troubles With Mail Function

2002-02-14 Thread Dr. Shim
D]] Sent: Thursday, February 14, 2002 11:33 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Troubles With Mail Function Alright, I will show you my entire mail code here. BTW: I cannot mail using mail() function [mail function] ; For Win32 only. SMTP = mindspring.com ; For Win32 only. sendmail_from

RE: [PHP] Troubles With Mail Function

2002-02-14 Thread Rick Emery
Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Troubles With Mail Function Well I tried what Gary suggested. I did smtp.mindspring.com and it worked beutifully. I feel stupid that the problem was so simple

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Well, I did this: [mail function] SMTP=mindspring.com sendmail_form=[EMAIL PROTECTED] ...rest I left unchanged... Still doesn't work. :( BTW I'm using Windows at the moment to develop. That SMTP value looks a

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread Dr. Shim
Actually, I don't really know what to put in it. I thought that's what it wanted. What does it want? David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Well, I did this: [mail function] SMTP

RE: [PHP] Troubles With Mail Function

2002-02-13 Thread Rick Emery
show us more code. I believe SMTP would require the mail server Can you mail via the mail() function? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:44 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Troubles With Mail Function Actually

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Actually, I don't really know what to put in it. I thought that's what it wanted. What does it want? David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread Dr. Shim
Alright, I will show you my entire mail code here. BTW: I cannot mail using mail() function [mail function] ; For Win32 only. SMTP = mindspring.com ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i'). ;sendmail_path

RE: [PHP] Troubles With Mail Function

2002-02-13 Thread Martin Towell
I think the SMTP would be same as you use for your email client (outlook, eudora, other?) -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 11:33 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Troubles With Mail Function Alright, I will show

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread Gary
smtp.minspring.com is the address for out going mail. Gary Dr. Shim wrote: Alright, I will show you my entire mail code here. BTW: I cannot mail using mail() function [mail function] ; For Win32 only. SMTP = mindspring.com ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; For

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Alright, I will show you my entire mail code here. BTW: I cannot mail using mail() function [mail function] ; For Win32 only. SMTP = mindspring.com ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may

Re: [PHP] Troubles With Mail Function

2002-02-13 Thread Dr. Shim
Well I tried what Gary suggested. I did smtp.mindspring.com and it worked beutifully. I feel stupid that the problem was so simple. But, alas, I'm learing. Thanks all you. Robley, that is some very informative information, this digging. dig -t mx alienmelon.com in console right? David Robley

[PHP] Troubles With Mail Function

2002-02-12 Thread Dr. Shim
Hello. I'm pretty new to PHP, so if this is a dumb question, or has been answered already, I'd like to get a link to that answer, or an alternative on how I can solve the problem. :) Anyhow, I have a very simple one line script. ? mail([EMAIL PROTECTED], ::Urgent Message::, $body); ? A

RE: [PHP] Troubles With Mail Function

2002-02-12 Thread Martin Towell
Have you set up the [mail function] section of your php.ini file ? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Troubles With Mail Function Hello. I'm pretty new to PHP, so

Re: [PHP] Troubles With Mail Function

2002-02-12 Thread Dr. Shim
No I haven't. How do I do that Martin Towell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Have you set up the [mail function] section of your php.ini file ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Troubles With Mail Function

2002-02-12 Thread Martin Towell
') if your problem is caused by anything else, then I can't help you there, maybe someone??? HTH (hope this helps) Martin -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Troubles With Mail

Re: [PHP] Troubles With Mail Function

2002-02-12 Thread Dr. Shim
Well, I did this: [mail function] SMTP=mindspring.com sendmail_form=[EMAIL PROTECTED] ...rest I left unchanged... Still doesn't work. :( BTW I'm using Windows at the moment to develop. -Original Message- Martin Towell [EMAIL PROTECTED] wrote in message [EMAIL

<    2   3   4   5   6   7   8   9   >