[PHP] Session expiration detection and handling

2001-08-20 Thread Ryan Mahoney
I am interested in detecting when the session expires and displaying a "your session has expired..." page. If anyone can recommend how to do this or recommend a tutorial it would be greatly appreciated! Thanks! -r --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

RE: [PHP] Re: PHP based authentification -----------

2001-08-20 Thread Jon Farmer
>Thus, the way to "logout" is to maintain a dynamic unique dataset of >"Realms" and require authentication in a new Realm for any user that is >"logged out Yes, Richard recently advised me simialry. I set a cookie on a successful login and then delete it on a logout. If the cookie is not present

[PHP] hope someone can help !

2001-08-20 Thread Keith
Clean Suse Linux install ! Get the following from phpinfo.php PHP Version 4.0.4pl1 './configure' '--prefix=/usr' '--bindir=/usr/bin' '--libdir=/usr/lib' '--with-config-file-path=/etc' '--with-exec-dir=%{libdir}/php/bin' '--with-pgsql=/usr' '--with-mysql=/usr' '--with-gd=yes' '--with-tiff-dir

[PHP] Countries and ip addresses

2001-08-20 Thread Mihailo Dzigurski
Hello, How can I find out from witch country user is based on user ip address? I need this from php script. Thanks, Mihailo. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (h

Re: [PHP] Countries and ip addresses

2001-08-20 Thread speedboy
> How can I find out from witch country user is based on user ip address? I > need this from php script. You can't. You can try with their hostname. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] hope someone can help !

2001-08-20 Thread speedboy
> so why when I try ImageTTFText do I get call to unknown function php must > be compiled with ttf ?? Try this first: http://database.sourceforge.net/Installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html Possibly also try configuring without somany options initially. -- PHP General M

[PHP] time in php

2001-08-20 Thread nafiseh saberi
hi. how I compare two times with php? 12:23:50 - 13:12:00 = ??? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Countries and ip addresses

2001-08-20 Thread Tom Carter
It's not possible to be assured of doing this properly for the following reason.. 1. not all hosts translate to IP address 2. Soem host names are often meaningless (eg .com) The way to do it is basically this 1. use gethostbyaddr() (http://www.php.net/gethostbyaddr) to do a reverse DNS from IP t

[PHP] re:insertion question

2001-08-20 Thread nafiseh saberi
hi. you can find the field that any relationship with other and place them in one table. for example if the name and work have relate with eachother ,build table with that 2 fields. this problem solve with build 1nf,2nf,3nf,... (normalization for tables). I am software engineering,work on php,

Re: [PHP] time in php

2001-08-20 Thread speedboy
> hi. > how I compare two times with php? > 12:23:50 - 13:12:00 = ??? Convert them to timestamps (unix timestamps) and subtract the two. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

[PHP] Re: GD & ISAPI don't work

2001-08-20 Thread MindHunter
I had the same prob on Win98 and Win2K. On Win98 I reverted to Apache and on Win2K I am using CGI, besides that I don't know of much that you can do. Why not stick to CGI? BK "Juraj Hasko" <[EMAIL PROTECTED]> wrote in message 000e01c12940$b9490260$ec01db0a@HASKO">news:000e01c12940$b9490260$ec01

[PHP] mail from

2001-08-20 Thread PHP
Hello all. Does anyone know how i can set up the "from " and "Return Address" fields in the mail functions in php? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administ

Re: [PHP] mail from

2001-08-20 Thread speedboy
> Hello all. Does anyone know how i can set up the "from " and "Return > Address" fields in the mail functions in php? mail("[EMAIL PROTECTED]", "subject.", "body.", "From: php@$SERVER_NAME\n"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: [PHP] mail from

2001-08-20 Thread Jan De Luyck
You can set them using the header field in the mail function. Checkout http://www.php.net/mail Jan De Luyck > -Original Message- > From: PHP [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 11:26 AM > To: [EMAIL PROTECTED] > Subject: [PHP] mail from > > > Hello all. Does any

[PHP] 2D-3D Imagem (GD Library)

2001-08-20 Thread Augusto Cesar Castoldi
HI. I'd like to know if I can create 2D images with the image function of GD Library. Regards. Augusto ___ Yahoo! GeoCities Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities.

[PHP] php executable

2001-08-20 Thread Nick Davies
Is it possible to surpress the X-Powered-By: PHP/4.0.6 Content-type: text/html text when running php from the commandline? Thanks. Nick. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] php executable

2001-08-20 Thread Jason Brooke
php -q try php -h for other options - if that fails, there's always the manual - http://www.php.net/manual - Original Message - From: "Nick Davies" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 20, 2001 8:06 PM Subject: [PHP] php executable > > Is it possible to sur

Re: [PHP] Function to Build Trees

2001-08-20 Thread Chris Hayes
> Onderwerp:[PHP] Function to Build Trees A most interesting question! > Given a multidimensional array with words as keys, I want to match > the values of each array with the keys of the array and build a new > array that reflects these relationships as a sort of tree. So, in

RE: [PHP] mail from

2001-08-20 Thread Tony G. Bolaño
Use the header field in the mail function: $header ="From: <[EMAIL PROTECTED]>\n>"; $header .="X-Sender: <[EMAIL PROTECTED]>\n"; $header .="X-Mailer: PHP\n"; $header .="Reply-To: <[EMAIL PROTECTED]>\n"; $header .="Return-Path: <[EMAIL PROTECTED]>\n"; ... mail($recipient, $subject,

[PHP] php query for mysql table

2001-08-20 Thread Wolfgang Schneider
Hi I am a newbie to php + mysql and wanted to ask for some help on a particular item which I can't seem to find "the right key" in the documentation. I am trying to set up a simple Q&A system with an entry page where one can select to either have all questions & answers from a mysql database dis

Re: [PHP] php query for mysql table

2001-08-20 Thread Gianluca Baldo
You should use the "like" clause whch allows the use of wild cards % and ?. Have a look at the MySQL manual, it should be explained there. HTH Gianluca WS> I am a newbie to php + mysql and wanted to ask for some help on a WS> particular item which I can't seem to find "the right key" in

RE: [PHP] php query for mysql table

2001-08-20 Thread Niklas Lampén
% works as a wildcard in mySQL. Example: "SELECT * FROM table WHERE Question LIKE '%life%'" would return all rows with field Question containing string "life". Niklas -Original Message- From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]] Sent: 20. elokuuta 2001 13:22 To: php-general

RE: [PHP] php query for mysql table

2001-08-20 Thread Jon Haworth
You can use the SQL keyword "LIKE" for this. Have a look at the MySQL docs for full info, but the idea is you'd do something like: $query = "SELECT * FROM table WHERE question LIKE '%". $search_phrase. "%'"; HTH Jon -Original Message- From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]

RE: [PHP] php query for mysql table

2001-08-20 Thread Wolfgang Schneider
On Mon, 20 Aug 2001 13:35:39 +0300, Niklas Lampén wrote: >% works as a wildcard in mySQL. > >Example: > >"SELECT * FROM table WHERE Question LIKE '%life%'" would return all rows >with field Question containing string "life". Hello all helpers, well ... thanks to those who have already replied a

Re[2]: [PHP] php query for mysql table

2001-08-20 Thread Morten Winkler Jørgensen
Notice that if a user enters "life anger" in the search field SELECT * FROM table WHERE question LIKE "%life anger%" none of the questions >> [1] How do you deal with anger? >> [2] Ever been full of anger in your life? >> [3] Is life always easy? will match. For that you must split the query

RE: Re[2]: [PHP] php query for mysql table

2001-08-20 Thread Niklas Lampén
This can be solved by building a function to split users entry to pieces so that the query will be like "SELECT * FROM table WHERE Question LIKE '%word1%' || Question LIKE '%word2%' || Question." if only one of the words have to match the Question field. Niklas Lampén -Original Message-

[PHP] Date Functions

2001-08-20 Thread Peter Allum
I am using PHP 4, I have a date which I am adding to a MYSQL db, I have that bit sorted, I am trying to calculate an 2 expiry dates, one that is 1 year and 11 months ahead of the 1st date and another that is 2 years ahead of the 1st date. Any Ideas, I have seen lots of scripts for adding days but

Re: [PHP] php query for mysql table

2001-08-20 Thread php mailing list
select * from yourtable where question like '%life%' -- Original Message -- From: "Wolfgang Schneider" <[EMAIL PROTECTED]> Reply-To: "Wolfgang Schneider" <[EMAIL PROTECTED]> Date: Mon, 20 Aug 2001 12:22:15 +0200 >Hi > >I am a newbie to php + mysql and want

Re: [PHP] Date Functions

2001-08-20 Thread Renze Munnik
On Mon, Aug 20, 2001 at 12:12:15PM +0100, Peter Allum wrote: > I am using PHP 4, I have a date which I am adding to a MYSQL db, I have that > bit sorted, I am trying to calculate an 2 expiry dates, one that is 1 year > and 11 months ahead of the 1st date and another that is 2 years ahead of the >

Re: [PHP] php executable

2001-08-20 Thread Chris Lambert
/usr/bin/php -q ...I believe. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Nick Davies <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 20, 2001 6:06 AM Su

[PHP] PHP files appearing in error_log

2001-08-20 Thread Kermit
Greetings. I am experiencing an odd issue that I am not sure is Apache or PHP (php-4.0.4pl1-9) related. The issue is that every once in a while I get a full copy of a page in my system error_log. That is, not the error_log for the site the page exists on, but the /var/log/httpd/error_log. I h

[PHP] confusing problem w/sessions

2001-08-20 Thread Gabriele Biondo
Dear sirs; i have a simple snippet of code : i am trying to understand how do session work. Accessing at this document directly from the server (it is a SuSE 7.2 PE - running PHP 4.0.4 and apache 1.3.9) i find out the following problem: Warning: cannot send session cookie - headers already sen

[PHP] Re: flash and php

2001-08-20 Thread Tribun
Simply user the GetVariable function in Flash. The targeting file must be a PHP-File. This File should reads out the Informations you want. If the requests are also variable, call the file through GET and add "?query=date" to the filename. The file must echo this... &variable=something&cat=dog

[PHP] ImagePNG problem

2001-08-20 Thread Adrian Ciutureanu
Is there any way to tell ImagePNG() to create PNG24 images instead of PNG8 images? Seems that ImageCreateFromPNG() can read PNG24, but ImagePNG() writes only PNG8. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

[PHP] Dreamweaver templates

2001-08-20 Thread -:-Doigy-:-
Hi Folks, Can't find an answer in the archives... Can php parse DW templates? ie. I want only a small amount of code to be editable with the tag. Dreamweaver places the following code to identify editable regions: \\ editable code here I don't think PHP will parse the tags and leave them as d

Re: [PHP] confusing problem w/sessions

2001-08-20 Thread php mailing list
start your session before sending any html output to browser check that register_globals is on if not use $HTTP_SESSION_VARS("a") instead to reference your session var assign a value after having initialiazed your var not before -- Original Message -- From:

Re: [PHP] Dreamweaver templates

2001-08-20 Thread Darius Ivanauskas
I think you should look at Smarty Template Engine: http://www.phpinsider.com/php/code/Smarty/ Hope this helps. Regards -- Darius Ivanauskas On Mon, 20 Aug 2001, -:-Doigy-:- wrote: > Hi Folks, > > Can't find an answer in the archives... > Can php parse DW templates? > ie. I want only a small am

Re: [PHP] confusing problem w/sessions

2001-08-20 Thread Gabriele Biondo
> start your session before sending any html output to browser Okay. This solves the problem w/the warnings > check that register_globals is on It is actually on > if not use $HTTP_SESSION_VARS("a") instead to reference your session var > assign a value after having initialiazed your var not

Re: [PHP] sample or tutorial for conditional pulldown menus

2001-08-20 Thread Justin French
Steve Werby wrote: > Others on the list made good suggestions about the database structure. The > URL you referenced reloads the whole page. I've seen other sites achieve > the same functionality by loading the elements of the second, third and > fourth select boxes into javascript arrays which

[PHP] How to run php function from command line?

2001-08-20 Thread Moise Bertrand TACHAGO
Hi, please, how to run php function which update mysql db from command line? Thanks in advance -- Moise Bertrand TACHAGO Computer scientist, Volunteer DBMS Specialist SDNP Cameroon, 506 Hajal Center Building, Yaounde CAMEROON phone (237)22 24 90 E_mails [EMAIL PROTECTED] [EMAIL PROTECT

[PHP] Re: force download in IE

2001-08-20 Thread bill
Have you tried this? header("Content-Type: application/x-octet-stream"); header("Content-Description: MP3 file"); David Minor wrote: > Can anybody tell me why this doesn't work in IE? I need to force download > mp3 files instead of IE5.5 trying to apply a helper app. This code works > fine fo

Re: [PHP] How to run php function from command line?

2001-08-20 Thread Tyler Longren
First of all, you need to have php installed WITHOUT a webserver. If you haven't done this already, download php, and this should be your ./configure command: ./configure --with-mysql make; make install your php binary will be in /usr/local/lib/php/bin/php (I think). Then put this in test.php,

[PHP] Re: security check - virtual host and mod php setup

2001-08-20 Thread Peter Clarke
"Dave" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > please hack apart this solution and point out the error/insecure nature of the > setup. > > goal, provide php access to name based virtual hosts on FreeBSD boxes > > problem, security of PHP access to base

[PHP] PNG support...

2001-08-20 Thread Jeff Lewis
With 4.04 I had PNG working fine and could create images in a cron job I was running. When we upgraded to 4.06 we seemed to have lost the ability. While calling my PHP file up in the browser, it creates the image but my cron job keeps failing with this error: ImageCreateFromPng: No PNG suppo

RE: [PHP] new one is it ??

2001-08-20 Thread billfarr
Title: RE: [PHP] new one is it ?? Hiya again, Erik: Here's the barely-tested but apparently functional Code Red detector.  I added some variables at the top for configuring email destinations.  The important change is that it will query ARIN, RIPE, and APNIC until it finds a reasonable answe

Re: [PHP] PNG support...

2001-08-20 Thread Brian C. Doyle
I have had the same problem with no resolution is this a BUG? At 10:21 AM 8/20/01 -0400, Jeff Lewis wrote: >With 4.04 I had PNG working fine and could create images in a cron job I >was running. When we upgraded to 4.06 we seemed to have lost the >ability. While calling my PHP file up in the

[PHP] while loop with if statement

2001-08-20 Thread sgibbs
I can't figure out why the if statement isn't working. The page displays the same with or without the if statement. Any idea what I'm doing wrong? I attached the code in a word document. Thank you, Shawna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

RE: [PHP] while loop with if statement - here's the attachment

2001-08-20 Thread sgibbs
Here's the attachment - I hate it when I do that! :) -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 8/20/01 10:25 AM Subject: [PHP] while loop with if statement I can't figure out why the if statement isn't working. The page displays the same with or without t

Re: [PHP] Dreamweaver templates

2001-08-20 Thread Tim
PHP already ignores those SGML comments. They're just there for the Dreamweaver editor to know where the editable regions are. - Tim On Mon, 2001-08-20 at 08:45, -:-Doigy-:- wrote: > Hi Folks, > > Can't find an answer in the archives... > Can php parse DW templates? > ie. I want only a small a

Re: [PHP] while loop with if statement - here's the attachment

2001-08-20 Thread Steve Brett
did you do it again ? :-) pasting you code is ok ... Steve <[EMAIL PROTECTED]> wrote in message BB6D932A42D6D211B4AC0090274EBB1D2EF0EE@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1D2EF0EE@GLOBAL1... > > Here's the attachment - I hate it when I do that! :) > > > > -Original Message- > Fr

RE: [PHP] while loop with if statement - here's the code

2001-08-20 Thread sgibbs
Thanks Steve! :) Here's the code: $title$description\n \n "; }; if($results <= 0) { print " NO RESULTS\n \n "; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

RE: [PHP] PNG support...

2001-08-20 Thread scott [gts]
looks like some GD options were changed between builds. check phpinfo() to find out how PHP was compiled, and what version GD it's using. > -Original Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 10:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] P

Re: [PHP] PHP based authentification -----------

2001-08-20 Thread Charles Williams
Alex, If your using sessions then just use session_destroy(); in your logout. chuck - Original Message - From: "Alex Sofronie" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Sunday, August 19, 2001 4:25 PM Subject: [PHP] PHP based authentification --- > Hi all

Re: [PHP] PNG support...

2001-08-20 Thread Jeff Lewis
The GD section looks like: gd GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library JPG Support enabled WBMP Support enabled Hopefully that shows :) GD Support: Enabled GD Version: 1.6.2 or higher FreeType S

[PHP] gettext()

2001-08-20 Thread Colin Viebrock
I am interested in speaking to anyone who has used PHP's gettext() functionality on a fairly large website, preferably one that uses CVS for development. We are in the process of getting our site ready for i18n, and want to use gettext(). However, I'm a bit unsure on how to set up the file struc

Re: [PHP] while loop with if statement - here's the code

2001-08-20 Thread Steve Brett
try using mysql_num_rows() to get the number of rows returned by the query. you need to supply it with the identifier for the query not the sql you sent to the query. not exactly sure what you're trying to do though ... Steve <[EMAIL PROTECTED]> wrote in message BB6D932A42D6D211B4AC0090274EBB1D2

[PHP] security

2001-08-20 Thread nafiseh saberi
hi. I work in ISP and work on distrbuted database, I want to secure it. I search and find that freebsd work for help linux for secure it. but I dont know how is it? I define group and user in shell not in php. my question is: how do I do it with php? and how freebsd help me?? thanks much. --

Re: [PHP] while loop with if statement - here's the code

2001-08-20 Thread Steve Brett
okay - read all the code now. this might be a better way: 0) { for ($x=0;$x<$numrows;$x++) { $id=$one["id"]; $title=$one["title"]; $description=$one["description"]; print " $title$description\n \n "; } // end of for } else { print " NO RESULTS\n \n "; } ?> -- PHP Ge

[PHP] crop string?

2001-08-20 Thread Jeremy Morano
Hi, I would like to know how to crop this string from this, $string = \home\folder1\folder2\page1.php to this $string = page1.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] crop string?

2001-08-20 Thread Rasmus Lerdorf
basename() On Mon, 20 Aug 2001, Jeremy Morano wrote: > Hi, > > I would like to know how to crop this string from this, > > $string = \home\folder1\folder2\page1.php > > to this > > > $string = page1.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

RE: [PHP] while loop with if statement - here's the code

2001-08-20 Thread Alnisa Allgood
At 11:02 AM -0400 8/20/01, [EMAIL PROTECTED] wrote: > > >$results = mysql_db_query("$db", "select * from $table where $query order >by update_datetime desc limit $offset, 10"); > >while($one = mysql_fetch_array($results)){ > $id=$one["id"]; > $title=$one["title"]; > $description

[PHP] PHP and the Console

2001-08-20 Thread Bill Brigden
Hi all, How could I use a script on the console - to interact, and take the users input. Like a shell/perl script - but in php? Bill. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] PHP and the Console

2001-08-20 Thread Andrew Libby
#!/path/to/php -q On Mon, Aug 20, 2001 at 05:14:22PM +0100, Bill Brigden wrote: > Hi all, > > How could I use a script on the console - to interact, and take the users > input. Like a shell/perl script - but in php? > > Bill. > > > > -- > PHP General Mailing List (http://www.php.net/) > T

RE: [PHP] Function to Build Trees

2001-08-20 Thread Dan Harrington
Or you could just buy from http://www.plumbdesign.com/ or write a PHP SDK for them. :-) > -Original Message- > From: Chris Hayes [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 4:15 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Function to Build Trees > > > > Onderwerp:

Re: [PHP] PHP and the Console

2001-08-20 Thread Tim
I haven't tried this personally, but according to http://www.php.net/manual/en/function.fopen.php you can open the standard streams as php://stdin and php://stdout, which should allow you to read and write to the user directly. - Tim On Mon, 2001-08-20 at 12:14, Bill Brigden wrote: > Hi all,

RE: [PHP] MySQL substrings?

2001-08-20 Thread Alfredeen, Johan
This is actually not so difficult. Just download the mySQL documentation (from mysql.org or .com I believe is where I got it) and search the function list. Johan Alfredeen -Original Message- From: Tom Carter [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 19, 2001 8:53 AM To: Chris Lamb

[PHP] MD5_Crypt Support

2001-08-20 Thread Casey Mueller
Hi, I'm trying to use crypt to make MD5 passwords and am having troubles. I read that I need to have MD5 crypt support at "./configure" time of installation. I noticed from configure that I get this: "checking for MD5 crypt... no". I am running SuSE, what package do I need to get M

RE: [PHP] php query for mysql table

2001-08-20 Thread Alfredeen, Johan
Wolfgang, Use LIKE '%life%' as in SELECT somecolumn FROM mytable WHERE LOWER(mycolumn) LIKE '%life%' Don't forget to compare same case strings. Johan Alfredeen www.pongworld.com >From mySQL manual: mysql> SELECT * FROM tbl_name WHERE set_col LIKE '%value%'; mysql> SELECT * FROM tbl_name WHERE

RE: [PHP] confusing problem w/sessions

2001-08-20 Thread Quentin Gillet
On which platform do you run? set display_startup_errors = On so that you eventually will see any php initialization problem (like the folder where session data is stored being not accessible because of permission restrictions...I say that because I ran into this problem) to recap, code should b

[PHP] How to download an entire dynamic website?

2001-08-20 Thread Josh
Does anyone know some good programs (or other ways) to download an entire dynamic website? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL P

[PHP] Need "Working..." pop up dialog (repost)

2001-08-20 Thread Ray Clouse
I'm trying to get a "working..." informational dialog or window going with my PHP page but I'm not getting anywhere. Here's the situation: When the user clicks on a link that has to gunzip a very large file, I want a popup to say "Working..." while the file is uncompressing. Then, when the file

[PHP] Re: force download in IE

2001-08-20 Thread David Minor
on 8/20/01 12:07 PM, [EMAIL PROTECTED] wrote: This gave the same result: it launches the helper app. Please help!! Regards. dm > Have you tried this? > > header("Content-Type: application/x-octet-stream"); > header("Content-Description: MP3 file"); > > David Minor wrote: > >> Can anybody t

[PHP] Port Scanner

2001-08-20 Thread brian ellis
When I use the fsockopen command onto an IP address that does not exist, the page will freeze until it's execution time is up. Right now I have it executing the external ping command and reading the results from that. Does anyone have a better idea using maybe a OS-independent scanner or some

Re: [PHP] Re: flash and php

2001-08-20 Thread pierre-yves
Hello, what he explained with GetVariable works fine. I just want to add that you do the opposite, sending value to flash via php, by echoing the querystring in a php file and use LoadVariable to read the value and display it in the flash movie. py - Original Message - From: "Tribun" <

[PHP] basename()

2001-08-20 Thread Jeremy Morano
Hello, Can someone please show me how to use basename() correctly? This is what I am doing: $file = basename ($path); $file = basename ($path,".php3"); This is the error I'm gettig: Warning: Wrong parameter count for basename() in /home/virtual/ppcu/home/httpd/html/jeremy/stats4.php on line 43

[PHP] fwrite????

2001-08-20 Thread Brian C. Doyle
Hello all, Is is possible to just append to the end of a file using fwrite??? Currently I am reading the contents for the file into an array then add to the array what I want and rewrite the file from the array... And well that is just silly... How else would I do this?? -- PHP General Ma

[PHP] converting str with \n to one line str??

2001-08-20 Thread Jens
When I use Javascript with PHP i run into one problem. When I get the data i need from the database it often has a lot of and \n (new lines) in it. The are no problem when converting a string to a Javascript string, but the \n are. The string has to be all in one line. example: var temp =

Re: [PHP] converting str with \n to one line str??

2001-08-20 Thread Artwithin
use nl2br() http://www.php.net/nl2br or, alternatively, use a regex to strip out the newlines hope this helps. - Original Message - From: Jens <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 20, 2001 11:15 Subject: [PHP] converting str with \n to one line str?? > When

Re: [PHP] converting str with \n to one line str??

2001-08-20 Thread Tyler Longren
You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 "Jens" <[EMAIL PROTECTED]> wrote: > When I use Javascript with PHP i run into one problem. When I get the > data i > need from the database it oft

Re: [PHP] fwrite????

2001-08-20 Thread Anton Stroganov
when you open the file with fopen(), use the 'a' (writing only) or 'a+' (reading and writing) arguments ie: int fopen ("somefile.txt", "a"); "... *'a' - Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it. *'a+' - Op

Re: [PHP] fwrite????

2001-08-20 Thread Brian C. Doyle
Thank you for your time I did not even look at the fopen... DUH Sorry about not researching properly... At 11:14 AM 8/20/01 -0700, Anton Stroganov wrote: >when you open the file with fopen(), use the 'a' (writing only) or 'a+' >(reading and writing) arguments >ie: >int fopen ("somefile.txt"

[PHP] How to set a cookie that never expires?

2001-08-20 Thread pierre-yves
Hello, I have read http://www.php.net/manual/en/function.setcookie.php and did not find out a quick solution on how to set a cookie that will NEVER expires ? py -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

[PHP] Is this a bug?

2001-08-20 Thread Ratko
Please try this: I get "true" as a result. How's that possible? But if I do: echo "996448234192168122"==="996448234192168125"; then I get "false" as expected. php 4.0.6, Debian Potatoe Linux. Does this happen only on my computer? thanks, ratko -- PHP General Mailing List (http://www.php.n

Re: [PHP] problems with a netscape post

2001-08-20 Thread rpruitt
I don't believe that can be it. I have forms working under Netscape 4+ all day with no problems, all unnamed. I would bet it's an html issue related to the editor you're using to create the forms. I'd like to see the html that fails. Steve Lawson wrote: > Try giving the form a name? > > I normal

Re: [PHP] Is this a bug?

2001-08-20 Thread ERISEN, Mehmet Kamil
you are right. I tested with 99644xxx and 964 It printed A. However, if you are down to 644xxx is prints B which is correct. Perhaps a limitation of 16 digits. ? good catch --- Ratko <[EMAIL PROTECTED]> wrote: > Please try this: > echo "996448234192168122"=="996448234192168125"; > ?> >

[PHP] GoTo URL Function?

2001-08-20 Thread RoyW
Hi, I am sure there is an easy way to do this... But when my script is done doing whatever I want it to do - RATHER than print text and all to a page, I want the browser (within the same window) to go to a specific URL Can this be done - let's say for example to: http://www.yahoo.com Thanks!

RE: [PHP] GoTo URL Function?

2001-08-20 Thread Jeff Oien
http://www.php.net/manual/en/function.header.php > Hi, > > I am sure there is an easy way to do this... > > But when my script is done doing whatever I want it to do - RATHER than > print text and all to a page, I want the browser (within the same window) to > go to a specific URL > > Can this

Re: [PHP] GoTo URL Function?

2001-08-20 Thread Tyler Longren
header("Location: http://location.com/blah.php";); -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 13:56:25 -0500 "RoyW" <[EMAIL PROTECTED]> wrote: > Hi, > > I am sure there is an easy way to do this... > > But when my script is done do

[PHP] Re: Multi-Task on PHP by submitting a form!

2001-08-20 Thread Steve Brett
you're there already. have an if statement on mail.php: if (isset($posted_info)) { // send mail here // do db insert here } // end of if Steve "Jack" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all > I was trying to get a user input form to inse

Re: [PHP] Port Scanner

2001-08-20 Thread Ben Gollmer
Make sure you pass fsockopen() the optional timeout parameter, and that the timeout is less than the maximum script execution time. See http://www.php.net/manual/en/function.fsockopen.php Ben On Monday, August 20, 2001, at 12:49 PM, brian ellis wrote: > When I use the fsockopen command onto a

RE: [PHP] Adding records to a MySql database

2001-08-20 Thread Alfredeen, Johan
Read in the mySQL manual at /mysql_manual_split/manual-split/manual_Reference.html#CREATE_TABLE etc ie. CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name [(create_definition,...)] [table_options] [select_statement] ALTER [IGNORE] TABLE tbl_name alter_spec [, alter_spec ...] and more ... Joha

Re: [PHP] basename()

2001-08-20 Thread Gerard Samuel
$file = basename ($path); $file = $file.php3; Jeremy Morano wrote: > Hello, > > Can someone please show me how to use basename() correctly? > This is what I am doing: > > $file = basename ($path); > $file = basename ($path,".php3"); > > This is the error I'm gettig: > > Warning: Wrong paramet

[PHP] session_unregister

2001-08-20 Thread Jeremy Morano
Help me! I'm working with sessions and having some difficulty. I have my session_register(variable) at the top of page 1 and page 2. I use the session_unregister(variable) at the bottom of page 2, everything seems to work fine at this point. The problem is, sometimes the user needs to visit pag

[PHP] Multi-dimensional array issue

2001-08-20 Thread Ken Hopkins
Hi from a recent PHP convert, Having a heck of a time declaring and accessing 2 dimensional info in an array. any input on where to start looking for the answer would be greatly appreciated. I want to have a base array of 5 elements. The first 4 elements are variables, and the fifth is an array

[PHP] Host question

2001-08-20 Thread Erich Kolb
Just out of curiosity, is there anyone here that is using phpwebhosting.com to host their site? Due to ALL the problems with the DSL in my area, I am thinking about not hosting my own site anymore and phpwebhosting.com seems to be what I need, I am just looking for some input about any problems t

[PHP] INPUT type=file value=????

2001-08-20 Thread Al
I realize that this isn't a PHP issue, but I'd like find out they why's/wherefore's of this: The W3C HTM 4x spec(s) say that when using the file type on a form input element, "User agents may use the value of the value attribute as the initial file name." I can't get Mozilla, Netscape, nor IE to

[PHP] RE: ImagePNG problem

2001-08-20 Thread Andrew Chase
Make sure you have GD 2.0.1 and PHP 4.0.6 or later for creating true-color PNGs, per the manual: http://php.net/manual/en/function.imagecreatetruecolor.php -Andy > -Original Message- > From: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]] > > Is there any way to tell ImagePNG() to create

[PHP] HELP with Regular Expressions

2001-08-20 Thread Richard Kurth
I am having a little problem with Regular Expressions In the function below I am trying to make sure only these characters are being used in the hostname. If the hostname contains letters,digits,periods and minus signs then it is fine and we can let the process continue. If it has unders

[PHP] Increase field value by 1 problem

2001-08-20 Thread HTTP-404
Hello I have Following code function updateHitCounter($id,$PHPSESSID,$type){ $flag=$this->validateSession($PHPSESSID); if($flag==1){ include("admin/config.inc.php"); $connection = mysql_connect("$host","$username","$password"); if ($connection == false){ echo mysql_errno().": ".mysql_error()."";

RE: [PHP] Is this a bug?

2001-08-20 Thread Mark Roedel
> -Original Message- > From: Ratko [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 1:40 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Is this a bug? > > > Please try this: > echo "996448234192168122"=="996448234192168125"; > ?> > > I get "true" as a result. How's that possibl

  1   2   >