[PHP] Running a script with Crontab

2001-09-30 Thread Carlos Fernando Scheidecker Antunes
Hello All, I wrote an script to do database maintenance and I forgot how to run a script on the command line without opening it with a web browser. My idea is to add a crontab daily entry to run this script. Can anyone enlight me on this thank you very much, C.F. Scheidecker Antunes.

RE: [PHP] Subroutines

2001-09-30 Thread Jack Dempsey
they're just functions function your_function($arg1,$arg2){ echo $arg1; echo $arg2; } -Original Message- From: Chris Herring [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 30, 2001 2:08 AM To: php list Subject: Re: [PHP] Subroutines My bad,

[PHP] The Kewl Script

2001-09-30 Thread Maxim Maletsky \(PHPBeginner.com\)
Hey, The Kewl Script is now v0.1.1 :-) I reduced it's size by double. It is now loading (that very PNG logo) in only 226k instead of 440 as before. (remember those 1.440 of once? Now pathetic). I ported it to use a hybrid of CSS/HTML which slows a bit the browser down but having less size it is

Re: [PHP] The Kewl Script

2001-09-30 Thread Ashley M. Kirchner
Maxim Maletsky (PHPBeginner.com) wrote: I ported it to use a hybrid of CSS/HTML which slows a bit the browser down but having less size it is way better acceptable than before, plus kewl script is now smart enough to choose where to use CSS and where FONT depending on occurrences of that

RE: [PHP] The Kewl Script

2001-09-30 Thread Maxim Maletsky \(PHPBeginner.com\)
You're absolutely right, Ashley. The only browser you can go wild with is IE - which crashes eventually. ;-) If I could reduce the sizes of HTML itself then, and only then, it makes sense working on the compatibilities. With PHP it should not be a problem as managing to find out users setups is

[PHP] session class driving me nuts

2001-09-30 Thread andreas \(@work\)
hi , gallerie.php: --- session_start(); class ABCD { function add_pic($picture,$galerie) { code here } } $artego = new ABCD; $artego-add_pic(Santiego,Humstein); -- line XX . more code

[PHP] problem about ereg function

2001-09-30 Thread mydata
hi, I am using ereg funtion to deal with data submmited by form detail shown below: I am using a form to submit some html code include image path code In submitted php page, I want to replace image path code in html code (submitted by last page' form), unfortunately the image path code include

[PHP] php_admin_flag safe_mode off

2001-09-30 Thread Richard Kurth
Way will this Command not work in the httpd.conf file I have safe mode turned on in the php.ini file but I what it off in one of my sites so I added php_admin_flag safe_mode off to the virtualhost that I want it off in like below VirtualHost other stuff php_admin_flag safe_mode off

Re: [PHP] Re: Search all in mysql

2001-09-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Mark Charette) wrote: Actually, if you want to return all, just drop the where clause completely. but thet you have to check the input: normally you would have: select blah from table where field like '%something%' if nothing if selected you just insert a % on

[PHP] Re: PHPEd

2001-09-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Kath) wrote: Is it worth picking up the retail NuSphere copy of PHPEd? I'm using the 1.75 Alpha now and enjoy it a lot over what I was using prior (Dreamweaver). Only peeve is what seems like a memory leak (PHPEd will crash after a bit of very minor web

[PHP] Re: Running a script with Crontab

2001-09-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Carlos Fernando Scheidecker Antunes) wrote: Hello All, I wrote an script to do database maintenance and I forgot how to run a script on the command line without opening it with a web browser. My idea is to add a crontab daily entry to run this script. Can

[PHP] Mail function

2001-09-30 Thread P.Agenbag
Hi, I'm not sure this is the right list to post this, and i'm not even sure if there is already a solution to this problem, in which case, sorry... Ok, my problem: PHP has (as you all know) a mail() function which is very handy to send mail to people. Now, with the advent and subsequent ease of

Re: [PHP] screen resolution

2001-09-30 Thread Rouvas Stathis
Search the archives for the following e-mail : Subject: RE: [PHP3] Checking screen resolution and/or window size Date: Wed, 23 Feb 2000 09:54:05 -0500 From: "Michael Geier" [EMAIL PROTECTED] I think this will cover your questions. -Stathis. Nikola Veber wrote: Hi ! I would like to

[PHP] Re: mysql_fetch_array() doesn't work

2001-09-30 Thread Web user
Hello, First, Thank you all for your help! I finally found the reason for why does the IE always show info as below: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\web\site1\list.php on line --[the number of line]

[PHP] Re: mysql_fetch_array() doesn't work

2001-09-30 Thread Web user
Hello, First, Thank you all for your help! I finally found the reason for why does the IE always show info as below: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\web\site1\list.php on line --[the number of line]

[PHP] Warning: unexpected regex error (14)

2001-09-30 Thread Big5ive
Hi folks! Warning: unexpected regex error (14) in C:\WINDOWS\Profiles\Flo\My Documents\Projekte\www.big5ive.homeip.net\BBB\control\members_edit.php on line 18 members_edit.php : html head titleMembers verwalten/title /head link rel=stylesheet href=big5ive.css type=text/css body

[PHP] still problem with getting HIGHest and LOWest VALUES

2001-09-30 Thread Teqila MAN
The table has values : id - price 1 - 15 2 - 24000 3 - 65000 4 - 20 When i want to sort it $x = mysql_query("SELECT * FROM $dealer_tabela ORDER BY cena"); while ($row = mysql_fetch_array($x)) { $id=$row["id"]; $price=$row["price"];

[PHP] Re: Warning: unexpected regex error (14)

2001-09-30 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Big5ive) wrote: $list = split(|,$user, 3); echo tr align=lefttd$list[0]/tdtd$list[1]/tdtd$list[2]/td/tr; ? /table /body /html How can i fix this error? Content of members.txt is Big5ive|Admin|24.09.2001 The script

Re: [PHP] still problem with getting HIGHest and LOWest VALUES

2001-09-30 Thread News
I'm not much into PHP, but looking at it from SQL I guess you have defined the price column as a string? Make it an integer...? Marc - Original Message - From: "Teqila MAN" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 30 September 2001 16:22 Subject: [PHP] still problem with getting

[PHP] Re: still problem with getting HIGHest and LOWest VALUES

2001-09-30 Thread Hidulf
try this $x = mysql_query(SELECT * FROM $dealer_tabela ORDER BY cena); $row = mysql_fetch_array($x); natsort($row); print 'id - pricebr /\n'; while (list ($key, $val) = each ($row)) { print $key .' - ' .$val .'br /\n'; } -- Hidulf http://www.hidulf.com Teqila Man [EMAIL PROTECTED] wrote

Odp: [PHP] still problem with getting HIGHest and LOWest VALUES

2001-09-30 Thread Teqila MAN
Yes i have it defined as text so what should i put instead ? - Wiadomo oryginalna - Od: News [EMAIL PROTECTED] Do: [EMAIL PROTECTED] Wysano: 30 wrzenia 2001 16:47 Temat: Re: [PHP] still problem with getting HIGHest and LOWest VALUES I'm not much into PHP, but looking at it from

[PHP] determine the size of picture ?

2001-09-30 Thread Teqila MAN
How to find out what is the size of the picture in pixels ? TM -- 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] Warning: unexpected regex error (14)

2001-09-30 Thread Rasmus Lerdorf
| is a special regex char and you would need to escape it to use it in a literal sense. However, if you are splitting on a simple single char like that, using split() is very inefficient. Use explode() instead, and since explode() doesn't use regular expressions you wouldn't have to escape the

Re: [PHP] determine the size of picture ?

2001-09-30 Thread Rasmus Lerdorf
getimagesize() On Sun, 30 Sep 2001, Teqila MAN wrote: How to find out what is the size of the picture in pixels ? TM -- 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

RE: [PHP] Mail function

2001-09-30 Thread Kurt Lieber
use qmail. php is a powerful language -- and with any powerful language, stupid people can wreak havoc by using it improperly. There are literally dozens of PHP mailing list managers out there that bypass the mail() function and use sockets directly. Perhaps you can recommend those to your

Re: [PHP] Re: PHPEd

2001-09-30 Thread Kath
I'm looking to support the company though and my boss said he would buy software for us. - k - Original Message - From: Henrik Hansen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 30, 2001 6:08 AM Subject: [PHP] Re: PHPEd [EMAIL PROTECTED] (Kath) wrote: Is it

[PHP] Recursion

2001-09-30 Thread Andres Montiel
One of my classes next semester needs me to program using a language that does recurison. I don't really know what this means, though. Can PHP do this? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Making variable global / accessing variable

2001-09-30 Thread Martin
Hello! How can I make a variable, which name I give to a function, global in this function? I want to make something like: function MyFunc($sVarName) {GLOBAL [$sVarName]_error, $sVarName_ok; } So if $sVarName = sHello, I want to access $sHello_error and $sHello_ok in this

[PHP] Running a script with Crontab

2001-09-30 Thread ani
This is what I do, maybe is gonna help you bash file structure: #!/bin/bash ## ## mysql maintenance ## /usr/bin/mysql -u username --password=yourpassword EOF use yourdatabase; YOUR SQL query HERE; exit EOF then chmod +x yourbashfile so cronjob

[PHP] fopen

2001-09-30 Thread Kmarada
is it possible to use fopen to open 5000 files differents simultaneous and edit it simultaneous ? i have one file. if four user edit it simultaneous what happen? there is something to lock the file until one finish to edit? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: fopen

2001-09-30 Thread Martin
Kmarada schrieb: is it possible to use fopen to open 5000 files differents simultaneous and edit it simultaneous ? I think, this depends how many files your operating-system can handle. i have one file. if four user edit it simultaneous what happen? there is something to lock the file

[PHP] Review of PHP-based content management systems? (Nuke, et al)

2001-09-30 Thread Kurt Lieber
Does anyone know of a good, solid review of the top 5 or so PHP-based content management systems? Or, at least which are considered the most popular/widely-used? I'm familiar with PHP-Nuke, but am looking for sites that review/compare other systems as well. --kurt -- PHP General Mailing

RE: [PHP] Review of PHP-based content management systems? (Nuke, et al)

2001-09-30 Thread Navid Yar
Try hotscripts.com. They have rating systems for all kinds of content management systems available. They also give brief descriptions of each and a link to their sites as well. Navid Yar -Original Message- From: Kurt Lieber [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 30, 2001

Re: [PHP] Mail function

2001-09-30 Thread Rasmus Lerdorf
Just configure PHP's sendmail_path directive to be: sendmail -t -i -Odeliverymode=q That means any use of the mail() function will simply stick the message in the outgoing queue. You can then configure sendmail to run periodically to process this queue. Basically: man sendmail -Rasmus

Re: [PHP] Running a script with Crontab

2001-09-30 Thread Jeffrey Paul
At 01:25 PM 9/30/2001, [EMAIL PROTECTED] wrote: This is what I do, maybe is gonna help you bash file structure: #!/bin/bash ## ## mysql maintenance ## /usr/bin/mysql -u username --password=yourpassword EOF use yourdatabase; YOUR SQL query HERE;

[PHP] how many day between the two time format

2001-09-30 Thread yang
i want to check about how many day between the two time format like $last_day=time format; $today=time(); $between_day=?($today-$last_day); echo $between_day is the between day... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] session class driving me nuts

2001-09-30 Thread Joel Ricker
: hi , : : gallerie.php: : : Fatal error: Call to a member function on a non-object in : /home/sites/site76/web/galerie/shop.php on line XX If I'm following you right and the class code you are trying to run is in gallerie.php, then your error is in shop.php. Joel -- PHP General Mailing

Re: [PHP] still problem with getting HIGHest and LOWest VALUES

2001-09-30 Thread Marc van de Geijn
Define the column as an INT or BIGINT. That should solve the problem. - Original Message - From: "Teqila MAN" [EMAIL PROTECTED] To: "News" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 30 September 2001 17:15 Subject: Odp: [PHP] still problem with getting HIGHest and LOWest VALUES Yes i

Re: [PHP] Re: PHPEd

2001-09-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Kath) wrote: I'm looking to support the company though and my boss said he would buy software for us. I would say it's much more stable than the version you have been working with, so should be worth the money. -- Henrik Hansen -- PHP General Mailing List

[PHP] instant session expiration problem

2001-09-30 Thread Ryan Mahoney
When a client date is ahead of my server or incorrect the cookie that php uses to maintain the session is expired immediately by the web browser. This is an incredible pain! I had once come across some document by Rasmus describing this problem but can't seem to find it now. Does anyone

[PHP] Troublesome complex fetching from database

2001-09-30 Thread Kath
Quite an interesting quandry I have. What I have is this: Table schooltypes: (typeid is a unique# iding the type, schooltypes is the type of school, say Elementary School or High School) | typeid | schooltypes | Table schools: (typeid is the type the school falls under, schoolid is the

[PHP] Gain with no pain

2001-09-30 Thread Perfumes2u.com
Hello I've just seen your site and wondered if you would be interested in joining our affiliate scheme, placing one of our banners on your site and earning 10% on all sales as a result of click thru's coming from your site. If your site receives a large number of hits, contact us directly to

[PHP] looping through database results

2001-09-30 Thread Karl Nelson
I'm working on a basic calendar app in PHP, but I've hit a snag. The events are stored in a MySQL database, and the goal is to have the events displayed on the correct day on the calendar. The calendar is generated through a couple of while() statements that loop through the weeks and days.

RE: [PHP] looping through database results

2001-09-30 Thread Jack Dempsey
hi karl just to let you know, i believe there's a good calendar app on php.net before i knew about this though, i wrote my own. some general advice: i often take results from mysql calls and build data structures with the data. then, you always have that data available, and you can loop as many

[PHP] php and java problem

2001-09-30 Thread Nikola Veber
Hi ! I was able to determine the user's screen resolution, but I'd like to let php know that(the next page loaded should be in the right resolution, I'd like to pass a value to php, but I don't know how). Thanx Nikola -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] looping through database results

2001-09-30 Thread Karl Nelson
Thanks for your help, Andrew, but it didn't seem to work. As I read the manual (http://www.php.net/manual/en/function.mysql-fetch-array.php), mysql_fetch_array is much like mysql_fetch_row, except that it uses the field names instead of numbers as the array key. Somebody correct me if I'm

Re: [PHP] lock web page when editing

2001-09-30 Thread Bob
Hey thanks guys I think I've decided on locking it cuz I don't want multiple people to be editing and then having them click save and say sorry all the work you just did can't be used. I'm going to just put a 10 minute limit and have a status like please wait ... bob has been editing for 4:39

RE: [PHP] looping through database results

2001-09-30 Thread Jack Dempsey
Right, fetch-array just adds extra results to fetch-row. Have you tried storing your results in an array that you can then loop over later? -Original Message- From: Karl Nelson [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 30, 2001 6:33 PM To: [EMAIL PROTECTED] Cc: [EMAIL

[PHP] socket_get_status()

2001-09-30 Thread Richard Heyes
Hi, Exactly what does the unread_bytes parameter of the return of socket_get_status() mean? I thought it would be the amount of data waiting to be gotten via fgets() or fread(), but not according to my lil' test (interactive mode): ?php $fp = fsockopen('10.1.1.2', 25);

[PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Armando Cerna
I have a shell script that I am executing like this $files = `shellscript`; but if I do an if ($files) it doesn't read $files as existing. The contents of the shell script is a smbclient line that copies a bunch of DBF files from another machine. Anyone have any idea? Below is a little

Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Armando Cerna
On Sunday 30 September 2001 04:23 pm, Kath wrote: Executing the script could be good :) Try a system(); command. Alas, remember, PHP runs as whatever user apache does, so chances are it has no privledges to run any of these operations as it is www/nobody/apache/daemon/etc. You could sudo

Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Matt Greer
On Sunday 30 September 2001 18:23, Armando Cerna wrote: I have tried system (updatemp) and exec (updatemp) The system() function requires a string as its argument. So you need to write it as system(updatemp); or system($files); Matt -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Running a Shell Script in PHP HELP!

2001-09-30 Thread Armando Cerna
On Sunday 30 September 2001 04:31 pm, Matt Greer wrote: On Sunday 30 September 2001 18:23, Armando Cerna wrote: I have tried system (updatemp) and exec (updatemp) The system() function requires a string as its argument. So you need to write it as system(updatemp); or system($files); Matt

[PHP] Re: how many day between the two time format

2001-09-30 Thread Justin Garrett
If both times are UNIX timestamps $seconds_per_day = 60 * 60 * 24; $dif = $today - $last_day; $days = (int)($dif / $seconds_per_day); -- Justin Garrett Yang [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i want to check about how many day between the two time

[PHP] scrolling news [sort of OT]

2001-09-30 Thread Tyler Longren
Hello all, Does anyone know of any javascript that will display scrolling news? I'd like to manipulate this js code with php so it can display whatever's in the database. Thanks everyone, Tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: Troublesome complex fetching from database

2001-09-30 Thread Justin Garrett
Try the following to organize your results. You'll have to check the table names and typos etc. $sql = SELECT schooltypes.schooltypes, schools.schoolname, teachers.lastname, teachers.tuserid FROM

[PHP] Re: fopen

2001-09-30 Thread Kmarada
I read the manual but i still don't know how to use flock do you have an exemple? flock works on windows2000 ? Martin [EMAIL PROTECTED] escreveu nas notícias de mensagem:[EMAIL PROTECTED] Kmarada schrieb: is it possible to use fopen to open 5000 files differents simultaneous and edit it

[PHP] displaying certain columns

2001-09-30 Thread Melih Onvural
i have a database and it randomly selects one piece of data from a table of quotes, but it will only print the quote when I include the row that it's picked with. I have my SELECT statement at $sql = SELECT $dbrow FROM $dbtable ORDER BY RAND() LIMIT 1; and then to display the result $result =

[PHP] Re: displaying certain columns

2001-09-30 Thread Justin Garrett
$result = mysql_db_query($dname, $sql); $row = mysql_fetch_object($result); echo $row-field_name; -- Justin Garrett Melih Onvural [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i have a database and it randomly selects one piece of data from a table of

[PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Justin Garrett
Maybe something similar to this? function test($td){ $global = global \$$td._error, \$$td._ok;; eval($global); $set = \$$td._error = \ERROR\; \$$td._ok = \OK\;; eval($set); } test(foo); echo $foo_error $foo_ok; -- Justin Garrett Martin [EMAIL PROTECTED] wrote in message

Re: [PHP] displaying certain columns

2001-09-30 Thread Christian Dechery
You have to fetch the row data with some function... try mysql_fetch_row() or mysql_fetch array(), examples: $arr=mysql_fetch_row($result); echo $arr[0]; or $arr=mysql_fetch_array($result); echo $arr[$dbrow]; that should do... At 21:19 30/9/2001 -0400, you wrote: i have a database and it

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Jason G.
I have used: global $$td; in the past with success... -Jason Garber IonZoft.com At 07:38 PM 9/30/2001 -0700, Justin Garrett wrote: Maybe something similar to this? function test($td){ $global = global \$$td._error, \$$td._ok;; eval($global); $set = \$$td._error = \ERROR\;

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Jason G.
function MyFunction($td) { global $$td; echo $$td; // echos 3 $$td = 5; } $billybob = 3; MyFunction(billybob); //Now $billybob = 5 -Jason Garber IonZoft.com At 10:25 PM 9/30/2001 -0400, you wrote: I have used: global $$td; in the past with success... -Jason

[PHP] ***INTRODUCTORY FREE TRIAL OFFER***

2001-09-30 Thread XSINV Sales
***INTRODUCTORY FREE TRIAL OFFER*** XSINV LLC is proud to announce the release of our unique inventory-trading platform. http://www.xsinv.com Available now to all businesses. Do you have: Too much inventory? Too many shortages? Do you: Need to buy? Need to sell? Do you: Need components,

[PHP] ereg

2001-09-30 Thread Matthew Delmarter
How do I use ereg to check for MSIE 5.5 and above. eg: eregi((MSIE.[56]),$HTTP_USER_AGENT) This only gets version 5 and 6 ... but I want 5.5 and above. Any ideas? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] ereg

2001-09-30 Thread ReDucTor
use MSIE:[56|5\..|6\..] something like that, i suck at regular expression :D - Original Message - From: Matthew Delmarter [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Monday, October 01, 2001 1:32 PM Subject: [PHP] ereg How do I use ereg to check for MSIE 5.5 and

[PHP] php_admin_flag safe_mode off

2001-09-30 Thread Richard Kurth
Way will this Command not work in the httpd.conf file I have safe mode turned on in the php.ini file but I what it off in one of my sites so I added php_admin_flag safe_mode off to the virtualhost that I want it off in like below VirtualHost other stuff php_admin_flag safe_mode off

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Justin Garrett
But how would you use this to create new global variables with $td as the prefix? $td = foo; then we want new global variables $foo_error and $foo_ok created. -- Justin Garrett Jason G. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... function MyFunction($td)

[PHP] php graphics generation

2001-09-30 Thread Chip
I have been using php for simple things so far, and am just starting to look into the image generation functions of php. I am wondering just what people use these for in real-life applications, some real references. I know what the books say can be done, I am interested in what is being done