[PHP] ImageTTFText Error

2001-01-17 Thread Gabriele Fain
Hello, Did someone as experiences of crash when use ImageTTFText ? I have a Linux Mandrake 7.2 with Php 4.0.4 Thanks -- Gabriele Fain Fineware snc - Vendita computer, produzione software e Hardware EMail: mailto:[EMAIL PROTECTED] http://www.fineware.it Via Matteotti, 66 - 34071 Cormons (GO).

[PHP] [PHP-DB] PHP+MySQL charset problem

2001-01-17 Thread Roman Serbski
Good day all! Please help me with charset. I have some strange trouble. I use FreeBSD 4.2 STABLE and MySQL 3.23.28-gamma (compiled from FreeBSD ports) and PHP 4.04. Latin1 is a default charset in MySQL. So, I wanted to add cp1251 or koi8_ru. Ok, I add --default-character-set=cp1251 to my mysql

[PHP] please help: PHP4 + GD 1.8.3 + PNG

2001-01-17 Thread Neil Zanella
Hello, I just finished upgrading my Red Hat 5.2 box from PHP3 to PHP4 with MySQL support and I also upgraded GD from 1.3 to 1.8.3 so that now I have according to ?php phpinfo(); ? support for both of them but I have the following problem. I pasted the PNG code from the manual and tried to view

[PHP] Creating a text file

2001-01-17 Thread Wade Halsey
Hi I have the following code in Delphi: procedure TFormConfirmAllocation.CreateTxt; var TxFile : TextFile; Buffer : string; x : integer; begin AssignFile(TxFile,'\SkyTrac.sky'); Rewrite(TxFile); with FormConfirmAllocation.Query1 do begin open; while not Eof do

[PHP] session_start() and cache problem ...

2001-01-17 Thread Samuel Tran
Hello everybody, I have two websites that use Apache-1.3.12 + PHP-4.0.2 + Oracle8i on Linux RedHat servers. One of them doesn't use the session_start() function. If I do a telnet on port 80 and type in "HEAD / HTTP/1.0" I get the following : HTTP/1.1 200 OK Date: Wed, 17 Jan 2001 08:50:34 GMT

[PHP] effect of --enable-trans-sid

2001-01-17 Thread Olivier Guieu
Dear all, I am using PHP 4.0.3-pl1 on a Red Hat 6.2 platform with the --enable-trans-sid option activated. URLs are rewritten fine (they contain the PHPSESSID value whenever necessary), however images are also re-written!, i.e. IMG SRC=/pix/dummy.gif get changed to IMG

Fw: [PHP] Images ???

2001-01-17 Thread Miguel Loureiro
-Original Message- From: Ignacio Vazquez-Abrams [EMAIL PROTECTED] To: Miguel Loureiro [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Tuesday, January 16, 2001 7:36 PM Subject: Re: [PHP] Images ??? On Tue, 16 Jan 2001, Miguel Loureiro wrote: Hello, I want to show a

Re: [PHP] MySQL + PWS Problems

2001-01-17 Thread Phil Driscoll
Whenever I try to connect with ANY Mysql code on my cpu, I get an error saying it can't connect. I installed usingthe 4.04 win32 installer(heresey I know) which has mysql built in. Do I have to edit anything to all me to try the scripts on my personal cpu? Chris Reading between the lines, I

RE: [PHP] mail list archive

2001-01-17 Thread Maxim Maletsky
here: http://marc.theaimsgroup.com/?l=php-generalr=1w=2 have fun! Maxim Maletsky -Original Message- From: Taras Vasylkevych [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 7:08 PM To: [EMAIL PROTECTED] Subject: [PHP] mail list archive Hi, is it possible to review the

[PHP] REGEX for tag attributes?

2001-01-17 Thread Thomas Angst
Howdy, I need to divide several attributes of a tag. div key1=val1 key2 = val2 key3='val3' key4 = "val4" how can I do this without too many time lost? Is it possible to do this with a regular expression? Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Cookies still store old value(Help!!)

2001-01-17 Thread Hendry Sumilo
Dear Expert, I have to store user detail and password in the cookies so that i can detect if particular user is allowed to enter certain website Example is like this: User "A" is allowed to enter student page User "B" is allowed to enter lecturer page Both have to enter password with login at

Re: [PHP] Protecting my code

2001-01-17 Thread Pankaj Gupta
Check out the Zend site: www.zend.com They have a product that does exactly what you want (called zend encoder) Hope that helps Cheers Pankaj -- --- Pankaj Gupta Senior

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Kath
ROFLMAO =D - Kath - Original Message - From: "Chris Aitken" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 8:11 PM Subject: Re: [PHP] I love/hate FrontPage - need another HTML editor. At 09:06 PM 16/01/2001, Kath wrote: Hey, To get Frontpage to recognize

Re: [PHP] Anything similar to phpmyedit?

2001-01-17 Thread Kath
I like phpMyAdmin - Kath - Original Message - From: "Gerry Chu" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:44 AM Subject: [PHP] Anything similar to phpmyedit? I'm looking for something exactly like phpmyedit (mysql database displayer/editor) but

[PHP] how do i hide my .inc files in apache??

2001-01-17 Thread Jamie Burns
hi.. can anyone tell me how i get apache to never send out the contents of my include files (*.inc) to users? i dont want my source sode to be visible to browsers. thanks, jamie.

Re: [PHP] Forcing renaming of download file (want output from a phpfile being saved as some particular file by browser)

2001-01-17 Thread bard
On Wed, 17 Jan 2001, Pankaj Gupta wrote: Forcing a download is easy, but how can I tell the browser to name that file to something particular, say data1.txt Is there a header for that? There sure is: header("Content-disposition: filename=data1.txt"); BTW, I've been using that for a while,

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Jon Haworth
But, you know, the look and feel of a site is pretty important and an HTML editor goes a long way toward managing that part. If you can find an editor that helps you set up some style sheets that carry across all your pages without you having to type in all the code for every page, you're

Re: [PHP] how do i hide my .inc files in apache??

2001-01-17 Thread Tim Zickus
Combine these options: http://httpd.apache.org/docs/mod/mod_access.html#allow http://httpd.apache.org/docs/mod/core.html#files to exclude access to anything matching *.inc. The safest/easiest thing is to move the files outside of the document path and add that directory to your php include

RE: [PHP] how do i hide my .inc files in apache??

2001-01-17 Thread jeremy
don't name them .inc files. Name them blahblah.inc.php or something that will be parsed, and therefore not just gurped up by the server. blest, jeremy -- Jeremy Kelley [EMAIL PROTECTED] pgp keyid 0xAECBA355 Phil 1:21 www.ganooz.com Car pour moi,

Re: [PHP] From Cold Fusion back to PHP...

2001-01-17 Thread Frédéric Mériot
Hello, I'am a french CF developper and I've just started to dev in PHP. You're right! Cold fusion is much easier than PHP but I think it's just a question of "experience". It's true, cold fusion is easier but it's due (partialy) to Cold fusion studio. The Allaire Editor simplifies the work of

Re: [PHP] Question concerning performance

2001-01-17 Thread Christian Reiniger
On Wednesday 17 January 2001 11:37, jeremy wrote: Example ONE: (in just parse mode) [cut]--- ? print "html-tagblah blah blah blah blah blah blah/html-tag"; print "html-tag" . $Var1 . "/html-tagb-tag" . $Var2 . "/b-tag"; ? [/cut]-- Example TWO:

Re[2]: [PHP] how do i hide my .inc files in apache??

2001-01-17 Thread Andrew Sitnikov
Hello jeremy, j don't name them .inc files. j Name them blahblah.inc.php or something that will be parsed, and j therefore not just gurped up by the server. I think, more secure is move inc file out www tree. /home/user/public_html/index.php /home/user/include/lib.inc index.php ?

[PHP-CVS] cvs: php4 /ext/sablot sablot.c

2001-01-17 Thread Sterling Hughes
sterlingWed Jan 17 06:14:22 2001 EDT Modified files: /php4/ext/sablotsablot.c Log: Fix (well it works) the error display with sablotron. Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.30 php4/ext/sablot/sablot.c:1.31 ---

php-general Digest 17 Jan 2001 15:29:07 -0000 Issue 460

2001-01-17 Thread php-general-digest-help
php-general Digest 17 Jan 2001 15:29:07 - Issue 460 Topics (messages 34974 through 35049): Re: XML, what is that supposed to do? 34974 by: Brian White 34979 by: Matt McClanahan Re: regexps 34975 by: Toby Butzon Re: Zend Optimizer 34976 by: Michael A.

Re: [PHP] XML, what is that supposed to do?

2001-01-17 Thread Chris Lee
To everyone that wrote in answering this question, thanks. The answers were very interesting and well writen, I didn't post the origonal question but I am glad he did, Ive learned alot about something I allways wondered about :) On a side note, anyone ever see any good tutorials for XML - php ?

Re: [PHP] Re: How can I get a random number

2001-01-17 Thread Chris Lee
This might not be quite what your looking for, but I often have then need for a unique number in an incrementing order. random isnt quite the word for it, unique is :) function mtime() { $mtime = microtime(); $mtime = str_replace("\.", '', $mtime); $mtime = explode(' ', $mtime);

[PHP] Hello

2001-01-17 Thread Karl J. Stubsjoen
Hello, I'm an ASP guy gone PHP. So, be patient with me as I struggle my way with PHP. I have a some experience with writing C like syntax, as with JavaScript and TCL. I hope to pick up PHP quickly. 2 Questions: How to declare function and sub routines. How to call functions and sub routines.

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Chris Lee
I use ultraedit 8.0 this editor rocks :) on a side note as someone else posted, 'everyone to their own' it dont matter what editor you love as long as the work gets done. Chris Lee Mediawaveonline.com ""Murph"" [EMAIL PROTECTED] wrote in message 003201c08027$e886c480$[EMAIL

[PHP] Matching irregular cases

2001-01-17 Thread jalist
I think this'll be an easy one for you fellas... I'm writing a search function for my site. The code to search the mysql db's are in place and working but here's the problem. For any matches that are displayed, I want to change the search query so it stands out in the result list. I'm just

Re: [PHP] Question concerning performance

2001-01-17 Thread Toby Butzon
Example ONE: (in just parse mode) [cut]--- ? print "html-tagblah blah blah blah blah blah blah/html-tag"; print "html-tag" . $Var1 . "/html-tagb-tag" . $Var2 . "/b-tag"; ? [/cut]-- Ran a pretty rough benchmark: 10040 lines of code (5020 repetitions

RE: [PHP] Matching irregular cases

2001-01-17 Thread jalist
(/me smacks head) thanks, completely forgot about that. Steve -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: 17 January 2001 15:57 To: 'jalist'; [EMAIL PROTECTED] Subject: RE: [PHP] Matching irregular cases Steve, Try the ereg_replace()somthing like this:

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Jerry
In article 008301c0803a$ff59af20$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Murph") wrote: But, you know, the look and feel of a site is pretty important and an HTML editor goes a long way toward managing that part. If you can find an editor that helps you set up some style sheets that carry

Re: [PHP] Matching irregular cases

2001-01-17 Thread Toby Butzon
displayed, I want to change the search query so it stands out in the result list. I'm just using... ereg_replace($search_query, "b$search_query/b", $row[6]); ...at the moment, but it wont match results where the case doesn't match. Try eregi_replace... php.net/eregi_replace --Toby --

[PHP] Change the session timeout within a php-script

2001-01-17 Thread Jens Rehpöhler
Hi, is it possible to change the session timeout from within a script. I can't change it in the *.ini-file because I have not the sufficient access rights. Jens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Problem with Exec()

2001-01-17 Thread Zbynk kvor
Hello, Is there anybody in this conference who can tell me whether exec() will work under WinNT in future PHP releases? I am bound to use Windows. Currently I am working this around so that I have a daemon under NT. Daemon watches out for commands, written by PHP into a file, and does the

Re: [PHP] Functions

2001-01-17 Thread Toby Butzon
echo foo(dog);// outputs "This is a dog" This is an example of using a "bareword" - PHP doesn't recognize _dog_ as any sort of reserved word or constant, so it sends it like a quoted string. I don't recommend using this because it's ambiguous whether you mean "dog" or if _dog_ is a

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Matthew Aznoe
Have any of you tried using EditPlus? (www.editplus.com) This is a great little editor for HTML, JavaScript, and PHP. You can download extra modules for color syntax hilighting of practically any language you can think of including many different databases. It has some nice useful HTML

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Dan Wright
Homesite from Allaire - although $99US is what I have been using for years. I really like it for editing PHP, HTML, and JavaScript. Dan ""Murph"" [EMAIL PROTECTED] wrote in message 003201c08027$e886c480$[EMAIL PROTECTED]">news:003201c08027$e886c480$[EMAIL PROTECTED]... Hi. FrontPage sucks for

Re: [PHP] Change the session timeout within a php-script

2001-01-17 Thread Toby Butzon
set_time_limit($seconds) --Toby - Original Message - From: "Jens Rehphler" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 9:02 AM Subject: [PHP] Change the session timeout within a php-script Hi, is it possible to change the session timeout from within a

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Scott Gerhardt
It is NOT ported to Linux is it? I couldn't find any information on the website indicating weather it was compiled for *NIX or not. - Scott Have any of you tried using EditPlus? (www.editplus.com) This is a great little editor for HTML, JavaScript, and PHP. You can download extra

[PHP] ASP to PHP

2001-01-17 Thread Karl J. Stubsjoen
Is there such thing as program that will convert ASP code to PHP code? I have built some nice libraries with ASP and am interested in converting those over to PHP, rather than rewriting them! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Toby Butzon
Nope. EditPlus is Windows-only. --Toby - Original Message - From: "Scott Gerhardt" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Php-General-Digest" [EMAIL PROTECTED]; "Chris Aitken" [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 11:54 AM Subject: RE: [PHP] I love/hate FrontPage - need

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Alexander Wagner
Scott Gerhardt wrote: It is NOT ported to Linux is it? I couldn't find any information on the website indicating weather it was compiled for *NIX or not. Use emacs. Or vi. Or quanta. Or something else. Wagner -- One maniac alone can do what 20 together cannot -- PHP General Mailing List

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Matthew Aznoe
Sadly, no. As far as I know, it is a completely windows product. I am currently developing on a Windows box using Samba to access the files on my UNIX box from windows. Its not necessarily the best way of doing things and it requires two computers, but it seems to get the job done, and since I

Re: [PHP] include statement

2001-01-17 Thread Adam Wright
This is because the PHP include statement is ment to include other blocks of PHP code, rather than bits of HTML. Hence, it includes things from anywhere on the system. To include things from under your current htdocs directory, use... include($DOCUMENT_ROOT . "/includes/metatags.include");

Re: [PHP] include statement

2001-01-17 Thread Toby Butzon
This all depends on your include_path set in the PHP config files; see the manual section on config for more info. About the security hole... yes it would be dangerous on a system where accounts are given to untrusted users (ie, customers), but there are ways to make PHP secure for multi-account

Re: [PHP] include statement

2001-01-17 Thread Alexander Wagner
Michael Zornek wrote: which is scary cause this worked too: ?PHP include("/usr/local/apache/conf/httpd.conf"); ? doesn't this seem like a huge security hole? No. If you know can trust your scripts, this is possible, but trusted scripts won't do any abuse, will they? If you can't trust

Re: [PHP] include statement

2001-01-17 Thread Michael Zornek
Adam(and everyone else who answers in 5 minutes, god i love this list), thanks for the help. Why is readfile more 'correct'? Just wondering? Mike At 5:07 PM + 1/17/01, Adam Wright wrote: This is because the PHP include statement is ment to include other blocks of PHP code, rather than

[PHP] Apache .htaccess Help (OT)

2001-01-17 Thread Website4S
Hi, Sorry this is off topic but I just can`t find anywhere with reliable information to help me get my .htaccess working on my server. I have followed many tutorials and none of them give me a working password protected dir, so if anyone can help I would appreciate it. My .htaccess file is

[PHP] Can I fork a PHP thread?

2001-01-17 Thread Dylan McNamee
There are occasions when I'd like to execute some long-running task in the background, in response to some user action. It seems that PHP has all the neccesary mechanisms to allow me to do this, but in my perusing of the manuals/FAQ's/digests, etc, I don't see such a facility. For example,

[PHP-CVS] cvs: php4 /pear/HTML IT.php ITX.php /pear/PHPDoc prepend.php /pear/PHPDoc/redist IT.php ITX.php

2001-01-17 Thread Sebastian Bergmann
sbergmann Wed Jan 17 08:15:18 2001 EDT Added files: /php4/pear/HTML IT.php ITX.php Removed files: /php4/pear/PHPDoc/redistIT.php ITX.php Modified files: /php4/pear/PHPDoc prepend.php Log: Move IT[x]

[PHP-CVS] cvs: php4 /pear/HTML Processor.php

2001-01-17 Thread Sterling Hughes
sterlingWed Jan 17 08:34:06 2001 EDT Added files: /php4/pear/HTML Processor.php Log: @ Add the HTML_Processor class which provides common functions for processing HTML. @ (Sterling) Index: php4/pear/HTML/Processor.php +++

Re: [PHP] Ok thanx sessions that was great, now it's time to go backhome!!!

2001-01-17 Thread andy
I am getting started with session and really love the sessions to death, but when I try to end a session I get an error. Can someone give me an example of code that ends a session. What is the error that you get? What is the code you're now using that causes the error? It's like saying to

Re: [PHP] include statement

2001-01-17 Thread Karl J. Stubsjoen
What about the security issue mentioned? Is it then possible (using the include and/or readfile) to grab anything found on the server? 1 More thing: what if I wanted to place the contents of a file into a variable. How do you achieve that? Karl *also a newbie, and this is a great group*

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread jeremy
I also find that ultraedit (forgive the goofy name, it's a _great_ app) works really well if I've got to code in a windows world. It's very flexible and fast on just any machine I've ever tried it on, while also doing syntax highlighting and compiling if you want it to. check it out at

RE: [PHP] REGEX for tag attributes?

2001-01-17 Thread Robert Collins
Thomas, Not sure if this si what you want but it may start you in the right direction. ? $bob = "div key1=val1 key2 = val2 key3='val3' key4 = \"val4\""; preg_match_all( '/\S*\s?=\s?\S+[^]/', $bob, $match ); foreach ($match[0] as $match_result) { echo $match_result."BR"; } ?

[PHP] PHP connecting to FIlemaker Database

2001-01-17 Thread Brandon Orther
Has anyone used PHP to connect to a FileMaker database? If you have a url to a tutorial please e-mail me. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

RE: [PHP] Ok thanx sessions that was great,now it's time to go back home!!!

2001-01-17 Thread Brandon Orther
Actually it would be like saying to a mechanic, Hey when I try to change my oil it spills can you give me an example of how to change my oil. All I was asking for was an example snip of code. But if this can help here is the error I get: Warning: Session object destruction failed in

Re: [PHP] Can I fork a PHP thread?

2001-01-17 Thread Chris Lee
Im nearly posative this isnt what your looking for, but I thought I would see if maybe it was :) compile php as a cgi so you can run it from the command prompt. then just run the php file from the command prompt through exec () ? exec("php -q somephpfile.php "); ? untested of course. Chris

Re: [PHP] include statement

2001-01-17 Thread Adam Wright
Pretty much, yes (within the bounds of the permissions of the files. Most webservers run as nobody on unix, and hence can only read those files which nobody can (confusing, huh :)). But, unless you have a mallicious user with upload access to your server, this isnt an issue. If you do,

Re: [PHP] Perl regular expression bug

2001-01-17 Thread Monte Ohrt
It's a bug. Try the latest CVS, it has been fixed. Shaun Thomas wrote: This only applies to PHP 4.0.4 Back with PHP 4.0.2, I could do this: ?PHP $string = "[["; $string = preg_replace("/(\W)/", "1", $string); ? $string would then contain "\[\[". Now, if I use that same

[PHP] error message handling

2001-01-17 Thread Jason Jacobs
I tried to send this before, so if I did, forgive me, but I don't think it worked last time .:) I'm trying to find a way to handle errors by number. For example, if I get a "directory already exists" error, I want to know what the number that is so I can check the return value on the function

Re: [PHP] mail list archive

2001-01-17 Thread Neil Zanella
Check out The Mail Archive at http://www.mail-archive.com/ ! On Wed, 17 Jan 2001, Taras Vasylkevych wrote: Hi, is it possible to review the archive of this mailing list. And if possible then where? Thanks, Taras Mit freundlichen Gren Taras Vasylkevych team in medias GmbH

[PHP] Netscape rand() not random

2001-01-17 Thread Joel Dossey
Hello, I have been toying with php for a short while and have problems getting the following code to correctly execute on Netscape: ?php header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s",getlastmod())." GMT"); header ("Cache-Control: no-cache,

[PHP] A little problem

2001-01-17 Thread Emiliano Marmonti
Hello all I have a little problem: Sometimes when you invokes some .php page, appears "could not redefine function...". It looks like a Web server problem because If you try again one or two times, the same operation works Ok. Im using PHP 4, Win 98 SR2, PWS and MySql for Windows. Thanks.

[PHP] ? PHP vs. ?

2001-01-17 Thread Karl J. Stubsjoen
Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? *wow, some real beginer questions! eh?* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] MySQL and Array Problem

2001-01-17 Thread Jerry Lake
I'm trying to store an array into a MySQL table, what datatype should the column be, Varchar? second this is the code I use to store it. mysql_connect("$DBHost","$DBUser","$DBPass"); $name = implode(",", $name); mysql("$DBName","INSERT INTO CartItems VALUES

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Egon Schmid (@work)
"Karl J. Stubsjoen" wrote: Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? You should use ?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. -Egon -- SIX

Re: [PHP] Question concerning performance

2001-01-17 Thread Toby Butzon
PHP's time functions and this little library I put together a while back - http://imawebdesigner.com/utils/runtime_clock --Toby - Original Message - From: "jeremy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 12:49 PM Subject: RE: [PHP] Question

Re: [PHP] Netscape rand() not random

2001-01-17 Thread Romulo Roberto Pereira
you need to seed the rand with srand() before the rand() command... cheers, Rom - Original Message - From: Joel Dossey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 1:39 PM Subject: [PHP] Netscape rand() not random Hello, I have been toying with php for a

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Romulo Roberto Pereira
I didn't know that - very intersting! thank you Egon, this reaaly helps... Rom - Original Message - From: Egon Schmid (@work) [EMAIL PROTECTED] To: Karl J. Stubsjoen [EMAIL PROTECTED] Cc: PHP Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 1:51 PM Subject: Re: [PHP]

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Rasmus Lerdorf
Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? You should use ?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. Well, I don't see the short tag ever

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Toby Butzon
Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? You should use ?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. Are there in fact plans to drop the

Re: [PHP] Change the session timeout within a php-script

2001-01-17 Thread Toby Butzon
Setting the $seconds value to 0 makes the timeout value of the script unlimited. If you're having problems with the browser timing out, try sending a space every few seconds to keep the connection open. If I'm still misunderstanding your question, my apologies. --Toby - Original Message

Re: [PHP] Netscape differences?

2001-01-17 Thread Jeff Warrington
In article [EMAIL PROTECTED], "Joel Dossey" [EMAIL PROTECTED] wrote: One way to fool browsers when making an image request is to append a random string to the query string of the img src. In these situations, adding 'rand=?php print(time()); ?' can do the trick. Jeff Greetings, I have a php

RE: [PHP] MySQL and Array Problem

2001-01-17 Thread Jerry Lake
Never mind, I caught my syntax error it works fine now. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: [PHP] Netscape rand() not random

2001-01-17 Thread Joel Dossey
Ah! excellent, it works fine now. I must apparently skipped that line about seeding it in the php documentation. (doh!) I wonder why IE5.5 didnt need the seeding in order to do the rand()? Thanks alot, Joel --- Romulo Roberto Pereira [EMAIL PROTECTED] wrote: you need to seed the rand with

RE: [PHP] ASP to PHP

2001-01-17 Thread Michael Simcich
Try asp2php: http://asp2php.naken.cc/home.php Michael Simcich AccessTools -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 8:48 AM To: PHP Mailing List Subject: [PHP] ASP to PHP Is there such thing as program that will convert

[PHP] MySQL Disk Space Usage

2001-01-17 Thread [ rswfire ]
Is it possible to find out how much disk space a particular number of rows in a table takes up?? If you have an answer, please email me directly. Thank you!!

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread John Hinsley
Coming in on this late and from another platform: I use Bluefish and Gvim under Unix. Of the two, Gvim is probably the most configurable editor out there (macros, syntax highlighting, runs its own scripts, uses a variety of scripting languages) and is available for Windows. It's free (well, it's

[PHP] Re: Problems compiling LDAP into php 4.0.2

2001-01-17 Thread Bill . Hoffman
I switched from Netscape to Openldap and it now compiles fine. Unfortunately Apache bombs when I try to start it with the following error: Syntax error on line 237 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server:

[PHP] new email address

2001-01-17 Thread Tom Beidler
Just a quick note to all. My old address, [EMAIL PROTECTED], will no longer be in service. You can reach me at [EMAIL PROTECTED] or [EMAIL PROTECTED] Please make the necessary changes to your address books. Thanks, Tom Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
I think that these are your answer: Memory use explanation in MYSQL DB: http://www.mysql.com/doc/m/y/myisamchk_memory.html Memory used by MYSQL DB: http://www.mysql.com/doc/M/e/Memory_use.html MYSQL DB Status: http://www.mysql.com/doc/S/H/SHOW_STATUS.html Problems with HARD DISKS and MYSQL

[PHP] 4.0.4pl1 still reports version as 4.0.3pl1

2001-01-17 Thread Hans Lehmann
I had 4.0.3pl1 running on a Windows98 system. After I upgraded to 4.0.4pl1, calling phpinfo() still reports the version as being 4.0.3pl1. I deleted the original c:/php/ directory completely before installing the newer version, so I don't *think* i left behind any old files. The php4ts.dll

[PHP] Postgres pconnect

2001-01-17 Thread H. Wade Minter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a website where each new page access connects to a Postgres database to load information. Each DB connect uses a $dblink=pg_connect() to connect to the database. I'd like to avoid the overhead with opening a new connection with every page.

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread [ rswfire ]
Thank you for the reply, however, I do not believe this will solve my problem. So please let me explain what I am trying to do. I'll use an example. Let's say I have a guestbook application. And let's say that several different people have their own guestbooks. I would create a guestbook

[PHP] Two things

2001-01-17 Thread Phil Labonte
When I get a list of items from a database I would like to display them with alternating colors. Does anyone know how or where I can get some code that will show me how to do that? The other question is what is the code to get the ip of the client that is accessing your site? I know that one

Re: [PHP] Two things

2001-01-17 Thread Rasmus Lerdorf
When I get a list of items from a database I would like to display them with alternating colors. Does anyone know how or where I can get some code that will show me how to do that? $col = 0; $colors = array('#ff','#00'); while($row=mysql_fetchrow($result)) { echo "td

Re: [PHP] error message handling

2001-01-17 Thread Alex Black
You probably want to suppress the error message with an @ symbol. Try putting an "@" before the function calls that give you errors. you want to avoid doing that, I recommend properly handling the error. ?php $x = @php_function_here(); ? This suppresses the error function. Many

RE: [PHP] Two things

2001-01-17 Thread Benjamin Munoz
Did you mean this? ?php $i = 0 $colors = array('#ff','#0'); ? -Ben -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 11:52 AM To: Phil Labonte Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Two things When I get a list of items

Re: [PHP] how do i hide my .inc files in apache??

2001-01-17 Thread Alex Black
move them out of your apache docroot. /usr/local/apache/htdocs/blah.php includes /usr/local/apache/include/hoo.inc _a -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St

[PHP] determine number of days, hours minutes between 2 dates

2001-01-17 Thread jeremyf10
The subject pretty much explains it all. I have 2 dates (MMDDHHSS format) and want to determine the number of days, hours, minutes and seconds left from the later date to the earlier date. I figure I could do all this using date arithmatic, divide by 60 seconds in a minute, 60 minutes in an

RE: [PHP] how do i hide my .inc files in apache??

2001-01-17 Thread Jon Niola
I could be mistaken here, but last I checked you could include files outside of the document root. Can't get much more secure then that and you don't have to mess with the Apache rewrite engine, which is known for slowing things down. --Jon At 02:02 PM 1/17/01 +, Matt Williams wrote:

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
this page sho you in how to retriev table info (like space used) from a mysql table using myisamchk... Give it a look! http://www.mysql.com/doc/T/a/Table-info.html The trick would be create a virtual table by join and use this command to mesure the amount of memory beeing used by each user..

Re: [PHP] 4.0.4pl1 still reports version as 4.0.3pl1

2001-01-17 Thread Phil Driscoll
I had 4.0.3pl1 running on a Windows98 system. After I upgraded to 4.0.4pl1, calling phpinfo() still reports the version as being 4.0.3pl1. I deleted the original c:/php/ directory completely before installing the newer version, so I don't *think* i left behind any old files. The php4ts.dll

[PHP] Search Engine submittal and PHP

2001-01-17 Thread Shane McBride
I have a site that uses PHP extensively. Each page has PHP, so of course each page ends in the .php extension. Does anyone know if this affects the way a search engine crawls a site? I have several sites that are very successful, but this site does not even show up on the search engines. All

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Teodor Cimpoesu
Hi Philip! On Wed, 17 Jan 2001, Philip Olson wrote: Short open tags won't work with xml. Therefore they won't work with xhtml. They conflict with where the Web is going. Aha! Yet another reason not to use ?= :-) you can always use % and %= instead. No XML problems, and you may

[PHP] PHP Win32 and *NIX

2001-01-17 Thread Marc Clerc
Is there a difference in the way PHP parses scripts in various operating systems? I've gotten opinions that say PHP under Linux parses more/different code than does under Windows NT. Thanks -Marc

RE: [PHP] Sessions/security

2001-01-17 Thread Boget, Chris
Try looking at register_shutdown_function at http://www.php.net/manual/en/function.register-shutdown-function.php From the documentation: "int register_shutdown_function (string func) Registers the function named by func to be executed when script processing is complete." What qualifies as

[PHP] Session and Cookies

2001-01-17 Thread Hendry Sumilo
Dear everyone Can someone tell me how to use Session Object because when the user login the page I want to store the login,pass,and type_login so that I can pass this throughout the process. I found that i can store that by using cookies ,but the problem ,some computer can't store cookies,and

  1   2   3   >