http://se.php.net/mysql_pconnect
/David
Shivanischal [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi friends,
I wanted help on how to achieve persistent database connections in PHP.
The
database i use is MySQL. I would be grateful if u could also guide me to
resources that
do people even look at the manual? or search the php.net website?
http://au2.php.net/manual/en/ref.mysql.php
Runtime Configuration
The behaviour of these functions is affected by settings in php.ini.
Here's a short explanation of the configuration directives.
mysql.allow_persistent boolean
--- MiXmAsTr [EMAIL PROTECTED] wrote:
How can i do so header opens a new page in a new browser, instead
of opening the page inside the current browser?
header() allows you to set HTTP headers in your response to the client.
What are you wanting to do exactly?
Chris
=
Become a better Web
ooppss forgot this as well...
http://au2.php.net/mysql_pconnect
-Original Message-
From: Cody Phanekham
Sent: Friday, 5 September 2003 16:06
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Persistent database connections in PHP
do people even look at the manual? or search the php.net
Just use the same header.
and in the next page use
body onload=window.open(yourpage)
...
Murugesan
- Original Message -
From: Cesar Aracena [EMAIL PROTECTED]
To: 'Shivanischal' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 05, 2003 11:27 AM
Subject: RE: [PHP]
You are right anil,
I think we should collectively discourage people from attempting this
sort of this. I am no fan of webmin, cpanel or any of the other
vhost/admin stuff but at least they are likely to be more secure than
what can be scratched together in a hurry.
Anil Kumar K. wrote:
Unfortunetly setting quotes (eg for apache user)doesnt prevent from flooding
out entire disk. For example i can have running a script that will check
user directories every 15 minutes and if some directory will contain large
amount of apache generated files, user account will be disabled and
Hi,
Let's say you have PEAR installed in
/usr/local/php/lib/php
To use PEAR related classes, you should add
/usr/local/php/lib/php to your include_path; then restart the server ;)
or you can use ini_set() on top of your scripts.
Cheers,
Catalin
Richard Baskett [EMAIL
On Fri, 5 Sep 2003, Shivanischal wrote:
I wanted help on how to achieve persistent database connections in PHP. The
database i use is MySQL. I would be grateful if u could also guide me to
resources that tell me how to do it.
http://www.php.net/manual/en/function.mysql-pconnect.php
Hi all,
I wish to use fwrite() to create a small PHP file. So far, when I attempt
to do this, php parses the contents of the file that fwrite needs to
create. Eg, I have this:
$new_id = mysql_insert_id();
// create brand new file
$new_file = fopen(/var/www/html/$sitename/$submitted_url, w);
Is there an advantage or difference in running FIND_IN_SET() instead of
LIKE?
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 5:53 AM
To: Ralph Guzman; PHP General Mailing List
Subject: Re: [PHP] mysql Pattern Matching
From: Ralph
Hi
I am using a PHP / MySQL combination to send an email to all users in a
table.
When I run the script, say address1 in the resultset is [EMAIL PROTECTED],
address2 is [EMAIL PROTECTED] address3 is [EMAIL PROTECTED] When I run
the script, mail is sent to address1,address2 address3. Problem
Hi, all --
I thought I knew the trick for this, but I don't, and I have about an
hour to figure it out.
We're going to be taking down our web server for some unavoidable
maintenance and we want to put up a polite we're not here page rather
than just look like we went out of business. We're
Yep, but then I expect a timeout error because my script is running more
than say 20 seconds...
Ronald
Marco Schuler [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
Hi
Am Don, 2003-09-04 um 12.40 schrieb Ronald van Raaphorst:
I normally program in clarion (www.softvelocity.com)
yeah, but my unix server is located at my providers place, and I can't get a
core dump.
Ronald
Robert Cummings [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
I've accidentally had infinite recursion at times. Under Linux if
configured, you can get a core dump which can be loaded
Typing Apache custom 404 and clicking on I feel lucky would get you
to this information:
Apache
Add the following directive to your httpd.conf file (this file should be
edited by someone knowledgeable about configuring an Apache Web server)
or to an .htaccess file in your root (top-level) Web
Errr... that is, in Google. ;)
Bogdan
Bogdan Stancescu wrote:
Typing Apache custom 404 and clicking on I feel lucky would get you
to this information:
Apache
Add the following directive to your httpd.conf file (this file should be
edited by someone knowledgeable about configuring an Apache
[snip]
Anyone have a quick fix for a part of an html page that I do not want to
display until after October 1st, and not after October 31st ?
[/snip]
You must have missed the conditionals part of the manual
?php // untested
$display_start = 2003-10-01;
$display_end = 2003-10-31;
To answer your question, you probably can do
$new_file_content=.?.php\n . [...] . ?.;
But why in the world do you need this complication?
Bogdan
Vince Lamonica wrote:
Hi all,
I wish to use fwrite() to create a small PHP file. So far, when I attempt
to do this, php parses the contents of the
I don't think you can using headers. Why not Javascript?
Bogdan
Mixmastr wrote:
How can i do so header opens a new page in a new browser, instead of opening
the page inside the current browser?
-kjetil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
How can i do so header opens a new page in a new browser, instead of
opening
the page inside the current browser?
[/snip]
header does not do this, but you can do it with a target=_blank attrib
in your href tag or with JavaScript.
Have a pleasant and productive day.
--
PHP General Mailing
Bogdan --
...and then Bogdan Stancescu said...
%
% Typing Apache custom 404 and clicking on I feel lucky would get you
% to this information:
Ah! That's a good point; just make everything on the site a 404. It
means I'll have to muck about in my httpd.conf instead of just in the doc
root
[snip]
I wish to use fwrite() to create a small PHP file. So far, when I
attempt
to do this, php parses the contents of the file that fwrite needs to
create. Eg, I have this:
[/snip]
Vince I did this
?php
/*
** Write PHP with PHP
** 2003-09-05
*/
$newphp = fopen(/usr/server/test/new_php.php,
[snip]
while($row = mysql_fetch_array($result1))
{
$headers .= MIME-Version: 1.0\r\n;
$headers .= Content-type: text/html; charset=iso-8859-1\r\n;
$headers .= From: Website emailaddress\r\n;
$headers .= To: $row[email_address]\r\n;
$headers
Enda Nagle wrote:
mail($to, $subject, $message, $headers)
or print Could not send mail to customer;
print brfont size=1font color=ccmail sent to
/fontb$row[email_address]/b;
Email was sent to $to, and not to $row[email_address]
--
PHP General Mailing List
Hello List,
How can I get IP Address from my connection ppp0 or ppp1 in Linux? What
's the function?
thanks
Erick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In article [EMAIL PROTECTED], davidtg-
[EMAIL PROTECTED] says...
Bogdan --
...and then Bogdan Stancescu said...
%
% Typing Apache custom 404 and clicking on I feel lucky would get you
% to this information:
Ah! That's a good point; just make everything on the site a 404. It
means
[snip]
How can I get IP Address from my connection ppp0 or ppp1 in Linux? What
's the function?
[/snip]
shootin' from the hip because I am looking for something like this
as well. I would also like to be able to activate PPP...need some serial
port control. Here are my thoughts on your
function getRemoteIP() {
if(getenv(HTTP_CLIENT_IP)) $ip = getenv(HTTP_CLIENT_IP);
else if(getenv(HTTP_X_FORWARDED_FOR)) $ip = getenv(HTTP_X_FORWARDED_FOR);
else return getenv(REMOTE_ADDR);
return $ip;
}
-Mensaje original-
De: Erick Okasaki [mailto:[EMAIL PROTECTED]
Enviado el:
Hello Erick,
ipconfig
EO Hello List,
EO How can I get IP Address from my connection ppp0 or ppp1 in Linux? What
EO 's the function?
EO thanks
EO Erick
--
Best regards,
MuToGeNmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
Hardly what you call a php question.
just type
ifconfig -a
Erick Okasaki wrote:
Hello List,
How can I get IP Address from my connection ppp0 or ppp1 in Linux?
What 's the function?
thanks
Erick
--
http://www.raditha.com/php/progress.php
A progress bar for PHP file uploads.
--
PHP General
I would use something like this
$ifconfMess = shell_exec(ifconfig tun0);
if(preg_match(/\d{2,3}(\.(\d){1,3}){3}/,$ifconfMess,$ip))
$tunip = $ip[0];
see ya !
On Fri, Sep 05, 2003 at 09:46:41AM -0300, Erick Okasaki wrote:
Hello List,
How can I get IP Address from my
* Thus wrote Erick Okasaki ([EMAIL PROTECTED]):
Hello List,
How can I get IP Address from my connection ppp0 or ppp1 in Linux? What
's the function?
This might work.
$ip = `ifconfig ppp0 | grep netmask | cut -f 2 -d ' ' | tail -1`;
Curt
--
I used to think I was indecisive, but now I'm
Sorry if I was not clear enough but it's a php question because I
want get IP Address from connection ppp0 (in Linux) with some function
in PHP!
thanks
Erick
Original Message
Hardly what you call a php question.
just type
ifconfig -a
Erick Okasaki wrote:
Hello List,
How
I¹ve defined $to earlier on only thing is it still doesn¹t work correctly
with the mail() function inside the while loop.
The reason I wanted it in here was I¹m using the person¹s first name in the
body of the mail.
Should I just populate an array with the details of the users (first_name,
[snip]
Is there something like MoveNext I should use for the mail function?
If I put the $headers in the while loop it just keeps adding to the
$headers
instead of sending each mail separately as I want it to.
..
while($row = mysql_fetch_array($result1))
{
And i am sorry for being trigger happy.
Erick Okasaki wrote:
Sorry if I was not clear enough but it's a php question because I
want get IP Address from connection ppp0 (in Linux) with some function
in PHP!
thanks
Erick
Original Message
Hardly what you call a php question.
Jay,
The $to variable is [EMAIL PROTECTED]
Then the emails are pulled from the database in the following order:
email1, email2, email3
The result is:
[EMAIL PROTECTED] gets a copy of each message (fine since its the
$to address for each mail)
email1 gets a copy of each message
email2 gets
[snip]
email1 - gets a copy of each message
email2 - gets his message and the one for email3
email3 - gets his own message
[/snip]
Did you change that header line as recommended?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Its working ok now I changed the error in the headers, but I had added in
another BCC item which was causing the repeated emails.
Working great now Jay thanks a mil for your help!
Regards
Enda
--
On 9/5/03 2:59 PM, Jay Blanchard [EMAIL PROTECTED]
wrote:
[snip]
email1 - gets a copy of
Hi all, i know this isnt strictly a php question but
thought you would be a good group to ask because of
your experience.
Is there any security issues with passing data via the
POST method from a webserver to a different webserver
running ssl. For example:
webserver1
form name='form1'
--- bob pilly [EMAIL PROTECTED] wrote:
Is there any security issues with passing data via the
POST method from a webserver to a different webserver
running ssl.
There are always security concerns, regardless of your approach. Nothing is
perfect. However, sending data over an SSL connection
I would like to have a HTML editor on a Web site so the user can create
HTML based text. Google brings up too many matches when I type in
"Browser HTML editor Java" that do not match my needs. Does anyone
have a suggestion?
Todd
--
inline: NewLogo.gif
Vince,
You also need to escape the $, so instead of
. if ($_GET..
use
. if (\$_GET.
You may have to escape the single quotes.
I have written two pretty lame code generators. The first one did not use
templates, the second one does. You've got the lines of code in your
builder script.
Yes java newsgroups :-)
but seriously there is a good on at sourceforge.
Todd Cary wrote:
I would like to have a HTML editor on a Web site so the user can
create HTML based text. Google brings up too many matches when I type
in Browser HTML editor Java that do not match my needs. Does anyone
I
recommend htmlarea, it's _javascript_, not java.
http://www.interactivetools.com/products/htmlarea/
there's a couple similar scripts available.
chris
-Original Message-From: Todd Cary
[mailto:[EMAIL PROTECTED]Sent: Friday, September 05, 2003
6:48 AMTo: [EMAIL
[snip]
How can I get IP Address from my connection ppp0 or ppp1 in Linux? What
's the function?
[/snip]
Well, you can (if I'm not mistaken) create PHP modules using C++. You
could also create shell scripts you could exec(). PHP isn't really
meant to be a server control though. So anything
Be careful about hidden variables and form variables. A clever user can
create a new form with custom edited fields and ACTION=yoursite.com
For instance, if you keep a hidden variable:
INPUT TYPE=HIDDEN NAME='authorization_bool' VALUE='FALSE'
It's not very hard for a computer saavy person to
I'm trying to figure out ways to tweak my scripts for performance.
I've figured out that all mySQL queries should use indexed ids for
speed. (For anyone who doesn't know: mySQL indexes fields with PRIMARY
KEY, UNIQUE, or AUTO_INCREMENT in them. This means they're stored in
binary trees
check this out dan
It may help
http://www.mysql.com/doc/en/EXPLAIN.html
- Original Message -
From: Dan Anderson [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Friday, September 05, 2003 8:38 AM
Subject: [PHP] mySQL overhead: Tweaking Scripts for Speed
I'm trying to figure
--- Dan Anderson [EMAIL PROTECTED] wrote:
I've figured out that all mySQL queries should use indexed ids for
speed. (For anyone who doesn't know: mySQL indexes fields with ...
You can create an index yourself:
KEY [index_name] (index_col_name,...)
Find more on this page:
Hi!
I looked at the rand() at php.net which spoke about min and max random
number. So, I use rand(0,99) to get a 10 digit random number but it
only return an 1 digit random number that is displayed at '0'. So, I tried
rand(0,) with 4 digit random number and got the random
Great guide here Ma Siva Kumar... I am a little guilty of not doing
this, actually recently too... As I think most of us are at one point or
another... Although I would like to add alittle something, maybe just
alittle guidance for newbies and seasoned professionals like yourself!
1. Helping
Hi all.
Will PHP remove variables from memory when script will NOT use them in rest
of code?
for example:
?php
$tmp=true;
if ($tmp) // here is $tmp used last time, will it be removed from memory?
...
... // $tmp is NOT in the rest of code
...
...
?
or I must use allways unset()?
Thanx
Emo
--
It probably wraps the standard C rand() function which only takes an
unsigned integer which is usually 16 bits.
Cheers,
Rob.
On Fri, 2003-09-05 at 12:34, Scott Fletcher wrote:
Hi!
I looked at the rand() at php.net which spoke about min and max random
number. So, I use
You must use unset()
-Murugesan
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Scott Fletcher [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 05, 2003 10:25 PM
Subject: Re: [PHP] Using rand() for 10 digit numbers
It probably wraps the standard C
David Robley mailto:[EMAIL PROTECTED]
on Friday, September 05, 2003 5:59 AM said:
Well, no - I am sure you can do it with an entry in .htaccess in the
server root.
Yeah, like a rewrite rule.
RewriteRule ^*$ down.html
Chris.
--
PHP General Mailing List (http://www.php.net/)
To
From: Dan Anderson [EMAIL PROTECTED]
But how much overhead is there in:
$link = mysql_connect($hostname,$username,$password) or die();
$db = mysql_select_db($database,$link) or die();
Would it be beneficial to run a single one at the beginning of every
script? Currently I have a bunch of
[snip]
I looked at the rand() at php.net which spoke about min and max
random
number. So, I use rand(0,99) to get a 10 digit random number
but it
only return an 1 digit random number that is displayed at '0'. So, I
tried
rand(0,) with 4 digit random number and got the random
While multiple connections will just return the first connection, anyhow,
why do the extra work, right?
Yes that was what I was thinking. But I was also thinking that I would
need to global the $link and $db variables and run mysql_query() with
them in options. So I'm wondering how much work
I'm working on a code generation project. Is there anyone on the list who
has experience building these things, and, would like to discuss
architecture/patterns/structure of code generation off-list?
Chris Hubbard
[EMAIL PROTECTED]
www.wildcharacters.com
425 481 2020
php based web application
From: Ralph Guzman [EMAIL PROTECTED]
Is there an advantage or difference in running FIND_IN_SET() instead of
LIKE?
Actually no, I guess there isn't. Neither one will use an index.
mysql desc test;
+---+-+--+-+-+---+
| Field | Type| Null | Key |
Hi Folks,
I've got a (in my eyes) very strange behaviour from my RedHat Linux 9.0 box.
I needed to upgrade my PHP version to 4.3, since that's the version on the
production server and well .. test and production should match pretty good
;). Since self compiling didn't work. All errors with apxs
On Fri, 2003-09-05 at 09:38, [cz]Emo wrote:
Hi all.
Will PHP remove variables from memory when script will NOT use them in rest
of code?
for example:
?php
$tmp=true;
if ($tmp) // here is $tmp used last time, will it be removed from memory?
...
... // $tmp is NOT in the rest of code
From: Dan Anderson [EMAIL PROTECTED]
While multiple connections will just return the first connection,
anyhow,
why do the extra work, right?
Yes that was what I was thinking. But I was also thinking that I would
need to global the $link and $db variables and run mysql_query() with
them
[snip]
undefined function mysql_select.
[/snip]
mysql_select by itself isn't a function. Are you using other code to
define this function? Or are you just using shorthand here?
[snip]
=== errors from error_log ===
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/lib/php4/ldap.so' -
Network Associates WebShield SMTP V4.5 on fzkmail2 detected virus W32/[EMAIL
PROTECTED] in
attachment document_9446.pif from [EMAIL PROTECTED] and it was Cleaned and
Quarantined.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How interesting. Yours work while mine doesn't. All I did was ..
--snip--
$randomNumber = rand(0,99);
echo $randomNumber;
--snip--
What PHP version do you use? I only have version 4.3.1 on the machine.
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
Could be
Robert Cummings [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
It probably wraps the standard C rand() function which only takes an
unsigned integer which is usually 16 bits.
Cheers,
Rob.
On Fri, 2003-09-05 at 12:34, Scott Fletcher wrote:
Hi!
I looked at
Hello,
I'm trying to compile PHP 4.3.3. My configure is:
./configure --enable-track-vars --without-mysql --with-mail
--with-apxs2=/usr/local/apache2/bin/apxs --with-informix
and when doing make I get:
[EMAIL PROTECTED] php-4.3.3]# make
/bin/sh /root/php-4.3.3/libtool --silent
What are the example of code generation project? Are you referring to the
generation of the random characters?
Chris Hubbard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm working on a code generation project. Is there anyone on the list who
has experience building these
[snip]
What PHP version do you use? I only have version 4.3.1 on the machine.
[/snip]
Did this on a 4.2.1 and a 4.3...no probs. Have you tried the code I
posted on your machine?
?php
$i=25;
while($i 0){
$random=rand (0,9);
echo number_format($random, 0, '', ',').\n;
$i--;
}
?
No, not random character generation.
Currently the application I'm working does the following:
1. from an array that defines HTML components (like a table row, input
field, file upload, etc), and,
2. from an array that defines PHP components (like sql queries, file
upload, assigning values to
I'm trying to give PEAR a try and am currently following it's tutorial at:
http://pear.php.net/manual/en/package.database.db.intro-fetch.php
Now when I put this code into a PHP file I get a parse error on line 49
which has:
while ($row = $result-fetchRow()) {
I don't see what would cause the
I have this code and I wanna display only 10 records on page. For the rest of them I
wanna use a next link(or a previous link).
Please tell me hoe can I do that.
$sql = SELECT * FROM categorie ;
$rezultat = mysql_query($sql);
$num_rows = mysql_num_rows($rezultat);
while
--- phpu [EMAIL PROTECTED] wrote:
I have this code and I wanna display only 10 records on page.
Use the LIMIT clause in your select statement:
http://www.mysql.com/doc/en/SELECT.html
Hope that helps.
Chris
=
Become a better Web developer with the HTTP Developer's Handbook
Assuming you mean that the user isn't typing HTML code (like an online IDE),
you might want to take a look at:
http://www.bris.ac.uk/is/projects/cms/ttw/ttw.html#os
Best,
-Dan
Todd Cary [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I would like to have a HTML editor on a Web site
I tried your code on this machine and I got this...
--snip--
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
I've tried but i don't know how to put it in my script. And also i don't know how to
display it in page. Here is my script and I hope you could help me with this one.
thanks
$sql = SELECT * FROM categorie ;
$rezultat = mysql_query($sql);
$num_rows = mysql_num_rows($rezultat);
while
[snip]
I tried your code on this machine and I got this...
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.
[/snip]
What is your numeric precesion set to in the php.ini?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Very Interesting. I tried your code on my machine and I got this...
--snip--
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
[snip]
I've tried but i don't know how to put it in my script. And also i don't
know how to display it in page. Here is my script and I hope you could
help me with this one.
thanks
[/snip]
Google is SO cool!!! :)
http://www.onlamp.com/pub/a/php/2000/11/02/next_previous.html
Have a pleasant and
There isn't one in php.ini. Could this be the problem?
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
I tried your code on this machine and I got this...
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.
[/snip]
What is your numeric precesion set to in the
[snip]
There isn't one in php.ini. Could this be the problem?
[/snip]
Look for these lines in your php.ini
; The number of significant digits displayed in floating point numbers.
precision= 14
What is precision equal to?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Continue(ing) of this replying go into the title, 'Very Interesting'.
Scott Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Very Interesting. I tried your code on my machine and I got this...
--snip--
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
--- phpu [EMAIL PROTECTED] wrote:
I've tried but i don't know how to put it in my script.
Here is your SQL statement (between the quotes):
$sql = SELECT * FROM categorie;
Add a LIMIT clause to that statement. The syntax is described at the URL I sent
you.
Hope that helps.
Chris
=
It is not there, so I added it and restarted Apache. Still got the same
result.
How is PHP is built into Apache was done by downloading the tar.gz file from
php.net and compile it. Then compile Apache, had it take in PHP. So, when
it was done, there is never a php.ini there. So, I create one
Vince LaMonica wrote:
I wish to use fwrite() to create a small PHP file. So far, when I attempt
to do this, php parses the contents of the file that fwrite needs to
create. Eg, I have this:
$new_id = mysql_insert_id();
// create brand new file
$new_file =
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]):
From: Ralph Guzman [EMAIL PROTECTED]
Is there an advantage or difference in running FIND_IN_SET() instead of
LIKE?
Actually no, I guess there isn't. Neither one will use an index.
There will be a slight diffence in the resuls
this is a sample of what I do when I need to write a php file
$stringtowrite = ?PHP\n// Bulletin Board
forum\n$.ForumId=.$tabletofind.;\n;
$stringtowrite .=
$.ForumActive='1';\n$.ForumName='.$sportname.';\n;
$stringtowrite .= $.ForumDescription='.$sportname. forum';\n;
* Thus wrote murugesan ([EMAIL PROTECTED]):
You must use unset()
How you keep doing this, I have no clue. but your subject and content has
nothing to do with the thread or quoted content.
Please reply and quote the proper messages with the proper subject
so it doesn't confuse people.
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]):
How interesting. Yours work while mine doesn't. All I did was ..
--snip--
$randomNumber = rand(0,99);
echo $randomNumber;
--snip--
What PHP version do you use? I only have version 4.3.1 on the machine.
I believe its the OS he's
On 9/5/03 1:50 PM, Mike Zornek [EMAIL PROTECTED] wrote:
I'm trying to give PEAR a try and am currently following it's tutorial at:
http://pear.php.net/manual/en/package.database.db.intro-fetch.php
Now when I put this code into a PHP file I get a parse error on line 49
which has:
while
[snip]
It is not there, so I added it and restarted Apache. Still got the same
result.
How is PHP is built into Apache was done by downloading the tar.gz file
from
php.net and compile it. Then compile Apache, had it take in PHP. So,
when
it was done, there is never a php.ini there. So, I
* Thus wrote Wouter van Vliet ([EMAIL PROTECTED]):
Hi Folks,
I've got a (in my eyes) very strange behaviour from my RedHat Linux 9.0 box.
I needed to upgrade my PHP version to 4.3, since that's the version on the
production server and well .. test and production should match pretty good
;).
Will do that once I get a newer PHP version. No time for it right now. :-)
The workaround to rand() I did was to use it twice and add up the result.
For ex.
--snip--
$randomNumberLeft = rand(0,9);
$randomNumberRight = rand(0,9);
$randomNumber = $randomNumberLeft.$randomNumberRight;
This is kinda off topic, well.. depending on the answer.
I downloaded a ZIP file to my server, and want to open it. My version of PHP
wasnt compiled with the Zip uncompressing functions, otherwise Id do it with
php, so I was wondering if there was a linux-x86 binary that just opens zip
John Ryan wrote:
This is kinda off topic, well.. depending on the answer.
I downloaded a ZIP file to my server, and want to open it. My version of PHP
wasnt compiled with the Zip uncompressing functions, otherwise Id do it with
php, so I was wondering if there was a linux-x86 binary that just
Hello..
Is there a way of setting the extension_dir by not modifying php.ini ?
i've tried with
ini_set(extension_dir,/home/alexcos/www/phps);
dl(first_module.so);
Warning: Unable to load dynamic library '/usr/lib/php4/first_module.so'
then , i've tried setting the extension_dir in a
No I'm not using a shorthand or other code to define the function .. I just
typed select instead of connect. ;)
And yep, I can both stat and vim ;) those libs.
- -Oorspronkelijk bericht-
- Van: Jay Blanchard [mailto:[EMAIL PROTECTED]
- Verzonden: vrijdag 5 september 2003 19:21
-
1 - 100 of 126 matches
Mail list logo