RE: [PHP] still running the old version after recompiling??

2002-06-03 Thread savaidis
I forgot to write I run on a win98, so no shell :) So what? Makis -Original Message- From: Evan Nemerson [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 1:52 AM To: savaidis; [EMAIL PROTECTED] Subject: Re: [PHP] still running the old version after recompiling?? Do echo

[PHP] process php script at regular intervals

2002-06-03 Thread daniel cozzolino
I want to have a php script processed on a daily (eg 9am) interval. is there some way to automate this from within the script or do i need to schedule this with an external app? has anyone had any experience with this previously? thanks Daniel -- PHP General Mailing List

Re: [PHP] process php script at regular intervals

2002-06-03 Thread Justin French
it needs to be scheduled. - on *nix, a cron job will do it - on mac, a program like iDo Script Scheduler (combined with a simple applwscript) will do it - on windows, i believe there are tools to do this, but not sure what they are alternatively, i set up a HTML page as my 'start' page on IE,

Re: [PHP] process php script at regular intervals

2002-06-03 Thread Michael Hall
One way of doing this is to set up a cronjob that has Lynx call the script. There is a flag that is usually added as well ... I'm not sure right now but it could be '-dump': lynx -dump http://your/script/url.php This has been covered a few times in the archive if you want to check the details

Re: [PHP] still running the old version after recompiling??

2002-06-03 Thread Jason Wong
On Monday 03 June 2002 12:31, savaidis wrote: I forgot to write I run on a win98, so no shell :) So what? The equivalent in Win98 is to open an MS-DOS prompt and type: pathENTER -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

[PHP] cron: No such file or directory

2002-06-03 Thread Edgard Berendsen
I'm trying to do a cronjob. If I'm right I should have a php file with #!/usr/lib/php -q at the beginning and a cronjob like MAILTO=[EMAIL PROTECTED] 0 * * * * /usr/lib/php/ $HOME/myfile.php whereis php tells me: php: /usr/lib/php /usr/include/php What's wrong? At the beginning when I tried

[PHP] echoing two varibles(newbie)

2002-06-03 Thread webmaster
How can I echo(or include) two variables? ie include $DOCUMENT_ROOT then $row['location'] Thanks in Advance JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] still running the old version after recompiling??

2002-06-03 Thread savaidis
There is not in PATH the directory name (Php or php) Neither something related to Apache. Makis -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 10:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] still running the old version after

[PHP] Re: echoing two varibles(newbie)

2002-06-03 Thread Jason Teagle
[EMAIL PROTECTED] wrote in message 001301c20ad8$5539f2f0$67b8fea9@JohnH">news:001301c20ad8$5539f2f0$67b8fea9@JohnH... How can I echo(or include) two variables? ie include $DOCUMENT_ROOT then $row['location'] Simply refer to them within double quotes as if they were words: echo This is

[PHP] Re: newbie help please

2002-06-03 Thread Jason Teagle
Christopher J. Crane [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $Tags['issue-name']. So I could print it out. Something like, print $Tags['issue-name']br\n; I was able to get a numerical representation of the array like, $Tags[5] and the value of that

[PHP] Re: 'Pure' php vs 'mixed' (html + php)

2002-06-03 Thread Jason Teagle
Andre Dubuc [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've noticed that many people on the list code in 'pure' php, i.e. I would like to understand the reasons for writing code in this manner, when all my code works fine, displays great: am I missing

[PHP] php_mssql.dll extension problem

2002-06-03 Thread Todor Stoyanov
Hi, I'm trying to load the php_mssql.dll extension and always get this error: PHP Warning: Unable to load dynamic library 'C:\PHP\extensions\php_mssql.dll' - The specified procedure could not be found. in Unknown on line 0. Any ideas?? Thanks Todor -- PHP General Mailing List

Re: [PHP] cron: No such file or directory

2002-06-03 Thread Marek Kilimajer
Cron doesn't have the same enviroment like normal shell, so it knows nothing about $HOME, you need to use full path. Edgard Berendsen wrote: I'm trying to do a cronjob. If I'm right I should have a php file with #!/usr/lib/php -q at the beginning and a cronjob like MAILTO=[EMAIL PROTECTED] 0

[PHP] Error handling

2002-06-03 Thread Alia Mikati
Hi everybody, I hope u can help me with this. This file should give me an error msg that there is time-out coz of the loop. But it's not giving me anything. What could be the problem? Thx a lot ?php $str = (0,0); // redefine the user error constants - PHP 4 only define (FATAL,E_USER_ERROR);

Re: [PHP] cron: No such file or directory

2002-06-03 Thread mike
Actually, /usr/lib/php is a directory most likely. You need to make sure you compiled the binary at compile time, and then (on Linux) it would be installed to /usr/local/bin/php. Thanks, - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Monday,

[PHP] remembering variables between many forms.

2002-06-03 Thread Denis L. Menezes
Hello friends. Pls excuse me if this is too simple a question. I have a mysql database running with PHG scripts for member registration, find members etc which is running well. Now I want to make a system to send the username and passwords to members if they have lost them. the way I am doing

Re: [PHP] remembering variables between many forms.

2002-06-03 Thread Jason Wong
On Monday 03 June 2002 19:33, Denis L. Menezes wrote: Pls excuse me if this is too simple a question. I have a mysql database running with PHG scripts for member registration, find members etc which is running well. Now I want to make a system to send the username and passwords to members

[PHP] Writing IPTC tags

2002-06-03 Thread Dirk Bonenkamp - Bean IT
Hi all, Just wanted to know if it's possible to write iptc tags with php, and, if so, how? I can read them trough getimagesize(). TIA, Dirk Bean IT T: +31 (0)23 - 5422299 F: +31 (0)23 - 5422728 W: http://www.bean-it.nl -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] problem with compiling php-4.2.1 on solaris 2.7

2002-06-03 Thread Moussa Dahadha
Hi All , I am having some problems with compiling the latest version of the source code on a solaris box The initial configure runs fine but when I go for the make this is what happens. make Making all in Zend make[1]: Entering directory `/root/php-4.2.1/Zend' make[1]: Nothing to be

[PHP] PHP Hex Numbers

2002-06-03 Thread Jonathan Rosenberg
I would think that if $a were a number that echo $a; and printf('%d', $a); would produce the same output. Is this correct? Either I'm missing something, or PHP gets very confused when dealing with some numbers. For example, the following program ? $result =

[PHP] RE: Nothing will execute after calling imagejpeg.

2002-06-03 Thread Leotta, Natalie (NCI/IMS)
You can't use echo or print in your image - you have to use ImageTTFText or ImageString or any other Image function. If you go to PHP.net and search the Image functions you should be able to find some helpful things that you can use. You also have to initialize your colors with

[PHP] Re: PHP Hex Numbers

2002-06-03 Thread Jason Teagle
Jonathan Rosenberg [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... would produce the same output. Is this correct? Theoretically... Either I'm missing something, or PHP gets very confused when dealing with some numbers. For example, the following program

php-general Digest 3 Jun 2002 13:27:18 -0000 Issue 1383

2002-06-03 Thread php-general-digest-help
php-general Digest 3 Jun 2002 13:27:18 - Issue 1383 Topics (messages 100356 through 100392): Newbie Question - InstallShield PHP Installation with PWS 100356 by: Jesse Segovia Re: 'Pure' php vs 'mixed' (html + php) 100357 by: Bogdan Stancescu 100358 by: Michael

Re: [PHP] simple email validation ereg

2002-06-03 Thread Alexander Skwar
So sprach Jason Wong am 2002-06-03 um 12:10:29 +0800 : The lack of an MX record doesn't necessarily mean mail will not get through, so you cannot use that as a test for whether the address is valid. It will not? Do you have an example? How is a mail server supposed to know where the mail

[PHP] Re: 'Pure' php vs 'mixed' (html + php)

2002-06-03 Thread Jason Teagle
Imagine you have a page where, if a password passed from another page is correct, you want to show some data on the Web page, but if the password is incorrect you want to show a warning and under no circumstances let them see the data. If you used mixed, they could simply read the source of

RE: [PHP] Re: PHP Hex Numbers

2002-06-03 Thread Jonathan Rosenberg
-Original Message- From: Jason Teagle [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 9:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP Hex Numbers When doing arithmetic in code, you should always be prepared to handle signed and unsigned. Thanks for the reply. I

Re: [PHP] Re: PHP Hex Numbers

2002-06-03 Thread Jason Teagle
- Original Message - From: Jonathan Rosenberg [EMAIL PROTECTED] To: Jason Teagle [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 03, 2002 3:18 PM Subject: RE: [PHP] Re: PHP Hex Numbers When doing arithmetic in code, you should always be prepared to handle signed and

[PHP] building php --with-imap problems

2002-06-03 Thread andy
Hi there, I am new to imap and I am trying to build php with imap. Therfore I have to figure out how to install the c-library from the wahington university. the php.net page says this is required. The docu tells me this: 1) Look in imap-2001/Makefile and find your system type code, e.g. slx for

Re: [PHP] 'Pure' php vs 'mixed' (html + php)

2002-06-03 Thread Martín Marqués
On Dom 02 Jun 2002 21:45, David Freeman wrote: I've noticed that many people on the list code in 'pure' php, i.e. ? print input type='text' name='fname' size='50'; // etc ? Personally, it depends on what I'm doing. I find that excessive use of ? And ? in my code gets

Re: [PHP] opendir security hole

2002-06-03 Thread Analysis Solutions
On Thu, May 23, 2002 at 11:23:42AM -0400, Analysis Solutions wrote: On Thu, May 23, 2002 at 11:22:28PM +1000, daniel wrote: dir=../../../../ it will show you the root dir of the server , how can i Before passing the $Dir variable to the file functions, clean it up... $Dir =

Re: [PHP] simple email validation ereg

2002-06-03 Thread Jason Wong
On Monday 03 June 2002 21:35, Alexander Skwar wrote: So sprach Jason Wong am 2002-06-03 um 12:10:29 +0800 : The lack of an MX record doesn't necessarily mean mail will not get through, so you cannot use that as a test for whether the address is valid. It will not? Do you have an

[PHP] Probs with MIME multipart/alternative generated with PEAR mime.php

2002-06-03 Thread mike
Hi, I just don't know enough about MIME encoded email to figure this problem out. I'm using a PHP script (mime.php from the Pear library) to automate the sending of an HTML newsletter to my subscribers. The email the script dishes out has mixed results. Some of my users have the email

[PHP] Re: No such file or directory

2002-06-03 Thread Edgard Berendsen
I have a web-hosting and they gave me ssh2 acces. There I can run lynux commands with no problems. I don't find php.exe for exectuting the script. Can I upload a php.exe to the server and run it without any other file from php? What can I do? Edgard Berendsen [EMAIL PROTECTED] wrote in

Re: [PHP] Probs with MIME multipart/alternative generated with PEAR mime.php

2002-06-03 Thread Henry
i've been doing a bit of mime lately. not with pear but with my own scripts. just a suggestion - does it matter that you have the From below the Mime-Version? and also allowed another CRLF after the first boundary. those CRLF's are a killer! btw - i find outlook some help because it bolds the

[PHP] converting www's to links in text fields...

2002-06-03 Thread Duncan
Hi there, i am currently going nuts, because i want to parse a string, so that any www. and http://; becomes a real link. I think i kept thinking about this way too long, so that i ended up with quite a huge function. Is there any easy way to get all the www. and http:// links from a string?

[PHP] php4win.com

2002-06-03 Thread Michael Davey
I originally posted this to the PHP-WIN list but there doesn't seem to be anyone there... maybe you guys can help? Does anyone know what has happened to the php4win.com web-site? I have been trying to get there now for the best part of a month and still get site errors. regards, Mikey --

[PHP] Are we getting spammed?

2002-06-03 Thread Chuck \PUP\ Payne
I just got something call ise-news, and the bottom it saying it mail from -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Are getting spammed? Or it this for real? This is from the e-mail. --=_f74fc4c7192d1983b9f144709175f8eb

Re: [PHP] php to generate statiscs

2002-06-03 Thread Rodrigo Peres
Does anybody knows the link to this article or other that treats something like this. I couldn;t find it in devshed. Rodrigo on 6/2/02 3:57 PM, John Holmes at [EMAIL PROTECTED] wrote: Look into cross-tab queries (I think that's what they are called). There is a good article on Devshed.com

[PHP] delete file contents before writing?

2002-06-03 Thread Jas
Not sure how I could do this as I could not find a functions on php.net to allow me to first delete the entire contents of a file before writting the changes supplied by a textarea. Here is what I have thus far: Page one - Form: ?php $file_name = 'blank.php'; $open_file = fopen($file_name,rw);

Re: [PHP] converting www's to links in text fields...

2002-06-03 Thread Analysis Solutions
i am currently going nuts, because i want to parse a string, so that any www. and http://; becomes a real link. Perhaps your insanity has kept you from learning about Google's newsgroup archives? The PHP general list is at http://groups.google.com/groups?hl=ensafe=offgroup=php.general

Re: [PHP] delete file contents before writing?

2002-06-03 Thread Jason Wong
On Monday 03 June 2002 23:37, Jas wrote: Not sure how I could do this as I could not find a functions on php.net to allow me to first delete the entire contents of a file before writting the changes supplied by a textarea. Here is what I have thus far: [snip] As of right now it opens the

[PHP] Re: delete file contents before writing?

2002-06-03 Thread Peter
$file_open = fopen($file_name, w); this will empty the existing file contents then write to the file Jas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Not sure how I could do this as I could not find a functions on php.net to allow me to first delete the

RE: [PHP] delete file contents before writing?

2002-06-03 Thread Naintara Jain
If you really want to delete the file contents then open the file in write-only mode, like so: $open_file = fopen($file_name,w); -Naintara -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] t]On Behalf Of Jas Sent: Monday, June 03, 2002 8:37 AM To: [EMAIL PROTECTED]

[PHP] php.ini question

2002-06-03 Thread Taylor Lewick
When setting doc_root in the php.ini section, should that be the cgi-bin directory, or the doc-root of the webserver, i.e. htdocs..? Thanks, Taylor Taylor Lewick Unix System Administrator Fortis Benefits 816 881 6073 Help Wanted. Seeking Telepath... You Know where to apply.

[PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
According to the CHM manual: Sometimes it is useful to refer to functions and variables in base classes or to refer to functions in classes that have not yet any instances.: Using parent::foo() works fine but I am having problems getting the variable part of this to work. For Example: class A

[PHP] CHM Form Of PHP Manual? (Was: [PHP] Question regarding :: syntax)

2002-06-03 Thread Jason Teagle
- Original Message - From: Jared Boelens [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, June 03, 2002 5:06 PM Subject: [PHP] Question regarding :: syntax According to the CHM manual: There's a CHM form of a PHP manual? * bounce, bounce *Where could I get it from?

Re: [PHP] changed behavior of shutdown-registered function in 4.0.x-4.1.x (conn. handling)

2002-06-03 Thread Tamas Arpad
Hi again, Joseph answered this on the dev list (http://lists.php.net/article.php?group=php.devarticle=84800), thanks. Arpi On Monday 03 June 2002 17:57, you wrote: Hi, I use register_shutdown_function to regenerate my content-cache's data after the old page were sent. In 4.0.6

RE: [PHP] php to generate statiscs

2002-06-03 Thread John Holmes
First article under MySQL... http://www.devshed.com/Server_Side/MySQL/MySQLWiz/page1.html ---John Holmes... -Original Message- From: Rodrigo Peres [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 11:34 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] php to generate statiscs

RE: [PHP] CHM Form Of PHP Manual? (Was: [PHP] Question regarding :: syntax)

2002-06-03 Thread Jared Boelens
The CHM version of the help file can be downloaded here: http://www.php.net/download-docs.php -Jared -Original Message- From: Jason Teagle [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 12:16 PM To: php list Subject: [PHP] CHM Form Of PHP Manual? (Was: [PHP] Question regarding

RE: [PHP] Code dilema -- '.NULL.' or '.NULL.' or ...

2002-06-03 Thread John Holmes
// Add together proper fields to enter birth date $fecha_nac = $ano_nac + - + $mes_nac + - + $dia_nac; That's not the correct way to join strings. Use . instead of + // Open mysql db mysql_select_db(intertur); // SQL query insert all data into a table $query = insert into

[PHP] delete file contents before writing?

2002-06-03 Thread Jas
Not sure how I could do this as I could not find a functions on php.net to allow me to first delete the entire contents of a file before writting the changes supplied by a textarea. Here is what I have thus far: Page one - Form: ?php $file_name = 'blank.php'; $open_file = fopen($file_name,rw);

Re: [PHP] delete file contents before writing?

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 11:37, Jas wrote: Not sure how I could do this as I could not find a functions on php.net to allow me to first delete the entire contents of a file before writting the changes supplied by a textarea. Here is what I have thus far: Just fopen a file with the 'w' mode when

Re: [PHP] Question regarding :: syntax

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 12:06, Jared Boelens wrote: Is there not a way to refer directly to the parent properties? Or do i have to setup a get function for every parent var that I want to access. Tis my understanding that you cannot refer to class properties without an instance of the class.

Re: [PHP] echoing two varibles(newbie)

2002-06-03 Thread Jim lucas
string concat something like this require(contant.$variable.string); Jim Lucas - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 03, 2002 1:26 AM Subject: [PHP] echoing two varibles(newbie) How can I echo(or include) two variables?

Re: [PHP] CHM Form Of PHP Manual? (Was: [PHP] Question regarding :: syntax)

2002-06-03 Thread Jason Teagle
- Original Message - From: Jared Boelens [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, June 03, 2002 5:20 PM Subject: RE: [PHP] CHM Form Of PHP Manual? (Was: [PHP] Question regarding :: syntax) The CHM version of the help file can be downloaded here:

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
So am i to understand that i will have to do it in this manner? class A { var $b; A() { } function getB() { return $this-B; } function setB($b) { $this-B = $b; } } class B extends A { B($b) {

[PHP] Include and memory

2002-06-03 Thread Paulo Cesar
Hi people... I'd like to know if the include function alocates the variables that are in the included file in the memory... and, if it happens, if do I have a way to access a file with some variables without alocating it in memory. Tks... Paulo Cesar

Re: Re[2]: [PHP] A small question - Mysql_insert_id

2002-06-03 Thread Jim lucas
and you want people to actually ready your books after talking to customers like that. I should burn your book. I thought you were a helping person. If someone has a question and it is obvious that they have no clue about what they are talking about. shouldn't you walk them through it instead

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 12:45, Jared Boelens wrote: So am i to understand that i will have to do it in this manner? *SNIP* No no no... B extends A, and you have an instance of B. Just do this: class A { var $b; *snip* } class B { function B($b) {

[PHP] Re: 'Pure' php vs 'mixed' (html + php)

2002-06-03 Thread Steve Clay
Sunday, June 02, 2002, 7:55:09 PM, Andre wrote: AD I've been wondering why code in 'pure' php? Is there some compelling reason AD (that I'm unaware of) for doing so? Should I rewrite all my earlier code into Andre, Sorry to chime in so late, but IMO, be more concerned with saving output

[PHP] Re: Speed comparison of PHP vs. PERL (not conclusive)

2002-06-03 Thread Jerry
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Daniel Grace) wrote: Comments? I was expecting the numbers to be very similiar -- rather shocked that the PERL ended up being about 2.5x as fast as PHP was. As Rasmus says, one of the things Perl was designed for was speed. The Perl designers

Re: [PHP] Re: 'Pure' php vs 'mixed' (html + php)

2002-06-03 Thread Andre Dubuc
On Monday 03 June 2002 01:00 pm, you wrote: Sunday, June 02, 2002, 7:55:09 PM, Andre wrote: AD I've been wondering why code in 'pure' php? Is there some compelling reason AD (that I'm unaware of) for doing so? Should I rewrite all my earlier code into Andre, Sorry to chime in so

[PHP] Previous Next Navigation

2002-06-03 Thread Jay Blanchard
Howdy! I am working on a project where approximately 3k - 5k records are returned and need to be displayed 30 per page with 'previous' and 'next' navigation at the request of the users. Does anyone know of an efficient script that will do this in PHP (with MySQL) that will not query the database

[PHP] RegEx problems...

2002-06-03 Thread Jas
This is baffling me, I have a form on one page that opens a php file in a text area for editing. In order to view the contents of the file in the text area I had to setup a eregi_replace(,a) string. When I save the changes back to the text file I setup a reverse string i.e. [ eregi_replace(a,)

[PHP] OT - php/mysql/cron

2002-06-03 Thread Kelly Meeks
Any way to use cron to automate the mysqldumping of databases on a nighly basis? Any examples would be greatly appreciated. TIA, Kelly

Re: [PHP] RegEx problems...

2002-06-03 Thread Analysis Solutions
On Mon, Jun 03, 2002 at 11:15:15AM -0600, Jas wrote: In order to view the contents of the file in the text area I had to setup a eregi_replace(,a) string. 's are not legal in HTML. You need to escape them. When pulling stuff out of the file, use htmlspecialchars() before displaying the

Re: [PHP] OT - php/mysql/cron

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 13:18, Kelly Meeks wrote: Any way to use cron to automate the mysqldumping of databases on a nighly basis? Any examples would be greatly appreciated. This line's gonna wrap, but it all goes on the same line :P 0 0 * * * /usr/local/bin/mysqldump -u username

Re: [PHP] Include and memory

2002-06-03 Thread Analysis Solutions
On Mon, Jun 03, 2002 at 01:49:03PM -0300, Paulo Cesar wrote: I'd like to know if the include function alocates the variables that are in the included file in the memory... and, if it happens, if do I have a way to access a file with some variables without alocating it in memory. Dude, turn

Re: [PHP] Include and memory

2002-06-03 Thread Kevin Stone
No offense but what you just said made absolutely no sense. There is no way to perform an operation on a computer without allocating memory for that operation. Unlike other lower level prgramming languages (ie. C/C++) PHP automatically allocates the necessary amount of memory for whatever

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
This may be a dumb question but, how can you be sure that the $this- is referring to the parent classes' property and not the current class. On that note, does it really matter of which one it refers? -Jared -Original Message- From: Tobyn Baugher [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] OT - php/mysql/cron

2002-06-03 Thread James E. Hicks III
Here's a little tweak to gzip the backup results. I put this into another script that gets called by crontab. Are my DB userid and password still visible when run this way? I'm never here to see it run, because it happens late at night. /usr/bin/mysqldump --user=DBUSER --password=DBPASSWORD

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Tobyn Baugher
On Mon, 2002-06-03 at 13:42, Jared Boelens wrote: This may be a dumb question but, how can you be sure that the $this- is referring to the parent classes' property and not the current class. On that note, does it really matter of which one it refers? B inherits $b from A. $this-b and

RE: [PHP] Question regarding :: syntax

2002-06-03 Thread Jared Boelens
That is exactly what I thought, I was just looking for some reassurance. I have been working with C# lately and the syntax for classes is a lot more explicit. I wanted to make sure I wasn't making a mistake on what PHP implcitly does. Thanks -Jared -Original Message- From: Tobyn

[PHP] Re: Previous Next Navigation

2002-06-03 Thread Philip Hallstrom
look on phpbuilder.com and/or zend.com... I've seen articles on this very subject. On Mon, 3 Jun 2002, Jay Blanchard wrote: Howdy! I am working on a project where approximately 3k - 5k records are returned and need to be displayed 30 per page with 'previous' and 'next' navigation at the

Re: [PHP] OT - php/mysql/cron

2002-06-03 Thread Steve Werby
Tobyn Baugher [EMAIL PROTECTED] wrote: This line's gonna wrap, but it all goes on the same line :P 0 0 * * * /usr/local/bin/mysqldump -u username --password=password database outputfile Obviously replace username, password, database, and outputfile with the values you want to use for

Re: [PHP] Probs with MIME multipart/alternative generated with PEAR mime.php

2002-06-03 Thread mike
Henry, Thanks for the reply. I tryed tweaking the pearMime.php class to handle correctly with no luck. As a temporary solution, I didtched the Mime.php class and just simpley added my own headers. $hdrs = array( 'MIME-Version' = 1.0, 'From' =

Re: Re[2]: [PHP] A small question - Mysql_insert_id

2002-06-03 Thread Philip Olson
Jim- Please don't post such useless garbage to the lists. The thread was dead, mistakes were made, time to move on. We all make mistakes from time to time (frustration), and can only learn from them. Draft folders are good. Regards, Philip Olson and you want people to actually ready

Re: [PHP] Previous Next Navigation

2002-06-03 Thread 1LT John W. Holmes
So you think it's more efficient and faster to load a 3 - 5 thousand row table into an array in memory and pass that around to all of your scripts (through sessions?), rather than just passing a $page variable and doing a query to return 30 rows on each page?? If you pass a $Page variable, you

RE: [PHP] Previous Next Navigation

2002-06-03 Thread Jay Blanchard
[snip] So you think it's more efficient and faster to load a 3 - 5 thousand row table into an array in memory and pass that around to all of your scripts (through sessions?), rather than just passing a $page variable and doing a query to return 30 rows on each page?? If you pass a $Page

[PHP] 1 session, 2 subdomains

2002-06-03 Thread Jason Dulberg
I am working on a sports website that will have a subdomain for each major sport. There is a login panel on the main domain that routes users to the appropriate subdomain depending on the sport that they are in. Everything seems to be ok with cookies (cookiedomain=.domain.tld) but I can't get it

Re: [PHP] Previous Next Navigation

2002-06-03 Thread 1LT John W. Holmes
Okay...glad to see someone put some thought into it instead of just wanting to do it because queries are bad!. Also, the speed of the query doesn't depend on the connection speed at all. So, to solve your problem, load it into a session array. session_start(); $result = mysql_query(...);

Re: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Thalis A. Kalfigopoulos
On Mon, 3 Jun 2002, Jason Dulberg wrote: I am working on a sports website that will have a subdomain for each major sport. There is a login panel on the main domain that routes users to the appropriate subdomain depending on the sport that they are in. Everything seems to be ok with cookies

[PHP] zlib double free bug and php question.

2002-06-03 Thread Lenny Miceli
I've tried to search the archives/bug reports/faq's and didn't find any definitive answers on the zlib Double Free Bug CERT's Advisory CA-2002-07 issue. Even though I didn't compile php with the --with-zlib option when I run strings against the php library I still see zlib information. For

RE: [PHP] Previous Next Navigation

2002-06-03 Thread Jason Soza
I don't know if it's possible (or faster, or more efficient), but could you query your millions of records for those 3k - 5k, insert them into a temp table, then do your LIMIT queries on that table for your prev/next pages? Just an idea! Jason Soza Juneau, Alaska - Original Message

RE: [PHP] Previous Next Navigation

2002-06-03 Thread Jay Blanchard
[snip] Okay...glad to see someone put some thought into it instead of just wanting to do it because queries are bad!. Also, the speed of the query doesn't depend on the connection speed at all. [/snip] I know...in this case it is just the number of records that are needed vs. the number of

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Jason Dulberg
The subdomain's are all on the same server and all have their docroot set to the same directory. I'm mainly using subdomains as a way to keep the site organized and to have different graphics based on their sport location. So if I pass to the next subdomain, do I just use session_start() if the

Re[2]: [PHP] opendir security hole

2002-06-03 Thread Stuart Dallas
On Monday, June 3, 2002 at 3:37:48 PM, you wrote: $dir = preg_replace('/\.\.\/?/', '', $dir); Surely a regular expression is overkill for this? It would be more efficient to use str_replace()... $dir = str_replace('..', '', $dir); -- Stuart -- PHP General Mailing List

Re: [PHP] delete file contents before writing?

2002-06-03 Thread hugh danaher
Try unlink($file_name) then fopen($file_name,rw) unlink() deletes the whole file from the directory. Hope this helps. Hugh - Original Message - From: Jas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 03, 2002 8:37 AM Subject: [PHP] delete file contents before writing? Not

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Thalis A. Kalfigopoulos
On Mon, 3 Jun 2002, Jason Dulberg wrote: The subdomain's are all on the same server and all have their docroot set to the same directory. I'm mainly using subdomains as a way to keep the site organized and to have different graphics based on their sport location. So if I pass to the next

Re: [PHP] delete file contents before writing?

2002-06-03 Thread hugh danaher
My mistake: Try unlink() then touch() not fopen(). Hugh - Original Message - From: hugh danaher [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Monday, June 03, 2002 12:43 PM Subject: Re: [PHP] delete file contents before writing? Try unlink($file_name) then fopen($file_name,rw)

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Cal Evans
Store your session information in a database. Assign it an ID and send that ID to the cookie or the URL in the new domain. Then you can write a session handler that retrieves the session info form the database. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com *

Re: [PHP] opendir security hole

2002-06-03 Thread Analysis Solutions
On Mon, Jun 03, 2002 at 08:41:37PM +0100, Stuart Dallas wrote: Surely a regular expression is overkill for this? It would be more efficient to use str_replace()... $dir = str_replace('..', '', $dir); Sure. But you'd need to do two replaces. First for '../' then for '..' Not a big deal.

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Jason Dulberg
I am currently storing the session hash/login info (userid, session hash, host, etc.) in the db and send it to the next domain in the redireted URL. How would the handler work if no session info isn't being passed to the subdomain? Thanks! Jason From: Cal Evans [mailto:[EMAIL PROTECTED]]

[PHP] PHP-Windows2000 Server-Apache/Tomcat

2002-06-03 Thread Rick Kalifa
Help! I'm having trouble getting the PHP module installed on the Apache/Tomcat installation. I've set it up as a service. The documentation mentions editing the httpd.conf file but I cannot find that file with this installation. The only thing that I can find to configure the server is the

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Cal Evans
Actually, if you are doing this then just re-login the person once they get to the new domain. Then you have the login and the session. PHP has the capability to allow you to replace the session handler. If you have to have them login in one domain and then use the info in another, building

[PHP] Re: php.ini question

2002-06-03 Thread Andy
document root is where your webserver gets his files from. Default on Apache is htdocs. Hope this helps, Andy http://www.globosapiens.net Global Travellers Network! Taylor Lewick [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

RE: [PHP] 1 session, 2 subdomains

2002-06-03 Thread Jason Dulberg
There should be session info to pass though, its just not getting through to the subdomain from the main one. The login script (on the main domain) for sessions looks like this: session_register(type,user,pass,userid,user_is_logged_in,sessid) ; then it redirects to the subdomain based on $type

[PHP] keep alive refresh

2002-06-03 Thread Mauro
Hello, I looked for some old questions about my problem in the m.l. archive but I did not find anything. I'm writing a php script which takes a couple of values from the web interface and then passes these values to a program which writes it's output on a file. Then the output of the file is

[PHP] Overriding Class functions and variables

2002-06-03 Thread Jared Boelens
From reading the manual, it is my understanding that one cannot explicitly override parent class functions and/or properties. I found this article stating, You can override any function but it is an implicit override...any function that is overridden in a child is never called in the parent, so

[PHP] changed behavior of shutdown-registered function in 4.0.x-4.1.x (conn. handling)

2002-06-03 Thread Tamas Arpad
Hi, I use register_shutdown_function to regenerate my content-cache's data after the old page were sent. In 4.0.6 there was no problem with it, the connection was closed after the normal script is finished, and before the shutdown_registered function is started (which does the real work). So

  1   2   >