time I checked) was the reason I didn't go with it.
--Joe
Original Message
On 4/9/01, 11:12:39 AM, "Matt Friedman" [EMAIL PROTECTED] wrote regarding Re:
[PHP] Threading code:
Check out: http://www.phorum.org/
We use phorum at: http://www.theparentreport.com
$argv and $argc - also put #!/usr/local/bin/php -q at the top of your script
(above the top ?) and then chmod +x it to run it like a regular script.
--Joe
On Sun, Apr 08, 2001 at 11:13:34PM +0200, NoSpeed wrote:
Hi
I want to write a small application that will change something in databases
I'm on it right now.
--Joe
On Sun, Apr 08, 2001 at 09:02:54PM -0300, Christian Dechery wrote:
Is there anything wrong with www.php.net?
I can't access it for two days now...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web
tr bgcolor="? $cell_color; ?"
--Joe
On Mon, Apr 09, 2001 at 12:08:10AM +, Mike P wrote:
I can change the column sof a table with the following code but how do I
change the row colors instead.With the columns I have "i" to manipulate but
not with rows.
while ($r
www.mysql.com - Documentation - is you know how to insert data using SQL
already then just make the PHP script.
--Joe
On Mon, Apr 09, 2001 at 01:11:57AM +0100, Nathan Roberts wrote:
I am a nebie to Mysql/php and am currently working on an urgent project, a
on-line catalogue. I have been
Worked for me, but I had to make sure that $messagearray was in fact an array.
So wrap that block of code in this:
if(is_array($messagearray) sizeof($messagearray))
{
}
--Joe
On Mon, Apr 09, 2001 at 01:13:00AM +0100, kenny.hibs wrote:
I am getting a parse error in the following line
I think the more important question is:
Why would you want to uninstall it?
;o)
--Joe
On Sun, Apr 08, 2001 at 08:40:57PM -0400, David Loszewski wrote:
how do I tell?
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 8:32 PM
/ td's
echo '/tr';
}
?
On Sun, Apr 08, 2001 at 08:37:26PM -0400, Mike P wrote:
That does not change every other row.
-Original Message-
From: Joe Stump [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 8:11 PM
To: Mike P
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP
No. PHP is totally independent of all DB's...
--Joe
On Sun, Apr 08, 2001 at 08:50:34PM -0400, David Loszewski wrote:
because I uninstalled MySQL, don't you need MySQL to run PHP?
-Original Message-
From: Joe Stump [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 08, 2001 8:38 PM
SELECT * FROM table ORDER BY number LIMIT 1
--Joe
On Sat, Apr 07, 2001 at 05:36:04PM +0100, george wrote:
Is it possible to be able to query the DB find the lowest numebr in the
table and then display it on the page.
TIA
George
--
PHP General Mailing List (http
Something I almost always do when pulling dates from a mySQL table is
format the date column in the query itself using the mySQL function
DATE_FORMAT()...
At 01:13 PM 4/6/01 +0100, Matt Davis wrote:
Hi I am trying to format a date extracted from my DB. I have run my query
and then have used
In your query you have compid specified twice. If this field is named the
same in two seperate tables, preface your fieldnames with the table names...
$sql="SELECT fname, lname, users.compid, status, dept, room, bldg, phone,
ticket_num, tickets.compid, date_rpt, request_type, hardware, model,
This would work ...
?
$arrA = array(1,2,3,4,5,6);
$arrB = array(9,8,7,6,5);
// pick an arbitrary one to start with ...
for($i = 0 ; $i = sizeof($arrB) ; ++$i)
if(!in_array($arrB[$i],$arrA))
$arrA[] = $arrB[$i];
?
--Joe
On Fri, Apr 06, 2001 at 09:19:52AM +0100, Alexis
,$sec) = explode(':',$time);
$foo = mktime($hour,$min,$sec,$month,$day,$year)."\n";
echo date("D j M",$foo);
?
That would work ...
--Joe
On Fri, Apr 06, 2001 at 01:13:59PM +0100, Matt Davis wrote:
Hi I am trying to format a date extracted from my DB. I have run my query
A copy and paste into foo.php and then a php -q foo.php yielded results for
me.
--Joe
On Fri, Apr 06, 2001 at 10:44:59AM -0600, [EMAIL PROTECTED] wrote:
Howdy Y'all!
I'm trying to figure out why I'm having so much difficulty with
nested for loops.
As a test, I did this and it doesn't
You just do something like this:
?
$arr = array(0,23,4,2,1);
for($i = 0 ; $i 10 ; ++$i)
$arrB[] = $arr;
while(list(,$my_array) = each($arrB))
while(list($key,$val) = each($my_array))
echo $key.' - '.$val."\n";
?
Just throw arrays into arrays :O)
--Joe
O
Than why the two different commands?
Simple - some people come from C which uses print ... others come from languages
that use echo. It fosters adaptation by other programmers.
--Joe
Thanks.
-Sterling
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
on a unix system type:
$path = `pwd`;
--Joe
On Thu, Apr 05, 2001 at 04:28:50PM +0800, Paul Juliano wrote:
Hi,
What's the php function to find out what server a php page is located?
For example, the php page is at www.myserver.com. The php page should be able
to display "We
This isn't quite accurate. WHen a form's method is set to "GET" (which BTW
is the form's default method) the variables and their values are passed
along the URL. If your form's method is set to "POST" then nothing should
get passed along on the URL. If you see all your data in the URL,
methods. But in your special browser, they must be reveresed because...
well... er I can't think of any good reason to reverse these in your
special browser...
At 10:10 AM 4/5/01 -0400, Scott Fletcher wrote:
Well, mine does!
Scott
""Joe Sheble (Wizaerd)"" [EM
Can anyone tell me how to get the user apache is running as from php?
If you're on Linux/Unix, try:
echo `whoami`;
Hope this helps,
Joe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
it.
--Joe
On Thu, Apr 05, 2001 at 10:41:10PM +0300, Rouvas Stathis wrote:
I wouldn't worry about that. Although it all depends by what do you mean
by "speed":-)
Anyway, you can always test your page with "ab" (part of the Apache
installation, at least on Linux)
-Stathis.
let me be more clear about the microtime() - do something like:
?
$start = microtime();
while(list($key,$val) = each($array))
{
// do something
}
$end = microtime();
echo "It took ".($end - $start)." microseconds do loop through the array.\n";
?
--Joe
Actually no need for that if you use backticks. See
http://www.php.net/manual/en/html/language.operators.execution.html#language
.operators.execution
Joe
- Original Message -
From: "Johnson, Kirk" [EMAIL PROTECTED]
To: "PHP User Group" [EMAIL PROTECTED]
Sent: Thursda
applications)
http://sourceforge.net/projects/publishtron
We just released it open source ... it's hackers only right now, but someone is
working on making it all pretty and easy to install.
--Joe
On Thu, Apr 05, 2001 at 05:17:51PM -0400, ..s.c.o.t.t.. [gts] wrote:
do any of you know of any nice
../../../../../../../ - ../n
or
chdir();
--Joe
On Mon, Apr 02, 2001 at 06:44:30PM -0400, Chris Anderson wrote:
I know using ../ in a path moves to the parent directory. But is there a way to move
back farther
This is how you can do it (just tried it on my news with my news categoryID's)
i'll modify slightly for your purpose with psuedo code ...
SELECT carType,count(carType) FROM cars GROUP BY carType;
--Joe
On Fri, Apr 06, 2001 at 11:28:00AM +1200, YoBro wrote:
Hello,
I have a site that lists
then
// do $numbers[] = str_replace('.','',$arr[0]);
}
}
for($i = 0 ; $i sizeof($numbers) ; ++$i)
echo $numbers[$i]."\n";
?
--Joe
On Thu, Apr 05, 2001 at 04:50:37PM -0700, Andrew V. Romero wrote:
I have a php script that reads a file that looks something like this:
1.
people type in the first
4 letters of the persons name.
--Joe
On Thu, Apr 05, 2001 at 04:51:47PM -0700, Jerry Lake wrote:
Damn, if I'd a known it was that easy ;)
Thanks for the help, works great now.
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http
You should all check out libHTMLForm at http://www.nirvani.net/software - it
has all sorts of functions for writing HTML forms easily and painlessly. I use
it all the time now (shameless plug - my roommate wrote it a while back).
--Joe
On Fri, Apr 06, 2001 at 02:35:11AM +0200, Richard wrote
I'm not 100% certain about this, but I believe you want to look at using a
LEFT OUTER JOIN
At 11:37 AM 4/4/01 -0400, bill wrote:
If I want to find a list of items in one table whose id does not appear
in another table, can that be done in one query?
I can only figure it out if I use two
FYI you can send data like this on the url:
http://www.foo.com/script.php?test[joe]=stumptest[harry]=bartest[jane]=scott
Then $test will be an array that translates to this in PHP:
?
$test = array(
joe = 'stump',
harry = 'bar
about lists?
--Joe
On Wed, Apr 04, 2001 at 10:04:53AM -0700, Rasmus Lerdorf wrote:
Done. Anything from mail.thecasino.com and thecasino.com is now blocked.
-Rasmus
On Wed, 4 Apr 2001, TV Karthick Kumar wrote:
Can't we just get rid of this spam: [EMAIL PROTECTED] and not allow to
continue
these
spammers from coming back..
True, ezmlm (wich kicks ass), allows all of these. I suggest anyone who hasn't
checked out qmail on the list to check it out. It works great with PHP and I've
even made my own mailing list using qmail with PHP :O)
--Joe
Bye,
B.
--
PHP General Mailing
]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
/**\
*Joe Stump - PHP/SQL/HTML Developer *
* http://www.care2.com - http
It works for me in production.
On Wed, Apr 04, 2001 at 08:56:53PM -0400, Mike Gifford wrote:
I tried this, but it converted [ and ] to url friendly codes. Does this still
work?
Mike
Joe Stump wrote:
FYI you can send data like this on the url:
http://www.foo.com/script.php?test
Ok - say you have this:
$foo = array(
0 = 'joe',
1 = 'stump',
2 = 'there');
while(list($key,$val) = each($foo))
$args[] = 'array['.$key.']='.$val;
$url = 'http://www.server.com/script.html';
$url .= '?'.implode('',$args
torial out there then I would
like to make my own.
Thank you!
Joe
--
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]
You might want to look in the PHP source code at the README.EXT_SKEL file for
info on how to incorporate that stuff.
--Joe
On Sat, Mar 31, 2001 at 08:49:30PM +0200, Ft Karras wrote:
Somebody knows if it is possible to link C and PHP?
I have a C library and need to 'include' with PHP code
Hello,
I am new to the list and to php...I would like to know how php does with the
major search engines. Do I need to do something extra to make it work? Will
it index if I am pulling my content from text files? (If this is in an
archive somewhere, point me to it).
Thank you!
Joe
--
PHP
;
while($row = mysql_fetch_array($x))
{
// echo articles here
}
}
The permanent solution is to make a separate table called "categories" and then
do a join on the categoryID from the two tables.
--Joe
On Fri, Mar 30, 2001 at 10:33:11PM +1000, Mark Bayfie
a pretty comprehensive example of GtkText(), which
seemed to be lacking.
--Joe
/**\
*Joe Stump - PHP/SQL/HTML Developer *
* http://www.care2.com - http://www.miester.org - http
Typically I would never respond to this type of thread discussion, but it's
one that gives me a great amount of frustration from time to time. I think
this level of frustration stems from the fact that a lot of these 'newbie'
questions are even more basic than a PHP newbie should be asking.
I wouldn't expect a programmer to walk in off the street and try to do
graphic design without having any concept of graphic design. I wouldn't
expect a mechanic to walk into the kitchen and expect to build a
souffle. I wouldn't expect a gardner to walk in and perform brain
surgery. And I
Hi,
I made a change to my php.ini and
phpinfo() doesn't reflect the change?
i set
sendmail_path = "/usr/lib/sendmail -OIgnoreDots -t"
and phpinfo() still shows the default
sendmail_path = "/usr/lib/sendmail -t -i"
how can i get this to work correctl
sorry for the lame question, that was what i needed to do.
Thanks,
joe
Jon Rosenberg([EMAIL PROTECTED])@Wed, Mar 28, 2001 at 11:38:19AM -0500:
You need to restart your web server (apache, most likely).
Jon
- Original Message -
From: "Joe Rice" [EMAIL PROTECTED]
Make sure that the PHP user (usually nobody) has the access to delete those
files - I usually just do `rm -fr /path/to/file.foo`; and it works fine.
--Joe
On Wed, Mar 28, 2001 at 09:42:36AM +0100, Steve Brett wrote:
hi,
i need to delete files in my web folder so i can 'tidy' them up. i have
://gtk.php.net
http://gtk.php-coder.net
--Joe
On Wed, Mar 28, 2001 at 11:19:24AM -0800, elias wrote:
What is PHP-GTK?
Can you just write me a short list of what it can do?
"Joe Stump" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I've noticed
Ah yes, the infamous IE cookie problem - look at the expire time - I be it
destroys the cookie as soon as it gets it because the expire time is either on
or before the time the cookie was sent.
--Joe
On Wed, Mar 28, 2001 at 07:16:52PM +0800, Floyd Piedad wrote:
My program works really well
.$url.'"'.$title.'/a'."\n";
or
echo "This is Mike's Homepage";
--Joe
On Wed, Mar 28, 2001 at 12:10:02PM +0200, Christian Reiniger wrote:
On Wednesday 28 March 2001 08:18, you wrote:
in general, I avoid using quotes where possible (such as in the
following) font size=3 fa
try rawurlencode()
Or just plain urlencode() - remember to use urldecode() on the other side if
you plan on putting it in the DB.
--Joe
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
/* you are not expected to understand this */
- from the UNIX V6 kernel source
I have two functions like the ones below. If the first one creates a
variable as global, shouldn't it be accesible to the second function?
function setGlobal() {
global $test;
$test = "123";
}
function getGlobal() {
global $test;
echo $test;
}
--
PHP
In order to use URLs without ? and , there has to be some re-configuration
in Apache, correct? So somebody who didn't have access to httpd.conf
couldn't use this methodology? Or if this is completely incorrect, where
can I find more info on implementing it strictly in PHP?
Joseph E. Sheble
nobody has execute permission on ps?
Probably quite the opposite, your webserver user doesn't have execute
permission on ps, so there is no execution or return value.
"Steven Shepherd" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am writing a script,
2001, Joe Sheble aka Wizaerd wrote:
In order to use URLs without ? and , there has to be some
re-configuration
in Apache, correct? So somebody who didn't have access to httpd.conf
couldn't use this methodology? Or if this is completely incorrect, where
can I find more info on implementing
ut i dont want 'ps', I
want 'top'). Ran top using su to the user 'www' from the command line and
was able to run it fine.
On Tue, 27 Mar 2001, Joe Brown wrote:
Date: Tue, 27 Mar 2001 12:35:08 -0500
From: Joe Brown [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] "DF
, if anyone wants to help out (admin, howtos, etc.)
please feel free to contact me.
As for me, I'm tired and plan on working on it more tomarrow :o)
--Joe
/*\
*Joe Stump *
*www.Care2.com *
*Office: 650.328.0198 *
*Extension: 122
So tired I forgot to put in the URL:
http://gtk.php-coder.net
--Joe
On Tue, Mar 27, 2001 at 10:32:26PM -0500, Joe Stump wrote:
I've noticed there isn't really a jumping off point for the PHP-GTK beginners
and users. I spent the last few hours throwing a site together that has the
basics
en Shepherd [EMAIL PROTECTED] wrote:
Bad example (changed to ps and it works actually..but i dont want 'ps',
I
want 'top'). Ran top using su to the user 'www' from the command line
and
was able to run it fine.
On Tue, 27 Mar 2001, Joe Brown wrote:
Date: Tue, 27 Mar 2001 12:35:08 -0500
you need ar.
my solaris 8 install has it in /usr/ccs/bin
if you have it there, make sure /usr/ccs/bin is in your PATH.
if you need to know what package ar is part of let me know.
joe
Emiliano Marmonti([EMAIL PROTECTED])@Mon, Mar 26, 2001 at 03:12:00PM -0300:
Dear Friends:
I have had
in the onCLick event of the checkbox call a javascript function. In that
function use a window.open() method to open aother browser window, using the
open() methods various properties to control how that browser window looks
and feels. For the URL for that browser window, make it a PHP script
Re-create the file. You're most of the way there.
if( $formSubmit )
{
echo "Your news has been processed.";
$filename = "news.txt";
//This is simpler than messing with an array of the original content.
$fp = fopen ($filename, "r");
$newsSubmit = fread ($fd, filesize ($filename));
fclose
Take a closer look at the previous message I sent $filename was defined as:
$filename="news.txt";
""Dddogbruce (@home.com)"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
When you say $newsSubmit = fread ($fd, filesize ($filename));
Do you mean specify the
maybe spinning the 'd' in $fd 180 degrees to make it a p will help...
Sorry, haven't tried this myself, typo's happen.
heh, I'm still trying to compile php 4 windows :-( been hoping for a
helping hand.
""Dddogbruce (@home.com)"" [EMAIL PROTECTED] wrote in message
[EMAIL
Sure - use md5()
--Joe
On Sat, Mar 24, 2001 at 12:05:49PM -0500, Randy Johnson wrote:
Is there an easy way to create random numbers and letters for a file example
http://www.mydomain.com/1w2e3rff.txt
and then after they download it have it be deleted off the server?
thanks
if($formSubmit) {
echo "form submitted: $frmName"; //= have you tried this to make sure
$formSubmit is true?
$newsSubmit = file("news.txt"); //RTM, your not using file() the way it's
inteneded.
$fp = fopen("news.txt", 'a'); //looks good
fwrite($fp, $frmName); //looks good, but does
link.exe.
Please enlighten me.
Thanks,
-Joe
--
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]
substitute the built in MD5
function for SHA1.
Hope this helps,
Joe
--
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]
I'm using an .htaccess file to auto_append and auto_prepend files within a
specific directory, and it works great. Unfortunaltely if I create a new
sub-directory that doesn't have it's own .htaccess file, it too tries to
use the auto_append and auto_prepend values of the .htaccess file from
I'm using an .htaccess file to auto_append and auto_prepend files within a
specific directory, and it works great. Unfortunaltely if I create a new
sub-directory that doesn't have it's own .htaccess file, it too tries to
use the auto_append and auto_prepend values of the .htaccess file from
how do you sent a Environment Variables for the php script
to execute in? i need to set INFORMIXSERVER so i can
use the informix php functions. This is going live tomorrow
and we don't have it working yet...PLEASE HELP!
thanks,
joe rice
Web Admin
www.bigidea.com
--
PHP General Mailing
i figured it out...thanks.
putenv()
Joe Rice([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 03:16:35PM -0600:
how do you sent a Environment Variables for the php script
to execute in? i need to set INFORMIXSERVER so i can
use the informix php functions. This is going live tomorrow
and we
There is a timeout, that should halt a script if it runs too long. If you
can, check
php.ini
set max_execution_time to something greater than 30 seconds, see if that
helps.
""Brooks, Ken"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I thought maybe the php
virtual (PHP 3, PHP 4 )
Perform an Apache sub-request
int virtual (string filename)
Virtual() is an Apache-specific function which is equivalent to !#include
virtual... in mod_include. It performs an
Apache sub-request. It is useful for including CGI scripts or .shtml files,
or anything else
is looking for $INFORMIXDIR/bin/esql
which isn't installed by IConnect either.
Thanks,
joe rice
Web Admin
www.bigidea.com
--
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 administrato
be greatly appreciated.
Thanks,
joe
Chris Fry([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 09:45:14AM +1100:
For SCO I had to download the ESQL package separately - I think you have to do the
same (if it's available).
Chris
Joe Rice wrote:
Hi,
I'm trying to get this combo to work "Inf
What ended up working for me is;
LD_RUN_PATH=$INFORMIXDIR/lib
then i recompiled php and when i started apache everything
seemed to work. I didn't go the LD_LIBRARY_PATH way
because of http://www.visi.com/~barr/ldpath.html titled
"Why LD_LIBRARY_PATH is bad"
Thanks for all the help
excuse my ignorance here, but is this a configurable options? Anytime I
use $PHP_SELF, it strictly the directory and filename..
for example say I have a forum running at
www.somedomain.com/forum/index?Message=12
my $PHP_SELF strictly gives me /forum/index.php. I know this for a fact
Hi,
I have a funny situation where i can't use apache
due Macromedia's ARIA software and lack of it's support
for apache. So, i'm stuck with using iPlanet. My question
is how stable,fast,usable is the PHP4 NSAPI support?
Thanks,
joe rice
Web Admin
www.bigidea.com
--
PHP General Mailing
the PHP equivalent is isset()
if( !isset( $url_Page ))
At 03:09 AM 3/19/01 -0500, Jack Dempsey wrote:
What exactly does that do chris?
If you're trying to check and see if there's a file on the server, then you
could do something with readdir, is_file, etc...if you want to post what
that
I've found http://www.jtlnet.com to be very good and especially responsive...
At 09:09 AM 3/19/01 +, Matt Williams wrote:
*PHP4
*MySQL
*Telnet access
*Decent Support
*Preferably a Cobalt server (or one with a VERY good Web-based
administrator, most other types of Web
Is there a way to determine if an array is associative or not? Maybe something
similar to the is_array() function ??
Thanks,
JOE
Oops, how embarassing :-(
My son must have been playing with it.
Thanks!
- Original Message -
From: Chris Mulcahy [EMAIL PROTECTED]
To: 'Joe' [EMAIL PROTECTED]
Sent: Friday, March 16, 2001 3:51 PM
Subject: RE: [PHP] Associative vs normal arrays
Joe:
Were you aware your system time
h our network. There is also a basic authentication piece
to access the intranet externally through the internet but requires a
domain name, username and password. The management feels this is
acceptable because there are very few (VERY few) people accessing the
intranet this way.
"
Read up on forcetype'ing on phpbuilder.com - it will do just what you want it
to do.
--Joe
On Wed, Mar 14, 2001 at 06:08:18PM +0800, Alex wrote:
I just want every customer on my site get his own unique id as his directory
name but the pages requested are all processed by the root
Hi All,
I'm looking for a two way encryption function that I can use to encrypt a
cookie value. I have had experience with MD5 but its one way. Is there one I
can use with a key in php?
Thanks in advance,
Joe Njeru,
Nairobi Kenya.
"Where the women are beautiful"
--
PHP General Ma
Aaron,
this is obviously exactly what i need!!
Thanks a lot - this saved me days of work!
Joe
-Ursprungliche Nachricht-
Von: Aaron Tuller [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. Marz 2001 05:41
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: [PHP] Cache Database
it without setting
it.
--Joe
On Mon, Mar 12, 2001 at 01:08:37PM -0600, Fabio Ottolini (EDB) wrote:
First File - index.php
?php
header("Pragma: no-cache");
header("Cache-Control: no-cache, must-revalidate");
if(empty($check)) {
$page = "index.php?check=1";
header(
You could use the mySQL function DATE_FORMAT() in your query string..
SELECT DATE_FORMAT( DateAdded, '%m/%d/%Y' ) as d_Added FROM myDB
At 12:52 PM 1/8/01 -0500, stas wrote:
Hello,
How can I format a date stored in the database in a Date field. It's in this
format:
-mm-dd
I understand
?php
$handle=opendir('.');
echo "select name=image_url";
while (false!==($file = readdir($handle))) {
// new code here
$cExt = explode( ".", $file );
// and here
if ($file != "." $file != ".." ( strtolower( $cExt[1] ) ==
I'd start by adding the mysql_error() function in your die() statement...
$result = mysql_query($sql,$connection) or die ("Couldn't get results: " .
mysql_error());
it might give more information to help you find the problem...
At 10:15 AM 3/8/01 -0800, Nicole Lallande wrote:
Greetings,
I
something like:
So, how do I insert a new record into the database, and get the oid of
the record I just inserted?
See http://www.php.net/manual/en/function.pg-getlastoid.php
Hope this helps,
Joe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
, is there anywhere with stated benchmarks
that i can see to compare?
Thanks,
joe
--
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 it in-efficient to use shuffle()? I have a simple 6 element array with 6
strings (URLs to images) and I'm using shuffle() to display all of them in
random order upon each page load. The images take a long time (of course is
relative, it's mere seconds) but when I remove the call to shuffle,
Is there a practical limit one should make on a php file to be included?
I'm putting all my global variable declarations and function defintitions
into one file to be included across the site. I had thought about splitting
them different files based on functionality, but then I thought it would
Is there a practical limit one should make on a php file to be included?
I'm putting all my global variable declarations and function defintitions
into one file to be included across the site. I had thought about splitting
them different files based on functionality, but then I thought it would
,
'Sep' = 9,'Oct' = 10,
'Nov' = 11,'Dec' = 11);
$foo = explode(' ',$date);
$month = $months[$foo[0]];
$day = str_replace(',',$foo[1]);
$year = $foo[2];
return mktime(0,0,0,$month,$day,$year);
}
--Joe
On Fri, Mar 02, 2001 at 06:58:45PM -0500
Hi All,
Is there a way I can export the users in my Linux machine to a mysql
database. Together with their passwords without manually entering all of
them.
I will appreciate any input.
Thanks in advance,
Joe Njeru
Nairobi, Kenya.
"Where the sun shines all day!!"
--
PHP Gener
with userID as the key char(15) (don't ask, it's an
old design made by a former employee) which has roughly 1.6 million rows in it.
We regularily do joins on it with other tables that have thousands of records
in less than .05 seconds.
This sounds like a table structure problem to me.
--Joe
On Tue
on to "advanced features" is to challenge
yourself and have a good understanding of programming concepts, UNIX, and the
various protocols you work with.
Just my $0.02
--Joe
On Tue, Feb 27, 2001 at 04:01:22PM -0700, Web master wrote:
Hello Php Gurus,
Need help on direction. I am
501 - 600 of 684 matches
Mail list logo