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.
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,
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
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
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
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
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
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
[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
[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
[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
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
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
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]
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]
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
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"];
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
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
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
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
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]
| 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
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
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
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
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
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
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,
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
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
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
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;
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
: 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
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
[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
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
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
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
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.
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
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,
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
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
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
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);
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
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
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
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
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
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
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
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
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 =
$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
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
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
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\;
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
***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,
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
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
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
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)
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
67 matches
Mail list logo