php-general Digest 1 Feb 2001 00:27:36 -0000 Issue 485
Topics (messages 37461 through 37567):
Bcc email does not work
37461 by: kaab kaoutar
Re: Read Vs. Include
37462 by: Daniel Grace
REGULAR EXPRESSION
37463 by: kaab kaoutar
Odbc Vs Oracle
37464 by: kaab kaoutar
php changing passwd from unixusers?
37465 by: Geert Houben - HICT
Re: File Download Completion
37466 by: Daniel Grace
37472 by: Andy Woolley
37501 by: Boaz Yahav
37524 by: Boaz Yahav
37528 by: Boaz Yahav
37538 by: Daniel Grace
Oracle8 OciLogon !
37467 by: kaab kaoutar
Oracle failed to connect
37468 by: kaab kaoutar
37546 by: Steve Haemelinck
where to get musql for windows NT
37469 by: kaab kaoutar
37471 by: Augusto Cesar Castoldi
37483 by: Michael Kimsal
Re: SQL question
37470 by: Daniel Grace
PHPub: A Zend IDE/DEBUGGER Alternative
37473 by: Ralph Guzman
Php and forking
37474 by: Nicklas af Ekenstam
37520 by: Chris Lee
RegEx and URLs
37475 by: Joe Sheble (Wizaerd)
cURL & telnet
37476 by: Montgomery-Recht, Evan
print correct values for variables inside variebles ..
37477 by: hsmith.twilyt.com
Re: expressions
37478 by: CC Zona
neat html output
37479 by: Mark
37480 by: Joe Sheble (Wizaerd)
37481 by: Joe Sheble (Wizaerd)
37485 by: php3.developersdesk.com
37489 by: Toby Miller
37552 by: Jeff Lacy
Unable to fork???
37482 by: Daniel Williams
37495 by: johnny p.
Can you do this
37484 by: Boget, Chris
37497 by: Christian Reiniger
37498 by: Boget, Chris
Re: php & jsp
37486 by: Shashank Tripathi
Re: HowTo: IBM DB2 w/PHP
37487 by: Karl J. Stubsjoen
37537 by: szii.sziisoft.com
Re: Want to learn PHP
37488 by: php3.developersdesk.com
php4 - MS SQL7 connection problem
37490 by: .n Angel
Loading extensions
37491 by: Shimon Dekel
Re: Uppdating a frame from another frame using PHP
37492 by: Ryan Gaul
Re: ID value
37493 by: Piotr Duszynski
Re: Killing session cookies, caches and everything.
37494 by: Angel Behar
Session Code debug help requested
37496 by: Matthew Mundy
37532 by: Hardy Merrill
Re: str_replace
37499 by: Jason Murray
37500 by: Philip Olson
Cobalt Raq Servers & PHP
37502 by: Jamie Thompson
37561 by: WreckRman2
Re: sessions - max number of variables before things get bad?
37503 by: Jon Snell
gethostbyaddr timeout
37504 by: Aaron Gould
37513 by: Jon Jacob
37527 by: Jon Snell
File uploading?
37505 by: Lauri Vain
37509 by: Ben
37511 by: James Smith
Is correct ??
37506 by: Miguel Loureiro
37507 by: Boget, Chris
37508 by: Boget, Chris
37510 by: johnny p.
copy() ??
37512 by: Fredrik Arild Takle
37522 by: johnny p.
37536 by: James Smith
imap (nntp) message tracking
37514 by: Larry Hotchkiss
connecting to AS400 DB2
37515 by: Conover, Ryan
37521 by: Larry Hotchkiss
What is "foo"?
37516 by: SED
37517 by: Soeren Staun-Pedersen
37518 by: Philip Olson
37519 by: Christian Reiniger
37555 by: Rouvas Stathis
37557 by: Josh G
Symbolic link fails when User Authentication comes in
37523 by: david klein
37526 by: johnny p.
37529 by: david klein
Re: PHP4.04pl1 upgrade
37525 by: Ayan R. Kayal
Program execution
37530 by: Czapáry Gábor
Pricing for PHP programming???
37531 by: Shane McBride
37533 by: Robert Covell
37535 by: Chris Lee
37543 by: Chad Day
37545 by: Joe Stump
Zend Optimizer not working with @
37534 by: Chris Lee
37556 by: Andi Gutmans
newlines in <textarea> boxes..
37539 by: James Smith
37544 by: Michael Hall
.htpasswd?
37540 by: James Smith
37558 by: david klein
37559 by: Thor M. Steindorsson
Re: [PHP-DB] question ! show binary
37541 by: James Smith
Re: [PHP-DB] newlines in <textarea> boxes..
37542 by: Xsarus Internetdiensten
Functions returning by reference
37547 by: Richard Heyes
Exit Function
37548 by: Karl J. Stubsjoen
37549 by: Boget, Chris
37550 by: Martin A. Marques
37551 by: Steve Smith
37553 by: Josh G
37554 by: Chris Lee
Loading Files & Writing...
37560 by: Videomoviehouse - Marcus Ouimet
Compiling PHP
37562 by: php.hotchilli.com
function list
37563 by: Jerry Lake
37564 by: Josh G
37566 by: Stephen Edberg
E-mail valid
37565 by: Brandon Orther
Dynamic Variable Creation from Forms
37567 by: [ rswfire ]
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
Hi!
Have u ever tried to send many emails using Bcc?
It does not work for me !
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 19528 invoked from network); 31 Jan 2001 12:10:34 -0000
Received: from unknown (HELO hotmail.com) (64.4.15.52)
by va.php.net with SMTP; 31 Jan 2001 12:10:34 -0000
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
Wed, 31 Jan 2001 04:11:37 -0800
Received: from 212.217.5.93 by lw10fd.law10.hotmail.msn.com with HTTP; Wed,
31 Jan 2001 12:11:37 GMT
X-Originating-IP: [212.217.5.93]
From: "kaab kaoutar" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Bcc that not work !
Date: Wed, 31 Jan 2001 12:11:37 -0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <[EMAIL PROTECTED]>
X-OriginalArrivalTime: 31 Jan 2001 12:11:37.0580 (UTC)
FILETIME=[F60162C0:01C08B7E]
Hi!
Have u ever tried to send many emails using Bcc?
It does not work for me !
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
On Tuesday, January 30, 2001 at 3:04 PM, Alexandar Skwar wrote:
> So sprach Daniel Grace am Thu, Jan 25, 2001 at 07:18:52PM -0800:
> > readfile($filename);
>
> Why not include?
>
Because include will execute any PHP code in the included file and readfile
will not, it just dumps the entire file to the webbrowser.
If you want to display the contents of an HTML document and that HTML
document should not have any PHP code in it, it's best to play it safe and
use readfile(). This is especially true if the HTML document can be visitor
modified (say, a guestbook), as not doing so could potentially let anybody
execute any PHP code they want on your webserver.
- Daniel Grace <http://dewin.oldbattery.com/>
"Space may be the final frontier but its made in a Hollywood basement."
- Red Hot Chili Peppers - Californication
Hi!
I 'd like to have an input that contains only a to Z and space and
ëàéêêàäïüöûâç- nothing else like numbers or whatever and also does not start
with space !
till now with ur help i get the following :
(!ereg("[a-zA-Z[:space:]ëàéêêàäïüöûâç-]", $name))
but it accepts numbers ,
i tried
(!ereg("^[0-9]+[a-zA-Z[:space:]ëàéêêàäïüöûâç-]", $name))
it no more accepts letters nor anything !
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hi!
i'm using an orcale DB, i'd like to know what's the best way to exploit php
? using odbc or oracle functions ?
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hi,
Is it possible using a php -based website to change passwords from
unixusers?
Php runs at my system under user: www how can I let it execute: passwd
and change a password?
Nice regards,
Geert Houben
"Boaz Yahav" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is it possible to find out if a client finished to DL a file?
>
> Suppose i put a link to a file and people start to DL the file.
> Some people can stop the DL in the middle. I need to know
> how many people completed the DL.
>
> Any simple ideas how to do this?
>
> thanks
>
> berber
>
One option could be to use ignore_user_abort:
<?PHP
ignore_user_abort(0); // Script will be aborted if transfer fails for
whatever reason
?>
blahblahblahyaddityyaddiy yaddity
<?PHP
// If we're this far, it means the file's more or less transferred all the
way.
file_did_download();
?>
Caveats with this:
1. Your file has to be part of the PHP page (though not neccessarily in the
file itself, header("content-type: blah/blah"); combined with
readfile($filename) will do the trick I think.
2. You (probably) can't use programs that are capable of resuming file
transfers. If you can somehow, I have NO idea how it'll react.
3. If the user aborts right after the file_did_download() function is called
but before the script actually terminates, things can go awry. I'm not
entirely sure how this would be handled.
--
- Daniel Grace <http://dewin.oldbattery.com/>
"Space may be the final frontier but its made in a Hollywood basement."
- Red Hot Chili Peppers - Californication
Hi Berber,
The only way I've figured this at the moment is to use the web server access
logs. They will tell you how many bytes were transfered, if it matches the
file size then transmission was potentialy succesful.
I'm trying to think of a better way using PHP and maybe JavaScript but at
the moment I've hit a brick wall.
I'll have a think later and get back to you, but for your information it is
possible.
Regards,
Andy Woolley
www.databasewatch.com
----- Original Message -----
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 10:44 AM
Subject: [PHP] File Download Completion
> Is it possible to find out if a client finished to DL a file?
>
> Suppose i put a link to a file and people start to DL the file.
> Some people can stop the DL in the middle. I need to know
> how many people completed the DL.
>
> Any simple ideas how to do this?
>
> thanks
>
> berber
>
> --
> 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 thought of this log thing but we are talking about logs that can be
hundreds of MB per day.
I'm talking about logs of a very big portal, starting to analyze this is
useless :)
thanks
berber
-----Original Message-----
From: Andy Woolley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 2:55 PM
To: Boaz Yahav; Php-General
Subject: Re: [PHP] File Download Completion
Hi Berber,
The only way I've figured this at the moment is to use the web server access
logs. They will tell you how many bytes were transfered, if it matches the
file size then transmission was potentialy succesful.
I'm trying to think of a better way using PHP and maybe JavaScript but at
the moment I've hit a brick wall.
I'll have a think later and get back to you, but for your information it is
possible.
Regards,
Andy Woolley
www.databasewatch.com
----- Original Message -----
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 10:44 AM
Subject: [PHP] File Download Completion
> Is it possible to find out if a client finished to DL a file?
>
> Suppose i put a link to a file and people start to DL the file.
> Some people can stop the DL in the middle. I need to know
> how many people completed the DL.
>
> Any simple ideas how to do this?
>
> thanks
>
> berber
>
> --
> 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]
>
>
All of the examples on weberdev.com use a download script that
should send the file like you describe. This used to work but now
that I'm testing it, It seems that instead of the file name I get
the script name.htm or something else. The only thing that has
changed is that I upgraded to 4.0.4pl1
any idea?
-----Original Message-----
From: Daniel Grace [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 2:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] File Download Completion
"Boaz Yahav" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is it possible to find out if a client finished to DL a file?
>
> Suppose i put a link to a file and people start to DL the file.
> Some people can stop the DL in the middle. I need to know
> how many people completed the DL.
>
> Any simple ideas how to do this?
>
> thanks
>
> berber
>
One option could be to use ignore_user_abort:
<?PHP
ignore_user_abort(0); // Script will be aborted if transfer fails for
whatever reason
?>
blahblahblahyaddityyaddiy yaddity
<?PHP
// If we're this far, it means the file's more or less transferred all the
way.
file_did_download();
?>
Caveats with this:
1. Your file has to be part of the PHP page (though not neccessarily in the
file itself, header("content-type: blah/blah"); combined with
readfile($filename) will do the trick I think.
2. You (probably) can't use programs that are capable of resuming file
transfers. If you can somehow, I have NO idea how it'll react.
3. If the user aborts right after the file_did_download() function is called
but before the script actually terminates, things can go awry. I'm not
entirely sure how this would be handled.
--
- Daniel Grace <http://dewin.oldbattery.com/>
"Space may be the final frontier but its made in a Hollywood basement."
- Red Hot Chili Peppers - Californication
--
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]
Seems like your theory doesn't stand the reality test :)
This is the script which for some reason works with Netscape but not with IE
(it used to) :
ignore_user_abort(0);
$filename="test.gz";
$file="/home/examples/" . $filename;
header("Content-Disposition: attachment; filename=$filename");
header("Content-Type: application/x-gzip");
header("Content-Length: ".filesize($file));
header("Pragma: no-cache");
header("Expires: 0");
$fp = fopen($file, "r");
if(!$fp) {
echo"Can't open file for read";
exit();
}
print fread($fp, filesize($file));
echo"<BR><BR><BR><BR><H1><B>The file was downloaded
successfully</B></H1><BR><BR><BR><BR>";
For some reason it never shows the last echo weather i let the DL complete
or stop it
in the middle...
berber
-----Original Message-----
From: Daniel Grace [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 2:37 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] File Download Completion
"Boaz Yahav" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is it possible to find out if a client finished to DL a file?
>
> Suppose i put a link to a file and people start to DL the file.
> Some people can stop the DL in the middle. I need to know
> how many people completed the DL.
>
> Any simple ideas how to do this?
>
> thanks
>
> berber
>
One option could be to use ignore_user_abort:
<?PHP
ignore_user_abort(0); // Script will be aborted if transfer fails for
whatever reason
?>
blahblahblahyaddityyaddiy yaddity
<?PHP
// If we're this far, it means the file's more or less transferred all the
way.
file_did_download();
?>
Caveats with this:
1. Your file has to be part of the PHP page (though not neccessarily in the
file itself, header("content-type: blah/blah"); combined with
readfile($filename) will do the trick I think.
2. You (probably) can't use programs that are capable of resuming file
transfers. If you can somehow, I have NO idea how it'll react.
3. If the user aborts right after the file_did_download() function is called
but before the script actually terminates, things can go awry. I'm not
entirely sure how this would be handled.
--
- Daniel Grace <http://dewin.oldbattery.com/>
"Space may be the final frontier but its made in a Hollywood basement."
- Red Hot Chili Peppers - Californication
--
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]
On Wednesday, January 31, 2001 at 12:00 PM, "Boaz Yahav"
<[EMAIL PROTECTED]> wrote:
> Seems like your theory doesn't stand the reality test :)
>
> This is the script which for some reason works with Netscape but not with
IE
> (it used to) :
> ignore_user_abort(0);
> $filename="test.gz";
> $file="/home/examples/" . $filename;
> header("Content-Disposition: attachment; filename=$filename");
> header("Content-Type: application/x-gzip");
> header("Content-Length: ".filesize($file));
> header("Pragma: no-cache");
> header("Expires: 0");
/*
> $fp = fopen($file, "r");
> if(!$fp) {
> echo"Can't open file for read";
> exit();
> }
> print fread($fp, filesize($file));
*/ // readfile($file) does the same thing.
> echo"<BR><BR><BR><BR><H1><B>The file was downloaded
> successfully</B></H1><BR><BR><BR><BR>";
>
> For some reason it never shows the last echo weather i let the DL complete
> or stop it
> in the middle...
>
Remember that everything you are sending to the browser -- whether it be by
print, echo, readfile, or HTML code outside of <?PHP ... ?>, becomes the
file the user is downloading. If you were to open the gzip file you're
sending, you'd notice that the "<BR><BR><BR><BR><H1><B>The file was
downloaded</B> successfully</B></H1><BR><BR><BR><BR>" is being appended to
the end of that file.
Hi!
i use oracle and i always get this error:
call to undefined function ocilogon()!
Thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hi!
I'm using orcale8 and as long as oracle8 ocilogon does not work, i tried the
oracle function and i always get:
for Ora_Logon("kaab@KKAnn", "kaab");
connection failed could not resolve service name
thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Can you connect to the DB with sql plus !!!
-----Original Message-----
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: woensdag 31 januari 2001 13:36
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] Oracle failed to connect
Hi!
I'm using orcale8 and as long as oracle8 ocilogon does not work, i tried the
oracle function and i always get:
for Ora_Logon("kaab@KKAnn", "kaab");
connection failed could not resolve service name
thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 administrators, e-mail: [EMAIL PROTECTED]
Hi!
where can i get mysql for NT?
thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
http://www.mysql.com/downloads/index.html
On Wed, 31 Jan 2001, kaab kaoutar wrote:
> Hi!
> where can i get mysql for NT?
> thanks
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 administrators, e-mail: [EMAIL PROTECTED]
>
mysql.com
kaab kaoutar wrote:
> Hi!
> where can i get mysql for NT?
> thanks
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 administrators, e-mail: [EMAIL PROTECTED]
"John LYC" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all,
>
> does mysql support this?
>
> select * from tablename where id in (select id from table2 where cond)
>
> thanks
>
No. MySQL does not support so-called sub-selects. Here's an easy workaround
in PHP:
$result = mysql_query("SELECT id FROM table2 WHERE cond");
$idlist = array();
while($row = mysql_fetch_assoc($result)) {
$idlist[] = $row[id];
}
$result = mysql_query("SELECT id FROM table1 WHERE id IN(" . implode(", ",
$idlist) . ")");
Making sure $idlist actually contains at least one item (if it doesn't the
second query will fail) is left as an exercise to the reader.
--
- Daniel Grace <http://dewin.oldbattery.com/>
"Space may be the final frontier but its made in a Hollywood basement."
- Red Hot Chili Peppers - Californication
I am glad to see others working on alternatives to the highly cost Zend products. I
came across PHPub, a PHP IDE/Debugger which I've never seen mentioned on this list.
Even though it is still not ready for final release, it's seems pretty stable. Great
Features. One of it's cool features is a built in interactive SQL client. Looks very
promising!
http://capnbry.dyndns.org/phpub/
________________________________________________________________
Get you FREE Firstname email address at http://www.Firstname.com
Get a FREE Cell Phone at http://www.freecellphonedeal.com
Hi!
Is there some way (perhaps using a multi threaded httpd?) that I can get
php to fork processes?
I.e. I'd like to have a script which prints something to the clients web
browser and terminates that http connection, but keeps going in the
background doing other processing not related to the client and, if
necessary, pipes that output to /dev/null.
- Nille
This isnt exactly what your looking for, Im sure of it, but it works for me
in the past. If you have a page that does something like email 1000
shareholders about a new press release, this takes some time. You dont need
to sit here for 30min to wait for the page to finnish.
<?
//-email.php-
exec("php -q email_press.php &");
?>
<?
//-email_press.php-
for($c = 0; $c < 1000; $c++)
{
mail(...);
}
?>
send your web client to email.php and that will call email_press.php wich is
now running in the backgound. not at all like forking a process, but it
works.
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
"Nicklas af Ekenstam" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
>
> Is there some way (perhaps using a multi threaded httpd?) that I can get
> php to fork processes?
> I.e. I'd like to have a script which prints something to the clients web
> browser and terminates that http connection, but keeps going in the
> background doing other processing not related to the client and, if
> necessary, pipes that output to /dev/null.
>
> - Nille
>
>
> --
> 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]
>
Either I missed the answer on the mailing list, or it was accidentally
skipped, so I'll re-ask...
I have a bit of text ( a TEXT field in mySQL ) and there may or may not be
URLs in this text. (These URLs are defined as anything starting with
http://, mailto:, or www.). Some of these URLs may or may not be already
contained with an HTML A HREF tag. I need a regular expression that'll
find these URLs and convert them to valid A HREF tags while leaving those
URLs that are already in appropriate tags alone.
Can anybody offer any assitance on this? I'm afraid I'm a bit weak in the
regex areas....
Does anyone have any experience using cURL with Telnet in PHP.
thanks,
evan
I've posted a similar question .. and got hat one resolved .. but now I'ms trugling
with this one ..
I have a page called edit .. that I pass a variable called $page like this
edit.php3?page=index
what I'm trying is something like this ..
function blah($page){
$query="select * from site_${page}_html";
if ($result=$this->db_query($query)){
$row=$this->db_fetch_array($result);
$$page_heading=$row["${page}_heading"];
$$page_desc=$row["${page}_desc"];
$$page_content=$row["${page}_content"];
<formstuff here>
<input type=\"text\" size=\"30\" name=\"${page}_heading\"
value=\"$$page_heading\">
</formstuff here>
}else{
die("horrably");
}
}
$$page_heading seems to work fine since ${$page}_heading and $${page}_heading gives my
syntx errors while storing the data
while printing ${page}_heading displays the name I want .. I can't get the data out of
$$page_heading to display
rather is shows "$" as $$page_heading, "_heading" as ${$page}_heading,
"$contact_heading" as $${page}_heading
any help would be appreaciated .. thanks
Henti
[re-arranging quotes to bottom posting]
In article <9556pp$sna$[EMAIL PROTECTED]>, [EMAIL PROTECTED]
("Jeff Warrington") wrote:
> > hi, im trying to fix this couple of hours but i couldnt find the
> > mistake... can somebody look at it...
> >
> > first i want to check the $co_area for 3 digital ... it must contain 3
> > digital
> >
> > if ($co_area != !ereg("([0-9]{3})",$co_area))
> > { echo " * Area code must be 3 digital"; }
> if (eregi("[^0-9]{3}",$co_area)) {
> print("area code must be digits");
> }
>
> or
>
> if (eregi("[^[:digit:]]{3}",$co_area))
>
> if you use the POSIX regex fields.
Those pass any string except where there occurs a sequence of three
non-digit chars. So "123AB", "AB", "A", "1 2 3", etc. would all slip
through as apparently valid area codes. Instead, how about:
//<-if anything but a sequence of exactly three digits from beginning to
end...
if (!eregi("^[[:digit:]]{3}$",$co_area))
{
//throw an error message
echo "Sorry, only a three digit area code is permitted!";
}
--
CC
I'd like my html output to be neatly written, including newlines is helpful
but does anyone know of a better way to output newlines than appending
."\n"; to every echo statement.
-Mark
Write yourself a function that handles it yourself and include it in every
page... something such as:
function println( $cTextToPrint ) {
print( $cTextToPrint . "<BR>" );
}
then in your pages just use println() everywhere...
At 08:29 AM 1/31/01 -0600, Mark wrote:
>I'd like my html output to be neatly written, including newlines is helpful
>but does anyone know of a better way to output newlines than appending
>."\n"; to every echo statement.
>
>-Mark
>
>
>
>
>--
>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]
oops, that function declaration should look like:
function println( $cTextToPrint ) {
print( $cTextToPrint . chr(13) );
}
At 07:40 AM 1/31/01 -0700, Joe Sheble (Wizaerd) wrote:
>Write yourself a function that handles it yourself and include it in every
>page... something such as:
>
>function println( $cTextToPrint ) {
> print( $cTextToPrint . "<BR>" );
>}
>
>then in your pages just use println() everywhere...
>
>At 08:29 AM 1/31/01 -0600, Mark wrote:
>>I'd like my html output to be neatly written, including newlines is helpful
>>but does anyone know of a better way to output newlines than appending
>>."\n"; to every echo statement.
>>
>>-Mark
>>
>>
>>
>>
>>--
>>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]
>
>
>--
>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]
>
>
Addressed to: "Mark" <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Mark" <[EMAIL PROTECTED]> Wed, 31 Jan 2001 08:29:57 -0600
>
> I'd like my html output to be neatly written, including newlines is
> helpful but does anyone know of a better way to output newlines than
> appending .."\n"; to every echo statement.
>
As far as I know that is THE way to output newlines.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
Mark,
The closest way that I know of to accomplish this is to print them more like
you would HTML. So in other words, you can do this:
<?php
print '
<html>
<head>
<title>$title</title>
</head>
<body>
$content
</body>
</html>
';
?>
or like this:
<html>
<head>
<title><?php print $title ?></title>
</head>
<body>
<?php print $content ?>
</body>
</html>
The only way around these methods that I've seen are using template wrapper
objects and creating the whole thing that way.
Toby
----- Original Message -----
From: "Joe Sheble (Wizaerd)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 9:49 AM
Subject: Re: [PHP] neat html output
> oops, that function declaration should look like:
>
> function println( $cTextToPrint ) {
> print( $cTextToPrint . chr(13) );
> }
>
>
> At 07:40 AM 1/31/01 -0700, Joe Sheble (Wizaerd) wrote:
>
> >Write yourself a function that handles it yourself and include it in
every
> >page... something such as:
> >
> >function println( $cTextToPrint ) {
> > print( $cTextToPrint . "<BR>" );
> >}
> >
> >then in your pages just use println() everywhere...
> >
> >At 08:29 AM 1/31/01 -0600, Mark wrote:
> >>I'd like my html output to be neatly written, including newlines is
helpful
> >>but does anyone know of a better way to output newlines than appending
> >>."\n"; to every echo statement.
> >>
> >>-Mark
> >>
> >>
> >>
> >>
> >>--
> >>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]
> >
> >
> >--
> >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]
> >
> >
>
>
> --
> 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 can also use tabs (\t).
This is an example using tabs and newlines:
echo "<table>\n<tr>\n\t<td>Hello There</td>\n\t<td>How are
you</td>\n</tr></table>";
Note: You must use quotes because ticks don't work.
Jeff
""Mark"" <[EMAIL PROTECTED]> wrote in message
9597gb$4el$[EMAIL PROTECTED]">news:9597gb$4el$[EMAIL PROTECTED]...
> I'd like my html output to be neatly written, including newlines is
helpful
> but does anyone know of a better way to output newlines than appending
> ."\n"; to every echo statement.
>
> -Mark
>
>
>
>
> --
> 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 continue to get following error when trying to execute external program:
"Warning: Unable to fork..."
Anyone know what this means? or how to fix it?
It means there's a limit on number of processes for your user id. If
you're using bash, try typing 'ulimit -a' and see how many user
processes you are allowed to have. ulimit -a prints out all the limits
that are imposed on your user account. then try increasing that number
to something higher by typing 'ulimit -u <number>'. If you're using a
different shell, do a man on the shell and look up ulimit.
johnny p.
> -----Original Message-----
> From: Daniel Williams [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 8:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Unable to fork???
>
>
> I continue to get following error when trying to execute
> external program:
> "Warning: Unable to fork..."
> Anyone know what this means? or how to fix it?
>
>
>
>
> --
> 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]
>
>
Academic curiosity -
You can do the following:
echo "3 - 2 = " . ( bcsub( 3, 2 ));
and PHP evaluates the expression in parenthesis (in this
case a function) before it evaluates the echo statement
and what gets printed out is:
3 - 2 = 1
Now, say I have a function where one of the arguments
is passed by reference and is modified within the function.
I can call this function on one line
myFunc( &$modifiedVariable );
and print out the value (if any) of $modifiedVariable on
the next
echo $modifiedVariable.
So what I am wondering is if you can turn those two
statements into one? The function is going to get evaluated
first we already know, but I am not certain how I could
get the (new) value of $modifiedVariable. Yes, it's just one
extra line but that is not why I ask. I was thinking about it
yesterday and I became very curious if it could even be done.
Nothing I tried yielded results so I'm turning to the experts.
:p
Is this possible?
Thanks for entertaining my curiosity!
Chris
On Wednesday 31 January 2001 16:03, Boget, Chris wrote:
> Now, say I have a function where one of the arguments
> is passed by reference and is modified within the function.
> I can call this function on one line
>
> myFunc( &$modifiedVariable );
>
> and print out the value (if any) of $modifiedVariable on
> the next
>
> echo $modifiedVariable.
>
> So what I am wondering is if you can turn those two
> statements into one? The function is going to get evaluated
> first we already know, but I am not certain how I could
> get the (new) value of $modifiedVariable.
What about using normal pass-by-value and returning the result?
function MyFunc ($SomeVal)
{
$SomeVal += 42;
return $SomeVal;
}
echo MyFunc ($StrangeVal);
Anyway - functions that get their parameters by reference and modify them
can cause much trouble, so better be careful with that.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God --------- and she was black.
> What about using normal pass-by-value and returning the result?
> function MyFunc ($SomeVal) {
> $SomeVal += 42;
> return $SomeVal;
> }
> echo MyFunc ($StrangeVal);
I'm already using the return value for something else.
> Anyway - functions that get their parameters by reference and
> modify them can cause much trouble, so better be careful with
> that.
Well, the only thing that I'm using that argument for is to return
an error message, if any.
Chris
Hi George,
Why should it be a problem? You could easily set this up as a module top
Apache (since you did not mention which web server you use, I am assuming
you use Apache). For an example of how to use PHP as a module, please take a
look at:
http://shanx.com/php/install_win32.txt
For JSP, I think regardless of the engine you use, there must be some
documentation..
HTH,
Shanx
> We are trying to install php and jsp on the same portal.
> Has this been done before?...if so, where are any man. pages?
>
> George Jensen
> IHETS WebDev NIC
> 317.263.8969 phone
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.227 / Virus Database: 109 - Release Date: 17-Jan-01
We are running AS400 4.4 and PHP4, not sure what version of Linux we are
running.
----- Original Message -----
From: "Antonio S. Martins Jr." <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
Cc: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 3:23 AM
Subject: Re: [PHP] HowTo: IBM DB2 w/PHP
> On Tue, 30 Jan 2001, Karl J. Stubsjoen wrote:
>
> > We have succesfully installed the IBM DB2 RDMS on our Linux box and have
> > successfully made a connection to our AS400. All through command line
> > though.
>
> What are the versions of your AS400 and DB2 for Linux? I had tryied to
> connect on an AS400 some time ago without success (both from Linux and
> AIX)! And from what I read on that time I tought the only way to connect
> to an AS400 is from windows!
>
>
> > I am new to PHP, and am wondering:
> > How do I instantiate the IBM DB2 in PHP, call commands, run queries,
etc...?
> > I'm not looking for all the answers, but tips on How to Get Started.
>
> This isn't difficult (but isn't simple too!), try compile PHP using
> --with-ibm-db2, and then use the "odbc" comand set (odbc_connect, etc).
> The implentation of DB2 in PHP uses the odbc calls (it isn't odbc, it uses
> the native DB2 cli). I use it here on my university to access a DB2 AIX
> box from my Linux Web Server.
>
> Antonio.
>
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> | Antonio S. Martins Jr. - System Analist | "Only The Shadow Knows |
> | WorldNet Internet Maringa - PR - Brasil | what evil lurks in the |
> | E-Mail: [EMAIL PROTECTED] | Heart of Men!" |
> | [EMAIL PROTECTED] | !!! Linux User: 52392 !!! |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> This e-mail message is 100% Microsoft free!
>
> /"\
> \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
> X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
> / \
>
>
>
>
>
Install the DB2 Application Development package on the client. Let it
create
an instance. It's just a stub instance, so it's not a real Database
Instance.
Compile (on the client) PHP using --with-ibm-db2=/usr/local/IBMdb2<whatever>
Use the Unified ODBC calls (they really call the DB2 CLI underneath the
covers.)
Have fun!
-Szii
----- Original Message -----
From: Karl J. Stubsjoen <[EMAIL PROTECTED]>
To: PHP Mailing List <[EMAIL PROTECTED]>
Sent: Tuesday, January 30, 2001 9:20 AM
Subject: [PHP] HowTo: IBM DB2 w/PHP
> Hello,
>
> We have succesfully installed the IBM DB2 RDMS on our Linux box and have
> successfully made a connection to our AS400. All through command line
> though.
> I am new to PHP, and am wondering:
> How do I instantiate the IBM DB2 in PHP, call commands, run queries,
etc...?
> I'm not looking for all the answers, but tips on How to Get Started.
>
> Thanks!
>
>
>
> --
> 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]
Addressed to: "Patrick L." <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from "Patrick L." <[EMAIL PROTECTED]> Wed, 31 Jan 2001
00:55:47 -0800
>
> I've been struggling with perl, till someone said why not give PHP a
> shot.
>
> Where do I start?
>
> Aside from manuals, are there any online courses/tutorials which will
> get me going?
Lots. Take a look on:
http://www.php.net/links.php
and
http://www.zend.com/
PhpWizards and DevShed helped get me going...
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
Hello!
I'm running: WinNT4, IIS4, php 4.03pl1, and I'm trying to connect to MS SQL
7.
Well, I configured the php.ini (extension=php_mssql70.dll), and I copy that
.dll to the windows folder. Now I want to connect to the SQL and it doesn't
work, it makes a time out. If I do the same things with php 3.0.17 it works
fine.
The code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>Untitled</title></head>
<body>
<?php
$HOST = "the host";
$USER = "the username";
$PSW = "the password";
$DB = "Database name";
if (mssql_connect($HOST, $USER, $PSW))
{
mssql_select_db($DB);
echo mssql_result( mssql_query("SELECT @@VERSION"), 0, 0);
}
if (!mssql_close())
echo "No lo pudo cerrar";
?>
</body>
</html>
Any solution?
Thank you in advance . . .
- @n Angel -
Hi ,
I was running PHP 4 on NT 4 SP6 with IIS4 with no problems.
Yesterday I have upgraded to PHP 4.0.5.
Now if I have any "extension=" line in php.ini not disable (i.e. not
having a semicolon (;) in front the first php page being called pops up
a message on the server screen with the message "Unable to load dynamic
library 'c:\php\extensions\php_oci8.dll' - The
specified module could not be found"
I have tried Back slashes '\' forward slashes '/' with a slash at the
end of the line and without
It also happen with any other extension.
The temporarily measure I used is to disable all extensions.
Anyone able to help? Please!
Thanks
==============================
Shimon Dekel - Israeli Vegetable Board
Information System Manager
2 Karlibach St Tel-Aviv 67132
[EMAIL PROTECTED] www.yerek.co.il
==============================
What about something like this javascript:
parent.basket_right.location=page
You can encapsulate it in a function like this:
<script language="Javascript 1.2">
function refresh_frame(page,frame_name)
{
parent.frame_name.location=page;
}
</script>
Then you could call this from an onload in the appropriate body tag of the
appropriate frame. So, if frame foo should be updated everytime frame bar is
updated, you would make the body tag of frame bar look something like this
(don't forget to add the function to your page head):
<body onLoad="refresh_frame('/this/page/should/load.php','basket_right')">
That might help. I am no Javascript guru, so I can't guarantee that
everything is correct, but I think this should work. Good Luck,
Best,
Ryan
-----Original Message-----
From: Rickard Walder [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 6:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Uppdating a frame from another frame using PHP
I am using PHP on site using frames. I need to uppdate a frame called
basket_right everytime I run a file called cart_add.php (which contains no
HTML code) from the frame called menu_and_main
I tried using the header("Location: ") command, but don't know how to adress
the basket_right frame. Is this the right command to use?
Does anyone have suggestions?
Thanks in advance.
/Rickard
I include my frameset if this could be of any help:
I have replaced some information with *** and ... for easier wieving.
<FRAMESET ROWS="60,*,53" border="0" frameborder="0" framespacing="0">
<FRAME SRC="***" name="***" ... >
<FRAME SRC="shopping/shell/fs_mm.asp" name="menu_and_main" ...>
<FRAMESET COLS="168,*" ...>
<FRAME SRC="***" name="***" ...>
<FRAMESET COLS="391,*,0" ...>
<FRAMESET ROWS="21,*" ...>
<FRAME SRC="***" name="***" ...>
<FRAME SRC="***" name="***" ...>
</FRAMESET>
<FRAME SRC="shopping/shell/basket_right.php" name="basket_right"
...>
<FRAME SRC="***" name="***" ...>
</FRAMESET>
</FRAMESET>
--
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]
> $sql = "INSERT INTO songs (id,name,url) VALUES
> ('','Foobar','test.php?id=<id>)";
>
> The id is autoincrement so obviously left blank, yet I'd like to put it into
> the url where <id> is.
>
> How do I go about dragging back the id even though it is being created (I
> suppose) while the statement is being made -- is it possible or do I have to
Try this:
mysql_db_query("
INSERT INTO songs (id,name,url)
VALUE ('','Foobar','')
";
mysql_db_query($sql);
$id=mysql_insert_id($link);
mysql_db_query=("
UPDATE songs
SET (url='test.php?id=$id')
WHERE id=$id
";
This should work but notice that you have to do 2 SQL queries and this
could slow down executing your script if there is some loop.
--
Piotr Duszynski
http://www.softomat.com.pl
http://filmomat.3miasto.pl
http://www.3miasto.pl
> Try doing SetCookie(SESS_ID, ''); as well.
I try it but doesn't work either...
If someone fix this please help, I'm very worried right now.
Thanks again.
Hello all.
Sorry, I know sessions come up a lot.
I am attempting to use sessions for login tracking. The session starts
fine, sends the cookie fine(login as the session name), registers login as
a session var, then location should switch to index. all my files except
login include() a file called header.php which if login is not registered
redirects to login. Except login is never registered when it hits header.
The code I use to initialize the session is below. Also, no data is saved
in /tmp as it should be. I missed something. I just can't figure out
what. :( Any help would be appreciated. Thanks in advance.
---Matt
if ($success)
{
//set the session name to the login, start the session,
register the login in the session
//destroy any old data
@session_destroy();
session_name($login);
session_start();
session_register("login");
header ("Location: index.php");
exit;
}
Matt, I'm not sure I understand your situation, but here's how
I use sessions:
1. at the start of every PHP script, do "session_start();"
2. after session_start(), for every session variable you
want to register, do "session_register("var_name");"
3. from that point forward, to give that session variable
a value, that will be carried forward into other scripts
(after the other script does a "session_start()"),
just do
$var_name = "new value";
or to print the current value of $var_name, just do
echo "Value of session variable \$var_name = $var_name";
that's it.
You only need to do session_destroy() when you actually want
to destroy all the session variables for the current session -
if you do that in every script, then you obviously won't be
carrying over any session variable values from one script
to the next.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Matthew Mundy [[EMAIL PROTECTED]] wrote:
> Hello all.
> Sorry, I know sessions come up a lot.
> I am attempting to use sessions for login tracking. The session starts
> fine, sends the cookie fine(login as the session name), registers login as
> a session var, then location should switch to index. all my files except
> login include() a file called header.php which if login is not registered
> redirects to login. Except login is never registered when it hits header.
> The code I use to initialize the session is below. Also, no data is saved
> in /tmp as it should be. I missed something. I just can't figure out
> what. :( Any help would be appreciated. Thanks in advance.
> ---Matt
>
> if ($success)
> {
> //set the session name to the login, start the session,
> register the login in the session
> //destroy any old data
> @session_destroy();
> session_name($login);
> session_start();
> session_register("login");
> header ("Location: index.php");
> exit;
> }
>
>
> --
> 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]
Augusto Cesar Castoldi wrote:
>
> In the begin of my site, I have the following code:
> <?
> $buffer = str_replace("%99", $total, $buffer);
> ?>
>
> And somewhere on <html> tag I write %99.
>
> I pretend to replace the %99 with $total. Why it doesn't work? When I
> publish my site appears the %99 on screen, and not the $total.
>
> thanks,
>
> Augusto Cesar Castoldi
>
Hi there,
I guess you have print $buffer
Jason
--
Jason Murray
Developer
http://www.jwebmedia.com/
1 877 525 jWEB
Because you must replace it after $total and $buffer are defined, not
before.
This works :
<?php
$total = 'foo';
$buffer = 'blah blah %99 blah blah';
$buffer = str_replace('%99', $total, $buffer);
print $buffer;
?>
This does not work :
<?php
$buffer = str_replace('%99', $total, $buffer);
$total = 'foo';
$buffer = 'blah blah %99 blah blah';
print $buffer;
?>
Regards,
Philip Olson
http://www.cornado.com/
On Wed, 31 Jan 2001, Augusto Cesar Castoldi wrote:
> In the begin of my site, I have the following code:
> <?
> $buffer = str_replace("%99", $total, $buffer);
> ?>
>
> And somewhere on <html> tag I write %99.
>
> I pretend to replace the %99 with $total. Why it doesn't work? When I
> publish my site appears the %99 on screen, and not the $total.
>
> thanks,
>
> Augusto Cesar Castoldi
>
>
> --
> 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]
>
Has anyone had any experience using php on a Cobalt Raq4 server? any bugs or
weird stuff i should know about?
------------------------------------------------------
There are more than 1,000 chemicals in a cup of coffee.
Of these, only 26 have been tested,
....and half caused cancer in rats.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
I currently have a dedicated RaQ3 server which runs PHP great. Before I got
the RaQ3 my host provider was using a RaQ4 which also ran great. No problems
on my end using the RaQ servers and PHP.
David Smith
----- Original Message -----
From: Jamie Thompson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 12:13 PM
Subject: [PHP] Cobalt Raq Servers & PHP
> Has anyone had any experience using php on a Cobalt Raq4 server? any bugs
or
> weird stuff i should know about?
>
> ------------------------------------------------------
> There are more than 1,000 chemicals in a cup of coffee.
> Of these, only 26 have been tested,
> ....and half caused cancer in rats.
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 administrators, e-mail: [EMAIL PROTECTED]
>
The number of variables you are using probably won't make much of an impact
on performance. You may want to test doing it both ways, you can use the
gettimeofday function to do function profiling, it will return the time with
microsecond accuracy. I'm guessing one call to the database at the start of
script execution would be much faster assuming all the variables are in the
same row. A lot of the time spent executing the query is spent on doing a
disk seek, which will be greatly reduced if everything is placed in one
call.
Jon Snell
-----Original Message-----
From: Andrew Elliston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 1:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] sessions - max number of variables before things get bad?
I'm exploring sessions in PHP4 as I build a new site, and I have decided to
rely on them more heavily than in the past.
Basically, I'd like to set things up so that when someone logs into the
site, all of their accounts variables are queried from a database and loaded
into session variables (we're talking about 50 variables, most just 1-3
words). Does this sound reasonable for a relatively high traffic site? If I
don't do this, then many of those variables will probably be queried from a
database more than once during a visit, which seems unnecessary when I can
use session variables.
Are there any guidelines on the performance penalty for using large numbers
of session variables? Or is the affect so minute that I really shouldn't
worry about it? (especially compared to querying a database)
Thanks,
Andrew
--
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 at the end of my rope here...
I have a 100,000+ line file containing IP addresses. For each line, I need
to run a "gethostbyaddr" command. However, some lines take a long time to
timeout. Is there a way I can decrease this timeout period to one or two
seconds?
Thanks!!
--
Aaron Gould
Programmer/Web Developer
Parts Canada - http://www.partscanada.com
Aaron Gould wrote:
>
> I'm at the end of my rope here...
>
> I have a 100,000+ line file containing IP addresses. For each line, I need
> to run a "gethostbyaddr" command. However, some lines take a long time to
> timeout. Is there a way I can decrease this timeout period to one or two
> seconds?
>
> Thanks!!
>
> --
> Aaron Gould
> Programmer/Web Developer
> Parts Canada - http://www.partscanada.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 administrators, e-mail: [EMAIL PROTECTED]
I am a Perl programmer by trade, but PHP has so many qualities of Perl I
wonder if there is some sort of Alarm command. In Perl, you would set
an alarm to control the timeout.
Does anyone know of such a function in PHP?
Your best bet would be to do this in another language such as perl or c
where you can build a multithreaded application to look these up. Along the
same note you can also split the file into a number of parts and run
multiple instances of the same script. Afaik, the only way to decrease the
timeout on a host lookup is to write your own nameserver query code. If all
of this is outside of the scope of your programming knowledge, I would
suggest biting the bullet and waiting for your script to complete. Then
make a system to process new entries into the system when they are received.
Also...why do you need to do this? It seems very odd.
Jon Snell
-----Original Message-----
From: Aaron Gould [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 11:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] gethostbyaddr timeout
I'm at the end of my rope here...
I have a 100,000+ line file containing IP addresses. For each line, I need
to run a "gethostbyaddr" command. However, some lines take a long time to
timeout. Is there a way I can decrease this timeout period to one or two
seconds?
Thanks!!
--
Aaron Gould
Programmer/Web Developer
Parts Canada - http://www.partscanada.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 administrators, e-mail: [EMAIL PROTECTED]
Hello everybody,
I'm trying to do a file upload from the users computer via HTML file form element
to a Linux server running Apache. The file is selected by the user from her
or his computer, they hit the submit button and the file goes to /print/ folder
(dir relative to uploading script on the server). I use the following code:
/**************************Upload'i file*********************/
function upload($file)
{
$name = split("\\\\",$file); // Get filename
$name = end($name);
$fd = fopen($file, "w+"); /*BTW, this is line 12 */
$filedata = addslashes(fread($fd, filesize($pilt)));
fputs("/print/$name", stripslashes($filedata));
fclose($fd);
/*copy($file,"print/".$name); Kopeeri fail kausta
fputs($fp, $header);
fclose($fp);
unlink($file);*/
return $name;
}
/**************************Upload'i file*********************/
I get the following error code:
/******************** ERROR *****************************/
Warning: fopen("C:\\Data\\Lauri\\Selja_seadused.doc","w+") - Permission denied
in /home/saue/public_html/oigusaktid/funktsioonid.php3 on line 12
Warning: Supplied argument is not a valid File-Handle resource in
/home/saue/public_html/oigusaktid/funktsioonid.php3 on line 13
Warning: Supplied argument is not a valid File-Handle resource in
/home/saue/public_html/oigusaktid/funktsioonid.php3 on line 14
Warning: Supplied argument is not a valid File-Handle resource in
/home/saue/public_html/oigusaktid/funktsioonid.php3 on line 15
/******************** ERROR *****************************/
Thanks for your help in advance!
Yours truly,
Lauri
Lauri,
supposing you name the file input tag "myfile" (like <INPUT NAME="file"
TYPE="myfile">), then
$myfile contains the name of the temporary file on the server, while
$myfile_name contains the filename on the client's system.
See also
http://www.php.net/manual/en/features.file-upload.php
Drop me a line if you are still stuck,
Ben
Lauri Vain wrote:
>
> Hello everybody,
>
> I'm trying to do a file upload from the users computer via HTML file form element
> to a Linux server running Apache. The file is selected by the user from her
> or his computer, they hit the submit button and the file goes to /print/ folder
> (dir relative to uploading script on the server). I use the following code:
>
>
> /**************************Upload'i file*********************/
> function upload($file)
> {
> $name = split("\\\\",$file); // Get filename
> $name = end($name);
>
> $fd = fopen($file, "w+"); /*BTW, this is line 12 */
> $filedata = addslashes(fread($fd, filesize($pilt)));
> fputs("/print/$name", stripslashes($filedata));
> fclose($fd);
>
> /*copy($file,"print/".$name); Kopeeri fail kausta
> fputs($fp, $header);
> fclose($fp);
> unlink($file);*/
> return $name;
> }
> /**************************Upload'i file*********************/
>
> I get the following error code:
> /******************** ERROR *****************************/
> Warning: fopen("C:\\Data\\Lauri\\Selja_seadused.doc","w+") - Permission denied
>
> in /home/saue/public_html/oigusaktid/funktsioonid.php3 on line 12
>
> Warning: Supplied argument is not a valid File-Handle resource in
> /home/saue/public_html/oigusaktid/funktsioonid.php3 on line 13
>
> Warning: Supplied argument is not a valid File-Handle resource in
> /home/saue/public_html/oigusaktid/funktsioonid.php3 on line 14
>
> Warning: Supplied argument is not a valid File-Handle resource in
> /home/saue/public_html/oigusaktid/funktsioonid.php3 on line 15
> /******************** ERROR *****************************/
>
> Thanks for your help in advance!
>
> Yours truly,
> Lauri
>
> --
> 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]
Here is the code i'm running for my file upload and it
work correctly:
// file with submit form
<form name="postfile" method="post"
action="./postfile.php" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE"
value="10000000">
<input type="file" name="name of var" size="x">
<input type="submit" name="submit" value="submit">
</form>
// This is the file that you want to use as post
// example is postfile.php
<?php
copy($name of var_name, "/full/path/$name of var");
?>
// That will copy the file.
here is the full function I have implemented with my
page to store path into mysql.
function
upload_prog($file,$filename,$des,$name,$size,$dateadded,$addedby,$type)
{
copy($file, "c:/full/path/to/dir/$filename");
$result = mysql_query("INSERT INTO
tablename(prog_name,prog_size,prog_des,prog_url,prog_date_added,added_by,prog_type)
VALUES
('$name','$size','$des','./filez/$filename','$dateadded','$addedby','$type')");
$id = mysql_insert_id();
$result = mysql_query("SELECT * FROM tablename WHERE
id='$id'");
$myrow = mysql_fetch_array($result);
}
// this will store the path into the MySQL and you can
use it as a link.
Hope this helps you.
James
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
Hi,
Anybody knows if this sourcecode is correct to calculate the numbers of days in
certain date ?
$m - month; $d - day, $y - year
if($m<=2){
$y--;
$m+=13;
}
else
$m++;
$nd = (1461 * $y / 4) + (153*$m/5) + $d;
Because I use this code in a function and sometimes it your and others dont ....
Best Regards
Miguel Loureiro < [EMAIL PROTECTED] >
> Anybody knows if this sourcecode is correct to calculate the
> numbers of days in certain date ?
Why are you going through all that effort?
$janOne = mktime( 0, 0, 0, 1, 1, date( "Y" ));
$myDate = mktime( 0, 0, 0, $m, $d, $y );
$daysInYear = ( $myDate - $janOne ) / 86400;
That should do it for you...
Chris
> > Anybody knows if this sourcecode is correct to calculate the
> > numbers of days in certain date ?
> Why are you going through all that effort?
> $janOne = mktime( 0, 0, 0, 1, 1, date( "Y" ));
> $myDate = mktime( 0, 0, 0, $m, $d, $y );
> $daysInYear = ( $myDate - $janOne ) / 86400;
> That should do it for you...
Or, just found this (I thought there this was available, but missed
it the first time)
echo date( "z" );
Chris
Ahh, date math... I spent 2 weeks trying to solve this once. I'm not
exactly sure what you are trying to calculate here. If you want the
number of days since the year 1601, no problem. I'm not sure where you
get your 1461 from, tho...
here's an algorthm I did in perl, which is fairly similar:
my %day_counts = (1 => 0,
2 => 31,
3 => 59,
4 => 90,
5 => 120,
6 => 151,
7 => 181,
8 => 212,
9 => 243,
10 => 273,
11 => 304,
12 => 334);
$day_count = (($year-1601)*365)+(int(($year-1601)/4));
$day_count += $day_counts{$perp_month};
$day_count += $day;
# leap year
if (int(($year-1600)/4) eq 0) {
if ($month > 2) {
$day_count++;
}
}
# adjust for leap year values that aren't a leap year
foreach my $key (1700,1800,1900,2100,2200,2300,2500,2600,2700) {
if ((($year == $key) && ($month > 2)) || ($year > $key)) {
$day_count--;
}
}
If anyone cares to translate into php, might be nice to have, but
doesn't php have a pretty good set of calendaring functions already?
haven't used 'em yet, but i looked at 'em a little...
johnny p.
> -----Original Message-----
> From: Miguel Loureiro [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 11:36 AM
> To: php-gen
> Subject: [PHP] Is correct ??
>
>
> Hi,
> Anybody knows if this sourcecode is correct to calculate the
> numbers of days in certain date ?
>
> $m - month; $d - day, $y - year
> if($m<=2){
>
> $y--;
>
> $m+=13;
>
> }
>
> else
>
> $m++;
>
> $nd = (1461 * $y / 4) + (153*$m/5) + $d;
>
> Because I use this code in a function and sometimes it your
> and others dont ....
>
> Best Regards
>
> Miguel Loureiro < [EMAIL PROTECTED] >
>
>
I'm trying to upload i file through a webpage...
--> add.php3
<FORM method="post" action="do_add.php3">
<input type="file" size=40 name="userfile">
<INPUT type="submit" name="pub" value="Publiser">
</form>
--> do_add.php3
copy($userfile, "/imgs/artikler/test.jpg");
unlink($userfile);
--> ERROR msg..:
Warning: Unable to create '/imgs/artikler/test.jpg': No such file or directory in
c:/programfiler/apache group/apache/htdocs/do_add.php3 on line 22
--> php.ini
upload_tmp_dir = c:\programfiler\apache group\apache\htdocs\temp\
Note: I'm currently running the webserver on Win98 (I know, it sucks!)
Any tips anyone?
---------------------------------
Fredrik A. Takle
Bergen, Norway
[EMAIL PROTECTED]
>From the fine manual:
A file upload screen can be built by creating a special form which looks
something like this:
Example 19-1. File Upload Form
<FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field
must precede the file input field and its value is the maximum filesize
accepted. The value is in bytes.
johnny p.
> -----Original Message-----
> From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 12:00 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] copy() ??
>
>
> I'm trying to upload i file through a webpage...
>
> --> add.php3
> <FORM method="post" action="do_add.php3">
> <input type="file" size=40 name="userfile">
> <INPUT type="submit" name="pub" value="Publiser">
> </form>
>
>
> --> do_add.php3
> copy($userfile, "/imgs/artikler/test.jpg");
> unlink($userfile);
>
> --> ERROR msg..:
> Warning: Unable to create '/imgs/artikler/test.jpg': No such
> file or directory in c:/programfiler/apache
> group/apache/htdocs/do_add.php3 on line 22
>
> --> php.ini
> upload_tmp_dir = c:\programfiler\apache group\apache\htdocs\temp\
>
> Note: I'm currently running the webserver on Win98 (I know, it sucks!)
>
> Any tips anyone?
>
> ---------------------------------
> Fredrik A. Takle
> Bergen, Norway
> [EMAIL PROTECTED]
>
>
yes, put the whole path in the quotes, ie:
copy($userfile_name,
"C:/full/path/to/imgs/artiker/$userfile");
Hope that works
--- Fredrik Arild Takle <[EMAIL PROTECTED]> wrote:
> I'm trying to upload i file through a webpage...
>
> --> add.php3
> <FORM method="post" action="do_add.php3">
> <input type="file" size=40 name="userfile">
> <INPUT type="submit" name="pub" value="Publiser">
> </form>
>
>
> --> do_add.php3
> copy($userfile, "/imgs/artikler/test.jpg");
> unlink($userfile);
>
> --> ERROR msg..:
> Warning: Unable to create '/imgs/artikler/test.jpg':
> No such file or directory in c:/programfiler/apache
> group/apache/htdocs/do_add.php3 on line 22
>
> --> php.ini
> upload_tmp_dir = c:\programfiler\apache
> group\apache\htdocs\temp\
>
> Note: I'm currently running the webserver on Win98
> (I know, it sucks!)
>
> Any tips anyone?
>
> ---------------------------------
> Fredrik A. Takle
> Bergen, Norway
> [EMAIL PROTECTED]
>
>
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
Can anyone recommend a good (eficient) way of tracking downloaded
(read) messages from a nntp server? I would like to run a script to
retrieve a couple news groups and archive them, but I am unsure as to
the best method of tracking which messages I have. I will likely be
storing messages in mysql databse and I am using php4. I have been
playing with a little code and can retrieve a list of messages as well
as the headers/body etc, I am just unsure how to track message status.
ANyone have any ideas?
--
Larry Hotchkiss
I was wondering if anyone as successfully pulled info from a DB2 Database on
As400. My enviroment is
Win2K server/php4.0.4/ZendOptimizer/IIS5. I was wondering how I could
directly query the AS400. Or would it be wiser to pull the info from the
AS400 into MSSQL Server. I was wondering how I would do either of these
options.
Ryan Conover
Its my understanding that you use the odbc functions to access db/2
400. I also recall reading that the db2/400 functionality is true db2
functionality and does not use the generic odbc layer even though it is
grouped in. Apparently its smart enough to know. Depending on where you
got your windows ver of php, you should just be able to uncomment the
line in your php.ini so it can use odbc and make sure the extension path
is set correctly.
--
Larry Hotchkiss
"Conover, Ryan" wrote:
>
> I was wondering if anyone as successfully pulled info from a DB2 Database on
> As400. My enviroment is
> Win2K server/php4.0.4/ZendOptimizer/IIS5. I was wondering how I could
> directly query the AS400. Or would it be wiser to pull the info from the
> AS400 into MSSQL Server. I was wondering how I would do either of these
> options.
>
> Ryan Conover
>
Hi,
Probably some of you are laughing while reading this :) But I have seen the
word "foo" used so many time (in programming) from different resources for
different reasons. Has it any meaning? (e.g. in PHP)
Regards,
Sumarlidi Einar Dadason
SED - Graphic Design
------------------------------------------
Phone: (+354) 4615501
Mobile: (+354) 8960376
Fax: (+354) 4615503
E-mail: [EMAIL PROTECTED]
Homepage: www.sed.is <- New Homepage!
------------------------------------------
> Probably some of you are laughing while reading this :) But I have seen the
> word "foo" used so many time (in programming) from different resources for
> different reasons. Has it any meaning? (e.g. in PHP)
It's just one of those words which stuck around. People like Leslie
Lamport (LaTeX) and other computer scientists have kept it alive for at
least a century now.
Most people believe it originates from "foobar" or "fubar" which is
actually an acronym for "Fucked Up Beyond All Recognition". :-)
Regards,
Soeren Staun-Pedersen - [EMAIL PROTECTED]
------
"The internet is full, beat it"
- Me.
Check out :
http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?query=foo
Within is a lengthy explanation of the word and its origin. Btw, it's
just a word as is 'blah' and 'bar' and 'apple'. But 'foo' is a cult
classic!
Regards,
Philip Olson
http://www.cornado.com/
On Wed, 31 Jan 2001, SED wrote:
> Hi,
>
> Probably some of you are laughing while reading this :) But I have seen the
> word "foo" used so many time (in programming) from different resources for
> different reasons. Has it any meaning? (e.g. in PHP)
>
> Regards,
> Sumarlidi Einar Dadason
>
> SED - Graphic Design
>
> ------------------------------------------
> Phone: (+354) 4615501
> Mobile: (+354) 8960376
> Fax: (+354) 4615503
> E-mail: [EMAIL PROTECTED]
> Homepage: www.sed.is <- New Homepage!
> ------------------------------------------
>
>
> --
> 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]
>
On Wednesday 31 January 2001 19:35, SED wrote:
> Probably some of you are laughing while reading this :) But I have seen
> the word "foo" used so many time (in programming) from different
Read
http://www.tuxedo.org/~esr/jargon/html/entry/foo.html
for a detailed explanation :)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those who will not reason, are bigots,
those who cannot, are fools,
and those who dare not, are slaves.
- George Gordon Noel Byron (1788-1824), [Lord Byron]
And don't forget "goo". "foo" and "goo" go together:-)
-Stathis.
Soeren Staun-Pedersen wrote:
>
> > Probably some of you are laughing while reading this :) But I have seen the
> > word "foo" used so many time (in programming) from different resources for
> > different reasons. Has it any meaning? (e.g. in PHP)
>
> It's just one of those words which stuck around. People like Leslie
> Lamport (LaTeX) and other computer scientists have kept it alive for at
> least a century now.
>
> Most people believe it originates from "foobar" or "fubar" which is
> actually an acronym for "Fucked Up Beyond All Recognition". :-)
>
> Regards,
>
> Soeren Staun-Pedersen - [EMAIL PROTECTED]
> ------
> "The internet is full, beat it"
> - Me.
>
> --
> 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]
try the jargon file, it will tell you more about where foo came from.
Gfunk - http://www.gfunk007.com/
I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
----- Original Message -----
From: "Rouvas Stathis" <[EMAIL PROTECTED]>
To: "Soeren Staun-Pedersen" <[EMAIL PROTECTED]>
Cc: "SED" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 9:41 AM
Subject: Re: [PHP] What is "foo"?
> And don't forget "goo". "foo" and "goo" go together:-)
> -Stathis.
>
> Soeren Staun-Pedersen wrote:
> >
> > > Probably some of you are laughing while reading this :) But I have
seen the
> > > word "foo" used so many time (in programming) from different resources
for
> > > different reasons. Has it any meaning? (e.g. in PHP)
> >
> > It's just one of those words which stuck around. People like Leslie
> > Lamport (LaTeX) and other computer scientists have kept it alive for at
> > least a century now.
> >
> > Most people believe it originates from "foobar" or "fubar" which is
> > actually an acronym for "Fucked Up Beyond All Recognition". :-)
> >
> > Regards,
> >
> > Soeren Staun-Pedersen - [EMAIL PROTECTED]
> > ------
> > "The internet is full, beat it"
> > - Me.
> >
> > --
> > 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]
>
> --
> 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 am using Apache user authentication, and it works fine. However, if there
is a symbolic link inside a securied directory, the symbolic linked file
will deny any access.
For example, directory "/apps/apache/docs/test1" is a securied directory,
and there is a symbolic linked file "file1.txt", after you logged into
directory "/apps/apache/docs/test1" and try to access "file1.txt", you will
be denied for the access?
Does anyone have any idea?
Thanks,
David
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Add the FollowSymLinks to your httpd.conf file for that directory. I
don't recommend doing this, tho, since it *is* a security hole.
<Directory /apps/apache/docs/test1>
Options Indexes FollowSymLinks
</Directory>
johnny p.
> -----Original Message-----
> From: david klein [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 1:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Symbolic link fails when User Authentication comes in
>
>
> I am using Apache user authentication, and it works fine.
> However, if there
> is a symbolic link inside a securied directory, the symbolic
> linked file
> will deny any access.
>
> For example, directory "/apps/apache/docs/test1" is a
> securied directory,
> and there is a symbolic linked file "file1.txt", after you
> logged into
> directory "/apps/apache/docs/test1" and try to access
> "file1.txt", you will
> be denied for the access?
>
> Does anyone have any idea?
>
> Thanks,
> David
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.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 administrators, e-mail:
> [EMAIL PROTECTED]
>
>
Johnny,
It works, but how could this create a security hole? Could you please
expalin a little bit more?
Thanks,
David
>From: "johnny p." <[EMAIL PROTECTED]>
>To: "david klein" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: RE: [PHP] Symbolic link fails when User Authentication comes in
>Date: Wed, 31 Jan 2001 13:54:22 -0600
>
>Add the FollowSymLinks to your httpd.conf file for that directory. I
>don't recommend doing this, tho, since it *is* a security hole.
>
> <Directory /apps/apache/docs/test1>
> Options Indexes FollowSymLinks
> </Directory>
>
>johnny p.
>
> > -----Original Message-----
> > From: david klein [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 31, 2001 1:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Symbolic link fails when User Authentication comes in
> >
> >
> > I am using Apache user authentication, and it works fine.
> > However, if there
> > is a symbolic link inside a securied directory, the symbolic
> > linked file
> > will deny any access.
> >
> > For example, directory "/apps/apache/docs/test1" is a
> > securied directory,
> > and there is a symbolic linked file "file1.txt", after you
> > logged into
> > directory "/apps/apache/docs/test1" and try to access
> > "file1.txt", you will
> > be denied for the access?
> >
> > Does anyone have any idea?
> >
> > Thanks,
> > David
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.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 administrators, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
>--
>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]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Here are instructions that worked for me, although the PHP compilation tends
to be a bit finicky about which version/type of 'make' you use...
assumes apache_1.3.14.tar is in /var/apache
# cd /var/apache
# tar -xvf apache_1.3.14.tar
# cd apache_1.3.14
# ./configure --prefix=/var/apache
assumes php-4.0.4pl1.tar is in /var/php
# cd /var/php
# tar -xvf php-4.0.4pl1.tar
# cd php-4.0.4pl1
# ./configure --with-mysql=/var/mysql \
-> --with-xml \
-> --with-apache=/var/apache/apache_1.3.14 \
-> --enable-track-vars
# make
# make install
# cp php.ini-dist /usr/local/lib/php.ini
go into php.ini and change “max_execution_time = 60” [originally 30--this is
a change recommended on Devshed]
# cd /var/apache/apache_1.3.14
# ./configure \
-> --activate-module=src/modules/php4/libphp4.a \
-> --enable-module=php4 \
-> --prefix=/var/apache \
# make
# make install
O- ~ARK
CFO, Hmedicine.com, Inc.
The only European country with which we have not gone to war is
Portugal...and that was probably an oversight...The Right Honorable John
Major
> -----Original Message-----
> From: Erich Kolb [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 30, 2001 4:30 PM
>
> Does anyone know where to obtain instructions on how to upgrade to PHP
> 4.04pl1? Has anyone done this yet? What kind of problems did
> you run into?
Hi!
This happens only when I use php as a module:
When I'd like to run a command with exec or system function I got always this message
and the program never executes:
Warning: Unable to fork [the command's name what I'd like to run] in filename on line
XY
What' the matter?
Thanks: czg
I know this is not really a PHP question, but it should make for a good thread. :)
I was wondering what other PHP people charge to write PHP? I have just been given a
project for a fairly large customer, much larger than I normally do work for. So I am
VERY confused.concerned about how to price it. Most of my other PHP projects have been
done for small single owners businesses, and the PHP has been pretty basic.
Now that I can actually do what I am being asked without have to learn it, I am stuck.
I did a shopping cart for someone, but I didn't charge them a REAL price because I
didn't know how to do it with PHP. So, I of course didn't charge the client for my
learning curve.
I know the price is very dependant upon the task. What I am doing is creating a
web-based front-end for a MySQL database. I'll need to create the database tables,
etc. The front-end is going to be rather dynamic since the data content depends
largely on the previous choices of the end-user. One or two tables with 20-30 fields.
5-6 pages of html and PHP.
I'm just scouting this out, and am VERY confident with the contributors to this list
and their opinions.
TIA,
Shane
This is a very good question and deal with it everytime I bid a project.
Rule of thumb:
Ask for what you are worth, if you don't you will wish you did.
I have successfully bid on project with hourly rates ranging from $85 -
$125. The $$$ range changes based on project needs(db work(+$),
e-commerce(+$), etc), and other projects going on (a.k.a time availability:
not a lot of time then the price goes up). Also I am not sure how much
demographics has do with it, but I can see the numbers being higher on the
coasts then in Missouri which is where we are located.
Sincerely,
Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952
-----Original Message-----
From: Shane McBride [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 2:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Pricing for PHP programming???
I know this is not really a PHP question, but it should make for a good
thread. :)
I was wondering what other PHP people charge to write PHP? I have just been
given a project for a fairly large customer, much larger than I normally do
work for. So I am VERY confused.concerned about how to price it. Most of my
other PHP projects have been done for small single owners businesses, and
the PHP has been pretty basic.
Now that I can actually do what I am being asked without have to learn it, I
am stuck. I did a shopping cart for someone, but I didn't charge them a REAL
price because I didn't know how to do it with PHP. So, I of course didn't
charge the client for my learning curve.
I know the price is very dependant upon the task. What I am doing is
creating a web-based front-end for a MySQL database. I'll need to create the
database tables, etc. The front-end is going to be rather dynamic since the
data content depends largely on the previous choices of the end-user. One or
two tables with 20-30 fields. 5-6 pages of html and PHP.
I'm just scouting this out, and am VERY confident with the contributors to
this list and their opinions.
TIA,
Shane
$3000 - $10,000 cdn month depending on the work. Some projects will take a
month, but can be done while working on three other projects, other require
dedicated time, this is more costly.
The more projects you do the greater your own list of libraries you develop
become, this makees the work easier and faster, you may want to charge the
same amount, or more because the work is done quicker, or less because its
easier for you now.
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Shane McBride"" <[EMAIL PROTECTED]> wrote in message
001a01c08bc3$f61aa9c0$[EMAIL PROTECTED]">news:001a01c08bc3$f61aa9c0$[EMAIL PROTECTED]...
I know this is not really a PHP question, but it should make for a good
thread. :)
I was wondering what other PHP people charge to write PHP? I have just been
given a project for a fairly large customer, much larger than I normally do
work for. So I am VERY confused.concerned about how to price it. Most of my
other PHP projects have been done for small single owners businesses, and
the PHP has been pretty basic.
Now that I can actually do what I am being asked without have to learn it, I
am stuck. I did a shopping cart for someone, but I didn't charge them a REAL
price because I didn't know how to do it with PHP. So, I of course didn't
charge the client for my learning curve.
I know the price is very dependant upon the task. What I am doing is
creating a web-based front-end for a MySQL database. I'll need to create the
database tables, etc. The front-end is going to be rather dynamic since the
data content depends largely on the previous choices of the end-user. One or
two tables with 20-30 fields. 5-6 pages of html and PHP.
I'm just scouting this out, and am VERY confident with the contributors to
this list and their opinions.
TIA,
Shane
I charge a rate of $80 an hour or so, and haven't had any problems.
Chad
-----Original Message-----
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 3:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Pricing for PHP programming???
$3000 - $10,000 cdn month depending on the work. Some projects will take a
month, but can be done while working on three other projects, other require
dedicated time, this is more costly.
The more projects you do the greater your own list of libraries you develop
become, this makees the work easier and faster, you may want to charge the
same amount, or more because the work is done quicker, or less because its
easier for you now.
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Shane McBride"" <[EMAIL PROTECTED]> wrote in message
001a01c08bc3$f61aa9c0$[EMAIL PROTECTED]">news:001a01c08bc3$f61aa9c0$[EMAIL PROTECTED]...
I know this is not really a PHP question, but it should make for a good
thread. :)
I was wondering what other PHP people charge to write PHP? I have just been
given a project for a fairly large customer, much larger than I normally do
work for. So I am VERY confused.concerned about how to price it. Most of my
other PHP projects have been done for small single owners businesses, and
the PHP has been pretty basic.
Now that I can actually do what I am being asked without have to learn it, I
am stuck. I did a shopping cart for someone, but I didn't charge them a REAL
price because I didn't know how to do it with PHP. So, I of course didn't
charge the client for my learning curve.
I know the price is very dependant upon the task. What I am doing is
creating a web-based front-end for a MySQL database. I'll need to create the
database tables, etc. The front-end is going to be rather dynamic since the
data content depends largely on the previous choices of the end-user. One or
two tables with 20-30 fields. 5-6 pages of html and PHP.
I'm just scouting this out, and am VERY confident with the contributors to
this list and their opinions.
TIA,
Shane
--
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]
My normal rate is $80/hr (accross the board). I have friends that get up in the
low $100's an hour. Depending on the customer, project and tax form (W2 or 1099)
I slide the rate up or down.
--Joe
On Wed, Jan 31, 2001 at 03:25:27PM -0500, Shane McBride wrote:
> I know this is not really a PHP question, but it should make for a good thread. :)
>
> I was wondering what other PHP people charge to write PHP? I have just been given a
>project for a fairly large customer, much larger than I normally do work for. So I am
>VERY confused.concerned about how to price it. Most of my other PHP projects have
>been done for small single owners businesses, and the PHP has been pretty basic.
>
> Now that I can actually do what I am being asked without have to learn it, I am
>stuck. I did a shopping cart for someone, but I didn't charge them a REAL price
>because I didn't know how to do it with PHP. So, I of course didn't charge the client
>for my learning curve.
>
> I know the price is very dependant upon the task. What I am doing is creating a
>web-based front-end for a MySQL database. I'll need to create the database tables,
>etc. The front-end is going to be rather dynamic since the data content depends
>largely on the previous choices of the end-user. One or two tables with 20-30 fields.
>5-6 pages of html and PHP.
>
> I'm just scouting this out, and am VERY confident with the contributors to this list
>and their opinions.
>
> TIA,
> Shane
--
-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o)
http://www.miester.org http://www.care2.com /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V
-------------------------------------------------------------------------------
<?
echo @$test;
?>
This works without Zend Optimizer installed, as soon as I turn on Zend I get
'undifined variable'. Why doesn't the @ turn this warning off when Zend
installed?
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
Chris,
Thanks for the report. This will be fixed in the next version of the Zend
Optimizer.
Andi
At 12:32 PM 1/31/2001 -0800, Chris Lee wrote:
><?
> echo @$test;
>?>
>
>This works without Zend Optimizer installed, as soon as I turn on Zend I get
>'undifined variable'. Why doesn't the @ turn this warning off when Zend
>installed?
>
>--
>
>
>
>Chris Lee
>Mediawaveonline.com
>[EMAIL PROTECTED]
>
>
>
>
>
>
>--
>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]
Alright, on my site, I have a news section, whenever i
goto insert new news in the Admin area, I have to
insert <br> or /n in it, while typing in the news.
How do I make this a automated process I know it can
be done, but addslashes doesn't work and
htmlspecailchars() doesn't work what will?
Thanks,
James
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
Use nl2br (new line to <BR>).
Mick
On Wed, 31 Jan 2001, James Smith wrote:
> Alright, on my site, I have a news section, whenever i
> goto insert new news in the Admin area, I have to
> insert <br> or /n in it, while typing in the news.
> How do I make this a automated process I know it can
> be done, but addslashes doesn't work and
> htmlspecailchars() doesn't work what will?
>
> Thanks,
>
> James
>
> __________________________________________________
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.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 administrators, e-mail: [EMAIL PROTECTED]
>
>
Is there a way that when a user signs up for a
user/pass on a site, to automatically update the
.htpasswd on the site? Right now I'm running a Win2k
Pro, with Apache installed and MySQL/PHP.
Thanks,
James
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
Yes, you can, just write a script to call "htpasswd -b yourUserFile userID
passwd".
:)
David
>From: James Smith <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: [PHP] .htpasswd?
>Date: Wed, 31 Jan 2001 13:21:35 -0800 (PST)
>
>Is there a way that when a user signs up for a
>user/pass on a site, to automatically update the
>.htpasswd on the site? Right now I'm running a Win2k
>Pro, with Apache installed and MySQL/PHP.
>
>Thanks,
>
>James
>
>__________________________________________________
>Get personalized email addresses from Yahoo! Mail - only $35
>a year! http://personal.mail.yahoo.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 administrators, e-mail: [EMAIL PROTECTED]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
check this out:
http://www.hotscripts.com/Detailed/3903.html
It does what you're asking for...
why write the code when you can copy and paste? :)
-----Original Message-----
From: James Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 1:22 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] .htpasswd?
Is there a way that when a user signs up for a
user/pass on a site, to automatically update the
.htpasswd on the site? Right now I'm running a Win2k
Pro, with Apache installed and MySQL/PHP.
Thanks,
James
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.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 administrators, e-mail: [EMAIL PROTECTED]
The way you have it now, ur just storing the path to
the gif. from the form field, use <input type="file"
name="file">
then in the insert area use:
$result = mysql_query("insert into (filename) VALUES
('$file')")
James
--- Yui Hiroaki <[EMAIL PROTECTED]> wrote:
> HI!
>
> I am using PHP in mySQL. I create table in database
> and insert
> 'binary'(*.gif).
> But I do not know how to use this binary using PHP
> and show website. Please
> help me.
>
>
> $)create table xxx (col longlob);
> $)insert into xxx values("image\yyy.gif");
>
>
> I want to display :yyy.gif in html
>
>
>
> Thank you
> yui
>
> --
> PHP Database 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]
>
__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
He!
It's very simple! When you've a <textarea name="text"></textarea>, and want
per example to insert it into the database, use the PHP function nl2br() at
the moment after select and print the data.
So, it will be:
- first insert the $text into the database
- SELECT text FROM XXX et. etc.
- $text = nl2br($text); (PHP inserts <br>'s into $text)
- print($text);
You can also directly use the function nl2br and print the string after
submitting the form!
Ready!
Simple, isn't???
Bey bey,
Daniel Kieviet
Xsarus Internetservices
The Netherlands
http://www.xsarus.nl
[EMAIL PROTECTED]
----- Original Message -----
From: "James Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 1:18 PM
Subject: [PHP-DB] newlines in <textarea> boxes..
> Alright, on my site, I have a news section, whenever i
> goto insert new news in the Admin area, I have to
> insert <br> or /n in it, while typing in the news.
> How do I make this a automated process I know it can
> be done, but addslashes doesn't work and
> htmlspecailchars() doesn't work what will?
>
> Thanks,
>
> James
>
> __________________________________________________
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
> --
> PHP Database 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]
>
Hi,
What are the advantages/disadvantages of functions returning by reference?
TIA
--
Richard Heyes
What is the way to exit a function? For example:
function FooBar() {
if ($foo = $bar)
Exit_this_Function;
## otherwise execute the rest of this function
}
> What is the way to exit a function? For example:
> function FooBar() {
> if ($foo = $bar)
> Exit_this_Function;
> ## otherwise execute the rest of this function
> }
function FooBar() {
if ($foo = $bar)
return 0;
}
## otherwise execute the rest of this function
}
Chris
El Mié 31 Ene 2001 19:34, Karl J. Stubsjoen escribió:
> What is the way to exit a function? For example:
>
> function FooBar() {
>
> if ($foo = $bar)
> Exit_this_Function;
>
> ## otherwise execute the rest of this function
> }
return is what you want.
--
System Administration: It's a dirty job,
but someone told I had to do it.
-----------------------------------------------------------------
Martín Marqués email: [EMAIL PROTECTED]
Santa Fe - Argentina http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------
On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote:
> What is the way to exit a function? For example:
>
> function FooBar() {
>
> if ($foo = $bar)
> Exit_this_Function;
>
> ## otherwise execute the rest of this function
> }
Use "return". If you want your function to return a value, you
can use the syntax: return value;
Hope this helps,
--Steve
Hi! I'm a .signature virus! Copy me into yours and join the fun!
by the way,
if ($foo = $bar)
will return true simply if $bar is not null, i think you want
if ($foo == $bar)
thought I'd point that out, cause if you don't know return that nasty
one would probably bite you on the ass next :)
Gfunk - http://www.gfunk007.com/
I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
----- Original Message -----
From: "Steve Smith" <[EMAIL PROTECTED]>
To: "Karl J. Stubsjoen" <[EMAIL PROTECTED]>
Cc: "PHP Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 9:39 AM
Subject: Re: [PHP] Exit Function
> On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote:
>
> > What is the way to exit a function? For example:
> >
> > function FooBar() {
> >
> > if ($foo = $bar)
> > Exit_this_Function;
> >
> > ## otherwise execute the rest of this function
> > }
>
>
> Use "return". If you want your function to return a value, you
> can use the syntax: return value;
>
> Hope this helps,
>
> --Steve
>
> Hi! I'm a .signature virus! Copy me into yours and join the fun!
>
>
>
>
>
> --
> 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]
>
function some($foo, $bar)
{
if ($foo != $bar)
return ;
...
}
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
""Karl J. Stubsjoen"" <[EMAIL PROTECTED]> wrote in message
004701c08bd5$eecbc340$0afc020a@kstubsjoen">news:004701c08bd5$eecbc340$0afc020a@kstubsjoen...
> What is the way to exit a function? For example:
>
> function FooBar() {
>
> if ($foo = $bar)
> Exit_this_Function;
>
> ## otherwise execute the rest of this function
> }
>
>
> --
> 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 have a javascript to edit an html page thatI have written and have
been searching for a way to load a file into a text box and write the
contents to a file on the server when done in PHP. Is this possible? Any
direction is appreciated. Thanks in advance.
Hi
I am trying to install GD support with jpeg and it appears not to find
libjpeg
but I can see this.
Any ideas on what I am doing wrong.
Many Thanks
Tony
tar -zxvf /home/HOTspecial/src/php-4_0_3pl1_tar.tar
cd /home/HOTspecial/src/php-4.0.3pl1
./configure --with-mysql=/usr/local/mysql \
--with-xml \
--with-apache=../apache_1.3.12 \
--enable-track-vars \
--enable-filepro \
--enable-calendar \
--enable-safe-mode \
--enable-debug=no \
--with-mcrypt=/usr/local \
--with-gd=/usr/local \
--with-jpeg-dir-=/usr \
--with-exec-dir=/usr/local/php/bin
make
make install
cp php.ini-dist /usr/local/lib/php.ini
cd ..
Is there somewhere I can get a list
of all the php functions and a brief
description, instead of the full manual
like a cheat sheet of sorts
Jerry Lake
http://www.php.net/quickref.php is probably the best you'll get. no
descriptions, but it _is_ a list of all the functions.
Gfunk - http://www.gfunk007.com/
I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
----- Original Message -----
From: "Jerry Lake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 10:45 AM
Subject: [PHP] function list
> Is there somewhere I can get a list
> of all the php functions and a brief
> description, instead of the full manual
> like a cheat sheet of sorts
>
> Jerry Lake
>
>
> --
> 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]
>
On Thu, 1 Feb 2001, Josh G wrote:
> http://www.php.net/quickref.php is probably the best you'll get. no
> descriptions, but it _is_ a list of all the functions.
>
> Gfunk - http://www.gfunk007.com/
>
See:
http://zugeschaut-und-mitgebaut.de/php/
-steve
> ----- Original Message -----
> From: "Jerry Lake" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 01, 2001 10:45 AM
> Subject: [PHP] function list
>
>
> > Is there somewhere I can get a list
> > of all the php functions and a brief
> > description, instead of the full manual
> > like a cheat sheet of sorts
> >
> > Jerry Lake
...........................................................
. Steve Edberg [EMAIL PROTECTED] .
. Computer Consultant University of California, Davis .
. http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ .
...........................................................
Hello,
Does anyone have a function that tells you weather a variable holds a valid
e-mail address or not?
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------
I have a problem I'm not sure how to fix.
PART I
I have a form on a page that creates its variables dynamically. Here's an
example:
mysql_db_query($db, "SELECT * FROM table");
while ($row = mysql_fetch_array($result))
{
echo "<INPUT TYPE='CHECKBOX' NAME='chk_".$row["checkboxtype"]."'>";
}
PART II
I need to make reference to these dynamically created variables. How do I
do this? This does not work, obviously:
$chk_.$row["checkboxtype"]
Thanks in advance...
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com