[PHP] Re: Image resize on upload

2004-02-25 Thread Will
I forgot to mention what I was trying to do. There is a web page that pulls the image file name from the database then reads the URL to the directory where the image is. Is it possible to just resize it when the web page is brought up in the browser? Like I said I am not sure which one to use.

[PHP] Image resize on upload

2004-02-25 Thread Will
Hello all, I looked at the PHP manual and found a lot of things to do with images but I did not seem to find out how to resize an image on upload. Can anyone help?? Thanks in advance, ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question about CGI binary

2004-02-25 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://www.php.net/set_time_limit [snip] > Warning > > set_time_limit() has NO EFFECT when PHP is running in safe mode. There > is NO workaround other than turning off safe mode or changing the time > limit in the php.ini. [/snip] most servers do that

[PHP] Re: Apache/IE hangs with PHP

2004-02-25 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i think ie suck hehe a friend had a similar problem, it was ie's fault Vincent Bouret wrote: Hi, I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1 with PHP 4.3.4 as a module: httpd.conf LoadModule php4_module c:/php/sapi/php4ap

Re: [PHP] apostrophe ( ' ) on a form, adding \; How can i fix this?

2004-02-25 Thread Louie Miranda
Ok thanks, will check the manual also. Right now its working!~ -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: date functions

2004-02-25 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > You might already be fed up with my posts but I'm a complete PHP newbie and find > these groups are the best way to learn! Anyway I have the database date in the > format: -mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when i

Re: [PHP] apostrophe ( ' ) on a form, adding \; How can i fix this?

2004-02-25 Thread Ryan A
Hey Your magic_quotes_gpc is onswitch it off and your problem will go away, or read up on it. You might also want to use a function which will make quotes and apostrophes etc safe...check the manual as there are a few. Cheers, -Ryan On 2/26/2004 6:19:02 AM, Louie Miranda ([EMAIL PROTECTED])

Re: [PHP] apostrophe ( ' ) on a form, adding \; How can i fix this?

2004-02-25 Thread Adam Bregenzer
On Thu, 2004-02-26 at 00:19, Louie Miranda wrote: > I have a user/form that client enters data. And one of my clients have an > apostrophe on his name > > eg: Ero's > > Now, this page has a confirmation page that the client would see first > before his form will be directed into my system. Now it

Re: [PHP] Re: session timeout?

2004-02-25 Thread Jake McHenry
yes, please do Thanks, Jake - Original Message - From: "Phillip Jackson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 24, 2004 2:37 PM Subject: [PHP] Re: session timeout? > i accomplish this with javascript and the current logout script that i had > written - Ja

[PHP] apostrophe ( ' ) on a form, adding \; How can i fix this?

2004-02-25 Thread Louie Miranda
I have a user/form that client enters data. And one of my clients have an apostrophe on his name eg: Ero's Now, this page has a confirmation page that the client would see first before his form will be directed into my system. Now its shows "Ero\'s" how come this is happening? I dont have any fil

Re: [PHP] pg_query

2004-02-25 Thread Michal Migurski
>I have a small question about sending PostgreSQL commands/statements. I >noticed that there's a function pg_insert that can insert rows, but I >have also seen codes that use pg_query(pg_exec, actually) to do the same >job(in phpBB). Since 'query' is defined to 'retrieve' data, is it more >preferre

[PHP] pg_query

2004-02-25 Thread Moo
Hi There, I have a small question about sending PostgreSQL commands/statements. I noticed that there's a function pg_insert that can insert rows, but I have also seen codes that use pg_query(pg_exec, actually) to do the same job(in phpBB). Since 'query' is defined to 'retrieve' data, is it more pre

[PHP] Question about CGI binary

2004-02-25 Thread Chris
I've run into situation where my PHP script, (which loads records into a database) gets timed out after 30 seconds, terminating the script execution. I understand that PHP, on my hosting system, is installed as a CGI binary. I've even included set_time_limit which seems to have no effect. Is is pos

[PHP] Apache/IE hangs with PHP

2004-02-25 Thread Vincent Bouret
Hi, I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1 with PHP 4.3.4 as a module: httpd.conf LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml //After a list of modules AddModule mod_php4.c Let's

[PHP] Re: Access DNS record

2004-02-25 Thread Justin Patrin
Jeff Schwartz wrote: Does anyone know how to access a DNS record? Can it be done with fopen? Jeff - Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. I would suggest PEAR's Net_DNS. http://pear.php.net/package/Net_DNS -- paperCrane -- PHP Gener

[PHP] Access DNS record

2004-02-25 Thread Jeff Schwartz
Does anyone know how to access a DNS record? Can it be done with fopen? Jeff - Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want.

Re: [PHP] Re: looks like the spammers got through anyway

2004-02-25 Thread Luke
OOOh ooh i got one from him too! :) lets do it ;) -- Luke <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 2/25/2004 4:03:05 AM, Will ([EMAIL PROTECTED]) wrote: > I know the feeling!!! I wish they would go away!!! > > ~WILL~ /* You can wish all you wantthose SOBs are here

Re: [PHP] Sequential Random Character Generator

2004-02-25 Thread Aidan Lister
Here's a function I made for random string generation: http://www.ircphp.com/users/imho/?file=function.randstr.php randstr(len, seeds); so, echo randstr(10, "abc123"); would result in a 10 letter string made up of a,b,c,1,2,3 Hoep this helps. "Miles Thompson" <[EMAIL PROTECTED]> wrote in mess

[PHP] Re: HELP with "headers already being sent error?

2004-02-25 Thread Justin Patrin
David Jackson wrote: Howdy -- header already send error. Cannot modify header information - headers already sent by (output started at /u242/rumc1636/warehouse/scrapbook/config.php:8) in /u242/rumc1636/warehouse/scrapbook/login.php on line 47 and 48. Here's lines 42 is if($action == "login") Cou

[PHP] HELP with "headers already being sent error?

2004-02-25 Thread DAvid Jackson
Howdy -- header already send error. Cannot modify header information - headers already sent by (output started at /u242/rumc1636/warehouse/scrapbook/config.php:8) in /u242/rumc1636/warehouse/scrapbook/login.php on line 47 and 48. Here's lines 42 is if($action == "login") Could it be related to th

[PHP] Re: Request domain name

2004-02-25 Thread Kim Steinhaug
Try this one : $_SERVER["HTTP_HOST"] It will do the trick for you, it will give you the root domain in the URI of your browser. -- -- Kim Steinhaug -- There are 10 types of people when it comes to binary numbers: those who unde

RE: [PHP] function.date.php

2004-02-25 Thread Jay Blanchard
[snip] what newsreader are you ppl using? is anyone else getting anoyed with posts out of chain? :p [/snip] Yes...and top posting and failure to snip.all annoying -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function.date.php

2004-02-25 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 the other 3 answers were more appropriate what newsreader are you ppl using? is anyone else getting anoyed with posts out of chain? :p Sam Masiello wrote: Actually, your use of substr is incorrect. The third parameter is how many characters you want

[PHP] Re: pleas help me with frameset and php, party solved

2004-02-25 Thread joe-at
Thanks for help, only my lokal testserver has a problem with my skripts. It seems that I have not actually tested it on the webserver bevore posting. joe "Joe-At" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > hi pleas help me, > when I try to use php in a frame of a frameset

[PHP] Re: frameset und php-script in frame one part solved!

2004-02-25 Thread joe-at
Thanks for help, only my testserver has a problem with my skripts. It seems that I have not actually tested it on the server. joe "Joe-At" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Sorry I wanted to say, that the original frame was long inough. > > But I tried it again,

RE: [PHP] function.date.php

2004-02-25 Thread Sam Masiello
Actually, your use of substr is incorrect. The third parameter is how many characters you want to go from your offset, not the ending character. Also, your last variable shouldn't be year...it should be day (or whatever you want to name it...anything but year or month :) ), otherwise you will ov

Re: [PHP] function.date.php

2004-02-25 Thread Adam Bregenzer
On Wed, 2004-02-25 at 15:58, John Taylor-Johnston wrote: > I want to feed in 2003-02-28 and extract February 28, 2003. I can substr it out ... Use strtotime[1] then date[2]. [1] http://www.php.net/strtotime [2] http://www.php.net/date -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.ne

Re: [PHP] function.date.php

2004-02-25 Thread Jochem Maas
John Taylor-Johnston wrote: Is there a way to reverse engineer http://www.php.net/manual/en/function.date.php ? I want to feed in 2003-02-28 and extract February 28, 2003. I can substr it out ... $eventid = "2003-02-28"; $year = substr($eventid, 0,4); $month = substr($eventid, 5,7); $year = sub

[PHP] Re: function.date.php

2004-02-25 Thread Kirk Winters
John Taylor-Johnston wrote: Is there a way to reverse engineer http://www.php.net/manual/en/function.date.php ? I want to feed in 2003-02-28 and extract February 28, 2003. I can substr it out ... $eventid = "2003-02-28"; $year = substr($eventid, 0,4); $month = substr($eventid, 5,7); $year = sub

[PHP] function.date.php

2004-02-25 Thread John Taylor-Johnston
Is there a way to reverse engineer http://www.php.net/manual/en/function.date.php ? I want to feed in 2003-02-28 and extract February 28, 2003. I can substr it out ... $eventid = "2003-02-28"; $year = substr($eventid, 0,4); $month = substr($eventid, 5,7); $year = substr($eventid, 8,10); But the

[PHP] Re: pleas help me with frameset and php

2004-02-25 Thread joe-at
Pleas change the line 5 in my frameset file. The original line makes a too short top frame. But this does not solve my problem. "Joe-At" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > hi pleas help me, > when I try to use php in a frame of a frameset it dos not work. wha

Re: [PHP] To Separate, or Not to Separate

2004-02-25 Thread Monty
Thanks to everyone that responded to my question, it was very helpful! I've decided to keep all the fields together rather than split them into two tables. I understand normalization and I've avoided redundancies in my DB. After a user logs in, what I do is load all preferences into session vars s

Re: [PHP] frameset und php-script in frame

2004-02-25 Thread joe-at
Sorry I wanted to say, that the original frame was long inough. But I tried it again, and it does not work! joe "Sam Masiello" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Yes, they are wide enough...i was speaking of long enough. In other words, be sure the top frame

[PHP] DOM appendChild question

2004-02-25 Thread Dan Phiffer
I'm getting an error from the following code, but the error message hasn't given me many leads: $doc = new DomDocument(); $doc->loadXML(''); $hello = new DomDocument(); $hello->loadXML('Hello world!'); $xp = new DomXPath($doc); $body = $xp->query('/html/body')->item(0); $body->appendChild($hello-

Re: [PHP] [php] if $sql has returned something

2004-02-25 Thread John Taylor-Johnston
Very helpful & much appreciated. Richard Davey wrote: > Hello John, > > Wednesday, February 25, 2004, 6:26:41 PM, you wrote: > > JTJ> Richard, > JTJ> Thanks. Should I still include the die ? > > JTJ> $glquery = mysql_query($sql) or die("Invalid query: " . mysql_error()); > > It's up to you, I nev

RE: [PHP] frameset und php-script in frame

2004-02-25 Thread Sam Masiello
Yes, they are wide enough...i was speaking of long enough. In other words, be sure the top frame doesn't scroll. The code as you posted it works fine, but on my display it barely fits in the top frame. On a lower resolution you might not see the text in the top frame. Have you tried making you

[PHP] making 1 pdf file from 2

2004-02-25 Thread Steve Buehler
I hope someone here can help me because for some reason I can't receive any mail from the pdflib mailing list. I have PDFlib + PDI 5 using php to create my pages. This is the first time that I have had to do this and just can't figure it out. I have two files: ChurchCalendarFrontPage.pdf Chur

[PHP] Re: looks like the spammers got through anyway

2004-02-25 Thread Jeff Schwartz
I use this Yahoo account primarily for the PHP list. I use GoodbyeSpam.com as a filter and no spam whatsoever gets through. You mentioned that the safeguards aren't working. How are you trying to block spam? Jeff - Do you Yahoo!? Yahoo! Mail SpamGuard - Read on

Re[2]: [PHP] [php] if $sql has returned something

2004-02-25 Thread Richard Davey
Hello John, Wednesday, February 25, 2004, 6:26:41 PM, you wrote: JTJ> Richard, JTJ> Thanks. Should I still include the die ? JTJ> $glquery = mysql_query($sql) or die("Invalid query: " . mysql_error()); It's up to you, I never do. It won't give you a very clean exit if an error occurs. -- Best

[PHP] pleas help me with frameset and php

2004-02-25 Thread joe-at
hi pleas help me, when I try to use php in a frame of a frameset it dos not work. what is wrong with my files? I tried it on my test server and on a real web server with the same result. fameset.html: frameset test.php: test Jetzt sollt ein PHP-Skript erscheinen: result o

Re: [PHP] frameset und php-script in frame

2004-02-25 Thread joe-at
Thanks for the hint, but the frames are wide enough. I also tried it on my test server and on a real web server with the same result. "Sam Masiello" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] I am afraid that I don't get the same problem that you do. If I request frameset.

Re: [PHP] [php] if $sql has returned something

2004-02-25 Thread John Taylor-Johnston
Richard, Thanks. Should I still include the die ? $myconnection = mysql_connect($server,$user,$pass); mysql_select_db($db,$myconnection); $eventid = $link_date; $sql = 'SELECT * FROM '.$table.' where eventid like \''.$eventid.'\';'; $glquery = mysql_query($sql) or die("Invalid query: " . mysql_e

RE: [PHP] Sequential Random Character Generator

2004-02-25 Thread Adam Bregenzer
On Wed, 2004-02-25 at 12:56, [EMAIL PROTECTED] wrote: > The first column being a key, which the printer requested, the second > being the random tag, and the third being what prize package they get, > or don't get. Verifying you have unique records as well as generating the prize information are p

Re: [PHP] [php] if $sql has returned something

2004-02-25 Thread John Taylor-Johnston
Bao, I have only one entry where eventid = 2004-02-28. if (!$glquery) does not result in anything either. Jason, Where in the manual would I look? I looked at http://www.php.net/manual/en/function.mysql-query.php but don't find anything inspiring. It does not die, so I can't check if it is fal

Re: [PHP] looks like the spammers got through anyway

2004-02-25 Thread Shoan Motwani
* jimbo ([EMAIL PROTECTED]) wrote: > I've just received a 419 scam email to the email address I setup for posting > to this forum. Looks like the safeguards have failed :-( > All I can say is get spam assassin. Peace, Shoan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Re: PHP5: Directory & DirectoryIterator

2004-02-25 Thread Ben Ramsey
When I was looking for information regarding get_declared_classes(), I came across these links in the manual. I hope they help. http://us4.php.net/manual/en/reserved.classes.php http://us4.php.net/manual/en/class.dir.php Still, I don't think the manual has any documentation yet on directoryIter

RE: [PHP] Sequential Random Character Generator

2004-02-25 Thread list
First I know that sequential and random cannot co-exist. Let me explain what I'm attempting to use this for. I'm printing tags that will be used in the same way you win Pepsi stuff online. You will get a randomly generated code on the tag to check to see if you won at a website. The data needs

Re: [PHP] [php] if $sql has returned something

2004-02-25 Thread Jason Wong
On Thursday 26 February 2004 01:53, John Taylor-Johnston wrote: > Here is my code. $sql works correctly, but am not sure I did this line > correct: Your query ($sql) is incorrect and will not work. See manual for why. > $glquery = mysql_query($sql); > > because "if ($glquery)" always returns som

Re[2]: [PHP] [php] if $sql has returned something

2004-02-25 Thread Richard Davey
Hello John, Wednesday, February 25, 2004, 5:53:13 PM, you wrote: JTJ> Here is my code. $sql works correctly, but am not sure I did this line correct: JTJ> $glquery = mysql_query($sql); JTJ> because "if ($glquery)" always returns something. I want to know if it returns NULL. mysql_query will ret

Re: [PHP] [php] if $sql has returned something

2004-02-25 Thread BAO RuiXian
John Taylor-Johnston wrote: Bao or anyone, Here is my code. $sql works correctly, but am not sure I did this line correct: $glquery = mysql_query($sql); because "if ($glquery)" always returns something. I want to know if it returns NULL. Gee, I was goofed up by your last $sql:) Now you can

[PHP] Re: PHP5: Directory & DirectoryIterator

2004-02-25 Thread Ben Ramsey
That's some pretty helpful information there. I didn't know about that. Thanks! -Ben Vivian Steller wrote: Ben Ramsey wrote: using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice methods like: Where did you see these classes? Is it a PEAR package? I haven't seen these

[PHP] Re: PHP5: Directory & DirectoryIterator

2004-02-25 Thread Vivian Steller
Ben Ramsey wrote: >> using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice >> methods like: >> > > Where did you see these classes? Is it a PEAR package? I haven't seen > these in the PHP manual. > You can find them using the following function: function printDeclaredCla

Re: [PHP] [php] if $sql has returned something

2004-02-25 Thread John Taylor-Johnston
Bao or anyone, Here is my code. $sql works correctly, but am not sure I did this line correct: $glquery = mysql_query($sql); because "if ($glquery)" always returns something. I want to know if it returns NULL. Thanks for your time, John ---snip- $myconnection = mysql_c

[PHP] Re: PHP5: Directory & DirectoryIterator

2004-02-25 Thread Ben Ramsey
using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice methods like: Where did you see these classes? Is it a PEAR package? I haven't seen these in the PHP manual. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General

Re: [PHP] [php] if $sql has returned something

2004-02-25 Thread Jason Wong
On Thursday 26 February 2004 01:31, John Taylor-Johnston wrote: > I'm trying to figure out something. I found some calendar making code. For > each table cell, I want to add $day around $day if an entry > exists in $db.$table > > $sql = 'SELECT * FROM '.$db.'.'.$table.' where eventid like '.$eventi

Re: [PHP] [php] if $sql has returned something

2004-02-25 Thread BAO RuiXian
John Taylor-Johnston wrote: I'm trying to figure out something. I found some calendar making code. For each table cell, I want to add $day around $day if an entry exists in $db.$table $sql = 'SELECT * FROM '.$db.'.'.$table.' where eventid like '.$eventid.';'; if ($sql ??) This will do:

[PHP] PHP5: Directory & DirectoryIterator

2004-02-25 Thread Vivian Steller
Hello, using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice methods like: __construct rewind hasMore key current next getPath getFilename getPathname getPerms getInode ... but i don't kno

[PHP] [php] if $sql has returned something

2004-02-25 Thread John Taylor-Johnston
I'm trying to figure out something. I found some calendar making code. For each table cell, I want to add $day around $day if an entry exists in $db.$table $sql = 'SELECT * FROM '.$db.'.'.$table.' where eventid like '.$eventid.';'; if ($sql ??) {echo "$day"; }else{ echo "$day"; } How do I code

RE: [PHP] Sequential Random Character Generator

2004-02-25 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 25, 2004 8:26 AM said: > I'm trying to create a PHP sequential random character generator that > will output to a file database of some sort. and just to be a hair splitter, you can't be both sequential AND random at the same

[PHP] Re: htacess

2004-02-25 Thread John Taylor-Johnston
Manuel, Do you have a command line access to the server? http://httpd.apache.org/docs/programs/htpasswd.html htpasswd -b /var/www/html/db/tools/htpasswd.users jdaxell ** (batch mode) htpasswd -c /var/www/html/db/tools/htpasswd.users jdaxell (creation mode) htpasswd /var/www/html

Re: [PHP] Sequential Random Character Generator

2004-02-25 Thread Miles Thompson
At 11:25 AM 2/25/2004 -0500, [EMAIL PROTECTED] wrote: I'm trying to create a PHP sequential random character generator that will output to a file database of some sort. The randomization needs to be using both capital letters and numbers. I need to output like 2 million records. Can someone poin

Re: [PHP] Sequential Random Character Generator

2004-02-25 Thread Adam Bregenzer
On Wed, 2004-02-25 at 11:25, [EMAIL PROTECTED] wrote: > I'm trying to create a PHP sequential random character generator that will output to > a file database of some sort. The randomization needs to be using both capital > letters and numbers. I need to output like 2 million records. Can someone

[PHP] Sequential Random Character Generator

2004-02-25 Thread list
I'm trying to create a PHP sequential random character generator that will output to a file database of some sort. The randomization needs to be using both capital letters and numbers. I need to output like 2 million records. Can someone point me in the right direction on how to do this? I'm al

[PHP] Re: Finding position of New line in string

2004-02-25 Thread Kirk Winters
Ben Edwards wrote: I am trying to find the position of the first occurrence on new line in a string that comes from a database. I tried $pos = strpos( $list_text, "/n" ); But it never returns anything. Any help would be much appreciated. Ben try $pos = strpos( $list_text, "\n" ) the escape c

[PHP] Finding position of New line in string

2004-02-25 Thread Ben Edwards (lists)
I am trying to find the position of the first occurrence on new line in a string that comes from a database. I tried $pos = strpos( $list_text, "/n" ); But it never returns anything. Any help would be much appreciated. Ben -- Ben EdwardsTel +44 (0)1179 553 551 ICQ 42000477 Home

RE: [PHP] Re: PEAR file??

2004-02-25 Thread Edward Peloke
I downloaded gallery and it does have the init file which does seem to work...of course now there are other errors but at least there is progress! -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 10:50 AM To: [EMAIL PROTECTED]; Greg Beaver Su

[PHP] Re: PEAR file??

2004-02-25 Thread Greg Beaver
Hi Ben, This is true for some packages, but most would simply not work, as any PEAR file that uses another PEAR file would require you to update your include_path so that ".." would simply fail. For instance, look at Log.php. the factory method tries to include Log/drivername.php. DB's mysql

RE: [PHP] Re: PEAR file??

2004-02-25 Thread Edward Peloke
Thanks for all the info... Yeah, my guess was that it might be part of gallery somehow. I will download it and take a look. Thanks, Eddie -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 10:45 AM To: [EMAIL PROTECTED]; Edward Peloke Subjec

[PHP] Re: PEAR file??

2004-02-25 Thread Ben Ramsey
It's not a PEAR file. PEAR files are never included using ".." This is not true. I can download a PEAR package and use it as a standalone in my application without specifying a PEAR folder in the include_path in php.ini. I can also use it without using ini_set() to change the include_path. I

[PHP] Re: PEAR file??

2004-02-25 Thread Ben Ramsey
I'd check with your friend to see if he remembers what PHP software he installed. It's an "init.php" file in the "gallery" subfolder? If he doesn't recognize the file as being one he created in the past, then perhaps he installed the gallery software from http://gallery.sf.net at one time? I

[PHP] Re: htacess

2004-02-25 Thread Will
Thanks Manuel!! I will look into that. ~WILL~ Manuel Lemos wrote: Hello, On 02/24/2004 06:50 PM, Will wrote: I tried to search PHP net for this but found nothing. I am doing an install script and I want to write a htaccess file to the server so people can login in to there admin section. Wha

Re: [PHP] Disabling the back button

2004-02-25 Thread Richard Davey
Hello Shaun, Wednesday, February 25, 2004, 3:25:41 PM, you wrote: S> Is it possible to disable the back button by showing a screen that says 'the S> page has expired' if it is ever pressed using my site? You might call that "disabling the back button" but I'd call it "annoying the hell out of th

[PHP] Disabling the back button

2004-02-25 Thread Shaun
Hi, Is it possible to disable the back button by showing a screen that says 'the page has expired' if it is ever pressed using my site? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR file??

2004-02-25 Thread Greg Beaver
Hi Edward, It's not a PEAR file. PEAR files are never included using ".." regards, Greg -- phpDocumentor http://www.phpdoc.org Edward Peloke wrote: Hello, I have a friend who has moved his website to a new host and I am helping him clean up some of the code. In one of his pages, he gets this e

[PHP] Re: calendar class

2004-02-25 Thread Greg Beaver
http://pear.php.net/Calendar Regards, Greg -- phpDocumentor http://www.phpdoc.org John Taylor-Johnston wrote: Anyone recommend a good calendar class at phpclasses.org or elsewhere? Something I can install with ease and teach someone else to use and update using, oh say phpmyadmin? Thanks, John --

[PHP] Crypt code

2004-02-25 Thread carlos castillo
I want to know if you know a tool to crypt the code, all, i mean a file php, so when i open it i only see some characters without order, like zend, but free or where can i get zend or a similar tool. thanks. Carlos A. Castillo. Ingeniero de desarrollo [EMAIL PROTECTED] __

RE: [PHP] Request domain name

2004-02-25 Thread James Nunnerley
$_SERVER["HTTP_HOST"] will get you the full domain name... Nunners -Original Message- From: Age Bosma [mailto:[EMAIL PROTECTED] Sent: 25 February 2004 14:13 To: [EMAIL PROTECTED] Subject: [PHP] Request domain name I would like to be able to request the domain name. How can this be achie

[PHP] Request domain name

2004-02-25 Thread Age Bosma
I would like to be able to request the domain name. How can this be achieved without hardcoding it? $_SERVER['REQUEST_URI'] doesn't provide me the domain name, it just provides me "/index.php?page=2000" instead of e.g. "www.blaat.com/index.php?page=2000" I can't seem to find anything on the php s

Re: [PHP] PEAR file??

2004-02-25 Thread Richard Davey
Hello Edward, Wednesday, February 25, 2004, 1:47:28 PM, you wrote: EP> Hello, I have a friend who has moved his website to a new host and I am EP> helping him clean up some of the code. In one of his pages, he gets this EP> error. He of course, doesn't have the gallery/init.php file in his EP>

[PHP] PEAR file??

2004-02-25 Thread Edward Peloke
Hello, I have a friend who has moved his website to a new host and I am helping him clean up some of the code. In one of his pages, he gets this error. He of course, doesn't have the gallery/init.php file in his directory and it is not on the server. Does anyone recognize this as a pear file tha

Re[2]: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Richard Davey
Hello Chase, Wednesday, February 25, 2004, 12:47:58 PM, you wrote: C> ..You had my solution, but I don't know if it was entirely what you said... C> As it turns out, it makes a difference that my $message variable was C> enclosed only in single quotes, not double quotes... who knew? Yup it does

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Chase
Problem solved, thanks Richard... ..You had my solution, but I don't know if it was entirely what you said... As it turns out, it makes a difference that my $message variable was enclosed only in single quotes, not double quotes... who knew? "Chase" <[EMAIL PROTECTED]> wrote in message news:[EMA

Re[2]: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Richard Davey
Hello Chase, Wednesday, February 25, 2004, 12:41:27 PM, you wrote: C> That didn't seem to work Richard... Now this is what my resulting email C> looks like... C> Submit Date: $submit_date Notice that I swapped the $message = ' for $message = " (look at the quote marks). You're probably still u

Re: [PHP] Emails

2004-02-25 Thread Jason Wong
On Wednesday 25 February 2004 20:10, Richard Davey wrote: > J> How would you be able to read the bounces & undelievrable mail > J> when you send out a mail with PHP. > J> I'm trying to write a eCampaign client for our business, this > J> would be a is a nice feature to have to keep > J> our mail l

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Chase
That didn't seem to work Richard... Now this is what my resulting email looks like... Submit Date: $submit_date IP Address: $ip_address Dealer Number: $dealer_number Employee Name: $tester_name Module / Screen Name: $module_name Report: $report "Richard Davey" <[EMAIL PROTECTED]> wrote in me

Re: [PHP] regexp appears to be faulty!?

2004-02-25 Thread Henry Grech-Cini
Absolutely brilliant, also I'm using the /s modifier to process newlines as well. Great Thanks to everybody for their help. "Jome" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Henry Grech-Cini" <[EMAIL PROTECTED]> skrev i meddelandet > news:[EMAIL PROTECTED] > > Thanks for th

[PHP] PHP Certification: We need your comments

2004-02-25 Thread David Costa
To: Php General mailing List Pear General mailing List Dear All, Some time ago, our site (Dotgeek.org) started a PHP certification (full details at http://www.dotgeek.org/about.php?type=certify ). The programme has, in my humble opinion, some good points. A free certification managed with so

Re: [PHP] Re: session expired -> how to know if the session is newor old

2004-02-25 Thread Urb LeJeune
At 05:45 AM 2/25/04, Seba wrote: It means that the session_start function has not changed (has restored the old value) the session id value. Set your browser to do not accept cookies, and it will work. That's not an option, people other than myself have to log in and I have no control over

[PHP] [semi OT] problem with php, cacti and rrdtool

2004-02-25 Thread Andrea Riela
Hi folks, sorry if that problem is probably OT, but I don't know where is my mistake, I hope in my php config. System: openBSD 3.3 php: 4.3.4-dev cacti: 0.8.5 (http://www.raxnet.net/products/cacti/) rrdtool: 1.0.40 well, I've configurated all, php with gd, cacti, rrdtool, etc. my phpinfo(): http:

Re: [PHP] Emails

2004-02-25 Thread Richard Davey
Hello Jakes, Wednesday, February 25, 2004, 12:05:09 PM, you wrote: J> How would you be able to read the bounces & undelievrable mail J> when you send out a mail with PHP. J> I'm trying to write a eCampaign client for our business, this J> would be a is a nice feature to have to keep J> our mail

[PHP] Emails

2004-02-25 Thread Jakes
How would you be able to read the bounces & undelievrable mail when you send out a mail with PHP. I'm trying to write a eCampaign client for our business, this would be a is a nice feature to have to keep our mail list clean. Thanx in advance. J

[PHP] Re: session expired -> how to know if the session is newor old

2004-02-25 Thread Seba
It means that the session_start function has not changed (has restored the old value) the session id value. Set your browser to do not accept cookies, and it will work. Remember that the value of the session id can be passed by GET POST and Cookies to. Seba -- PHP General Mailing List (http://w

[PHP] e-Newsletter module

2004-02-25 Thread Tariq Murtaza
Dear All, I am sorry its a litle bit out of scope for PHP development etc. I need to know which is the best softwre for eNewsletter publication (cron based) built in PHP/Mysql either opensource or proprietry on Linux OS. Someone suggested me 1-2-All (http://www.activecampaign.com/12all/feature

Re: [PHP] Passing Variables Into mail()????

2004-02-25 Thread Richard Davey
Hello Chase, Wednesday, February 25, 2004, 5:26:14 AM, you wrote: C> None of the variables that are displayed on the result page or C> injected into the database are showing in the email that I receive C> from the form. C> $message = ' C> C> C> The following information was added to the v5 tra

RE: [PHP] Re: looks like the spammers got through anyway

2004-02-25 Thread cay
On 2/25/2004 4:03:05 AM, Will ([EMAIL PROTECTED]) wrote: > I know the feeling!!! I wish they would go away!!! > > ~WILL~ /* You can wish all you wantthose SOBs are here to stay. Hopefully they will meet with an accident and get a slow p a i n f u l death. -Ryan */ Is this an email from MAJO

Re: [PHP] How to obtain the txt content of an HTML formated document?

2004-02-25 Thread Richard Davey
Hello filicicsub, Wednesday, February 25, 2004, 8:56:36 AM, you wrote: f> I just wanted to know if there is any easy meant to recover the textual f> contents of an HTML file. I know It should be easy because PHP have an f> effective way to handle string discrimination/manipulation... but I'm f

Re: [PHP] Re: Accessing SMB (Samba perhaps) resources

2004-02-25 Thread Howard Miller
No I didn't say that I *wouldn't* run external commands. However I want the operation to be transparent and non-confusing to the user, so they don't get get with error messages from the Unix mount command or something. I just expected a lot of grief/drama doing it that way. I'll give the class a g

[PHP] Re: Accessing SMB (Samba perhaps) resources

2004-02-25 Thread Howard Miller
Aha! This looks really cool! Why can I never find this sort of stuff :-) Thanks very much. Howard Manuel Lemos wrote: > Hello, > > On 02/24/2004 08:11 AM, Howard Miller wrote: >> I want to be able to manipulate files that are on my samba file server >> from my PHP application. These shares a

[PHP] How to obtain the txt content of an HTML formated document?

2004-02-25 Thread filicicsub
Hello, I just wanted to know if there is any easy meant to recover the textual contents of an HTML file. I know It should be easy because PHP have an effective way to handle string discrimination/manipulation... but I'm quite lazy, and I just wanted to know if there is an already made im