Hello,
I need to set a cookie to store a username, password, and passcode forever
(never expires). I don't really know how to use the setcookie() function.
Could someone show me the proper way to use the setcookie() function to do
this?
Thanks,
Tyler
--
PHP General Mailing List (http://www.p
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___
> X-Playin - Professional Web Design
> www.x-playin.f2s.com
>
>
>
> "Tyler Longren" <[EMAIL PROTECTED]> wrote in message
> 000901c196e7$71df35b0$0101a8c0@nightengale"&
When you upgraded to SP3 did it remove the 'scott' user? Just a thought,
I'm not really very experienced with MSSQL stuff.
Tyler
- Original Message -
From: "Quan Tran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 13, 2002 9:54 PM
Subject: [PHP] PHP4.1.1 can't connec
Perhaps you could post the error and the line that it occurs on. Someone
here might be able to offer some help.
tyler
- Original Message -
From: "Mike C" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2002 7:48 PM
Subject: [PHP] Does any have the 'edit_member.ph
Why don't you just set auto_increment on the id field in the database table?
Tyler
- Original Message -
From: "will hives" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 1:43 PM
Subject: [PHP] Increment help..please
> please help I'm a newb and this is rea
Agreed.
- Original Message -
From: "Jason Murray" <[EMAIL PROTECTED]>
To: "'Gregor Welters'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 7:14 PM
Subject: RE: [PHP] this list has been mutated to a lamers paradise
> > just wanted to point this out.
>
> And
if (eregi("page_user_has_to_come_from",$HTTP_REFERER) != "") {
print "You didn't come from the right page, please go back.";
}
else {
print "Congrats, you came from the right page!";
}
Tyler
- Original Message -
From: "jas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednes
SELECT * FROM table ORDER BY rand() LIMIT 1;
Tyler
- Original Message -
From: "Philip J. Newman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 10:37 PM
Subject: [PHP] Picking a random record from a database.
I have a database of Jokes.
I have 30 Jokes
I
$sql="select author, title, chapter from table order by date DESC limit 15";
That's how you'd go about getting the 15 most recent table entries. The
"next 15" thing will require a bit more though.
Tyler
- Original Message -
From: "WIll" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
Well, if you know the box is running Linux, you can get the kernel info by
doing this:
system("uname -a");
Tyler
- Original Message -
From: "Ryan F. Bayhonan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 10:51 PM
Subject: [PHP] Can PHP read system installat
Well, the OSTYPE variable contains some useful info. As do the LC_ALL,
HOSTTYPE, MACHTYPE, and SERVER_SOFTWARE variables. Check php_info() for
more useful variables.
Tyler
- Original Message -
From: "Ryan F. Bayhonan" <[EMAIL PROTECTED]>
To: "Tyler Longr
PHP could be used for online banking. Banks use ASP because there is
software already written in ASP for what they need. Also, they use it
because it's from Microsoft.
Tyler
- Original Message -
From: "Ben Clumeck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 0
What's the error?
Tyler
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 7:40 PM
Subject: [PHP] Checking for plus signs?
> I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do
I
> do?
>
--
Actually, all you need is this:
if(eregi("\+",$variable))
You only need to escape the + sign once.
Tyler
- Original Message -
From: "Jim Lucas [php]" <[EMAIL PROTECTED]>
To: "Leif K-Brooks" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 7:39 PM
Subject: Re: [
you could just:
exec("chown user.group directory");
That is, if you're on a unix box of some type.
Tyler
- Original Message -
From: "Uma Shankari T." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 3:29 AM
Subject: [PHP] php
>
>
> Is there any functio
If you're using apache, make sure .html is included as an extension that
gets parsed by PHP.
Tyler
- Original Message -
From: "mysqlphp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 8:08 AM
Subject: [PHP] how to require php file in a.html file
> Hi,
>
> H
Server";
?>
Whatever value $ip_from_mysql holds will be accesible on page.php as the $ip
variable.
Tyler
- Original Message -
From: "Hawk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 4:45 PM
Subject: [PHP] how to send variable with direct link?
> I have
make sure you're doing it like this:
if ($inst == "1") {
// do this
}
else {
// do something else
}
instead of this:
if ($inst = "1") {
// do this
}
else {
// do this
}
Just a thought.
Tyler
- Original Message -
From: "John Gurley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECT
header("Location: http://www.google.com/";, "5");
That would redirect you to www.google.com in 5 seconds.
Tyler
- Original Message -
From: "Steven Walker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 2:16 PM
Subject: [PHP] Timed Redirect
> Is there way t
If you installed it with apache or some other webserver, and you didn't use
the --prefix option, it's probably here:
/usr/local/lib/php/
Somewhere in that directory would be my guess. I think that's where mine is
located.
Tyler
- Original Message -
From: "Hunter, Ray" <[EMAIL PROTECTED
You shouldn't have to do anything to php.ini to get that. You should have a
variable called $var1 on index.php already.
Just:
if ($var1 != "") {
print "$var1";
}
else {
print "var1 is empty";
}
Tyler Longren
Captain Jack Communications
[E
I checked the php manual, and there doesn't seem to be a pg_exec function.
You'll probably be able to use pg_query instead. But that error makes it
sound like pg_exec is a valid function for your version of PHP, maybe it's
not in newer versions.
http://www.php.net/manual/en/function.pg-query.php
I suggest you buy a book called PHP Essentials by Julie C. Meloni. That's a
great book for php beginners. It comes with a bunch of example code. It's
really well written.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
Fro
Are you using method=post in your tag? Sometimes, if you leave that
out, some weird stuff will appear in the URL.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "dengach" <[EMAIL PROTECTED]>
To: <[EMA
E sampcompid='2'");
??
I doubt you can put multiple queries in one execution of mysql_query().
It's worth a shot though.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Lee P Reilly" <[EMAIL PROT
Give em a few minutes. They probably just put the "PHP 4.2.0 has been
released" announcement up on the index page. They may not have put the
files up yet.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Sebast
First, you'll need to get the length of the str with the str_len() function.
After you have that, use the substr() function like Rasmus mentioned.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Craig Westerma
Yeah, I thought about that and said to myself "That's not right". But I had
already clicked the "Send" button and the message was no longer in my
outbox. :)
tyler
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "
Because I'm kinda stupid. :)
tyler
- Original Message -
From: "Evan Nemerson" <[EMAIL PROTECTED]>
To: "Tyler Longren" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 10:53 PM
Subject: Re: [PHP] remove last charac
Just do it like you're installing new. You don't have to remove the old
one, just:
./configure --blah-blah
make
make install
restart apache.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Sebastian A." &l
Hi Antonio,
try this for your fopen():
$file=fopen("counter.txt","r+")
Incase you're interested, here's the code I use whenever I need to use a
simple text-file based counter:
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
---
Copy and paste the parse error into your e-mail. Also, try placing another
"}" at the end of the code. If you're missing a closing bracket somewhere,
that will take care of it.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Mes
Hi Jason,
I'd just get it over with and make first_name and last_name fields in your
table. It will be so much easier to sort by last name that way. I do it
this way everytime. It won't take much time to implement either.
Good luck,
Tyler Longren
Captain Jack Communications
[EMAIL
No, this won't be a problem. I also suggest using a unix timestamp. It's
the easiest way of doing it.
tyler
- Original Message -
From: "Scott St. John" <[EMAIL PROTECTED]>
To: "John S. Huggins" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, May 07, 2002 8:55 AM
Subject: Re:
This might help you:
http://www.phpbuilder.com/columns/william19990908.php3?page=1
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Thomas Edison Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thu
'ASC' with 'DESC'.
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Cleeker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 9:11 PM
Subject: [PHP] MySQL and sortin
Hi list, it's been a while.
I want to see how many users are online. I store the users $PHPSESSID in a
database field (phpsessid) when they login. When they logout, the
$PHPSESSID value in phpsessid is removed. I could just see how many rows
have something in the phpsessid field, but if a user
Hi,
Just to prevent a bunch of non-helpful e-mails, I've already RTMF!
Now, to the point. When using the new variables in php 4.2.x, how should I
go about handling my variables?
Should I just _print "$_GET[var]"_ every time I need to print $var to the
screen, or would it be better to just do t
What kind of information? There's a whole bunch:
Browser
IP
Referer
Check phpinfo();
try
print "$_SERVER[HTTP_USER_AGENT]";
to get the users browser
print "$_SERVER[REMOTE_ADDR]";
to get the users IP
print "$_SERVER[HTTP_REFERER]";
to get the users r
Is 'Server Error' all you get?
If there's more, please post the whole error message. ;-)
thanks!
tyler
- Original Message -
From: "Paul Cuthbertson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 9:06 AM
Subject: [PHP] Server error when executing mail() function
I found this in the PHP FAQ:
http://www.cyscape.com/browscap/
http://www.php.net/manual/en/faq.obtaining.php
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Stefan Rusterholz" <[EMAIL PROTECTED]>
To: <[EMA
Try this thread on phpbuilder.com:
http://www.phpbuilder.com/forum/read.php3?num=4&id=6681&loc=0&thread=6681
One person suggests using fewer headers as windows can be picky about which
headers you're trying to send with your e-mail.
Good luck,
Tyler Longren
Captain Ja
Those errors mean that PHP is trying to send headers to the browser after
something has already been made viewable in the browser. Make sure that the
header() functions are being used before anything gets output to the
browser.
Tyler Longren
Captain Jack Communications
www.captainjack.com
Is the image's location on the server saved in 'FIELD' or is the actual
image saved in 'FIELD'?
tyler
- Original Message -
From: "Félix García Renedo" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 12:08 PM
Subject: [PHP] Show an image
Hello everybody,
Try the geektools w hois proxy at www.geektools.com:
http://www.geektools.com/cgi-bin/proxy.cgi
tyler
- Original Message -
From: "Marcel Besancon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 11:38 AM
Subject: [PHP] Not a PHP-Problem ...
> Hi everybody,
>
>
Nope, no way to determine a MAC address through a browser.
tyler
- Original Message -
From: "Tom Beidler" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 12:58 PM
Subject: [PHP] determining where the computer is that posts to a db
> I have a time bi
why don't you just use the nl2br() function?
Tyler
- Original Message -
From: "Tom Kincaid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 9:11 AM
Subject: [PHP] problems with replacing line breaks
> I'm trying to replace line breaks with html code and am havi
There's probably no real easy to tell. If there was, CERT would most likely
have it on their website (www.cert.org).
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Xavier Paz" <[EMAIL PROTECTED]>
To: <
Did you recieve an error? If so, what was it?
Tyler
- Original Message -
From: "Balaji Ankem" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 7:23 AM
Subject: [PHP] Can anybody help me?
> Hi friend,
> from morning onwards I am facing the proble
I suggest you buy a book. There's too much to simply tell you how to do it.
I recommend PHP Essentials by Julie C. Meloni. That was the first PHP book
I bought, and was really helpful.
tyler
- Original Message -
From: "GENESiS DESiGNS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
Hello,
How can I get the number of the current row, something like this:
";
}
?>
I can't just use the id field, because the ID's might not always be 1, 2, 3,
4, 5, 6, etc...they could go 1, 2, 4, 5, 8.
I need it to look like this:
1. first person
2. second person
3. third person
and so on and
hmmm, I never thought of that. Thanks for the help. ;-)
Tyler
- Original Message -
From: "michael kimsal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Tyler Longren" <[EMAIL PROTECTED]>
Cc: "PHP-General" <[EMAIL PROTECTED]>
Sen
Hello,
I've been playing with this since lastnight. I have a string of
text...Example:
"This is a test string of test, please go to http://www.google.com now."
I need something that will catch the "http://www.google.com"; part, and make
into a link instead of just plain text. Does anyone know
If you want a regular text editor, I suggest Textpad or Context.
If you want an IDE, I suggest Maguma.
Tyler
- Original Message -
From: "Hiroshi Ayukawa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 24, 2002 7:27 PM
Subject: [PHP] Text Editor
> Hello,
>
> What tex
I don't think those variables are readable in the function. Not totally
sure though.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Patrick Hartnett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sen
Actually, that type of stuff is at the top of all e-mails. You'd always see
it if you set your e-mail client to show you the headers. So, it may be
something with your e-mail client. Can you provide the code you're using to
send the e-mail? The mail() part would suffice.
Tyl
This isn't a correct apache configure flag:
-enablemodule-ssl/so
I suggest you use this howto:
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/page1.html
It gives you step by step examples on how to do exactly what you want to.
Tyler Longren
Captain Jack Communications
[
hm. I've seen that before by appending something to the end of the url
(not sure what though).
Tyler
- Original Message -
From: "James Arthur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 01, 2002 8:46 AM
Subject: [PHP] Has anyone looked at phpinfo today?
>
>
>
Well, there's not $id variable. And you're trying to select it.
Should be this:
$php_errormsg");
// next line has changed
$sql = "SELECT * FROM tblArt WHERE IDArt = $your_variable";
$cursor = @odbc_exec($db, $sql) or exit ("Error
occrued:$php_errormsg");
You could use a form and have a hidden vield that contains a value. The
user would have to click the submit button for the variable/value to carry
over though.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Daniel
That might not be such a good idea then.
Tyler
- Original Message -
From: "Daniel Alsén" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 9:11 AM
Subject: SV: [PHP] Passing a variable invisibly via a href?
> > You could use a form and have a hidden v
ke to find some way to do it
through a web browser.
Thanks for any suggestions,
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks Jason, that is a pretty good idea. Any idea how well PHP handles
large ammounts of data like that? There'll be about 25,000 lines in every
excel file, and they come in groups of 5 or 6.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Ori
to be
before php can send e-mails.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Liam Gibbs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 1:47 PM
Subject: [PHP] New Serve
I'm not sure if there is a Window version. I checked the MCAL website
(http://mcal.chek.com), but they don't seem to have anything for Windows.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Joshua E
>From what I've experienced, you're correct.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "chris allen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002 2:00 PM
There is no ftp_connection() function.
You're meaning to use ftp_connect();
Read more about it here:
http://www.php.net/manual/en/function.ftp-connect.php
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Wo Chan
ns to work, you could try using
php's filesystem functions:
http://www.php.net/manual/en/ref.filesystem.php
Other than that, I don't any suggestions. Good luck. ;-)
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "
First thing I noticed:
Website looks VERY similar to www.php.net.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Lee Doolan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03, 2002
A memory leak in php_smart_str.h maybe? I'm not sure though.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Jason Murray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 03,
g Apache 1.3.24 until
the php group releases a new version for Apache 2.
;-)
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Steve Magruder, D2 Director" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Satu
It's very possible something went horribly wrong with your entire box when
your ps went out. Was is a violent outing (sparks), or was is silent (no
sparking or explosions)? I've had violent ps failures really screw up some
of my machines before.
Tyler Longren
Captain Jack Communicati
-only functions, you could use exec() or system() to zip
your files.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Jason Caldwell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 07, 2002 12:57
Hi,
I think the file you're looking for is located somewhere in the zip file for
Windows. At least I've heard it was in php 4.1.0.
Good luck,
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "dietrich" &l
If you're on a unix box, you could:
ps -aux | grep mysql
do that from an exec() or system() function.
Tyler
- Original Message -
From: "Manu Verhaegen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 8:08 AM
Subject: [PHP] automatic check if MySQL is running
That's because PHP wasn't built to run with Apache 2.0.25. Apache has
changed so much between the 2.0.xx releases that the php developers can't
keep up with it.
Wait until the next RC of PHP or the next stable version.
Tyler
- Original Message -
From: "Markus Meixner" <[EMAIL PROTECTED
I suppose I might as well answer this question for the third or fourth time
on this list:
That's because PHP wasn't built to run with Apache 2.0.25. Apache has
changed so much between the 2.0.xx releases that the php developers can't
keep up with it.
Wait until the next RC of PHP or the next st
#x27;s owned by root).
Good luck,
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: "Andrew Schoenherr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 13, 2002 12:54 AM
Subject: [PHP] Error
you could do something similar to that.
tyler
- Original Message -
From: "Tom Beidler" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Monday, April 15, 2002 2:17 PM
Subject: [PHP] calculating US holidays
> I need to calculate the date to see if it's a holiday, i.e. is
Hi Mark,
I don't think you can download an entire directory at once. You'll probably
have to get a directory listing, and download each file in that directory.
I'm not sure though.
Good luck,
Tyler
- Original Message -
From: "Mark Lo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: S
It might just be your browser. I've viewed png's in IE before and it tried
to make me download them instead of displaying them.
Tyler
- Original Message -
From: "Luz Lopez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 12:38 AM
Subject: [PHP] show png in
p .php3 AddType
application/x-httpd-php-source .phps
That tells apache to parse .php and .php3 files. The .phps files will
show the syntax highlighted version of the code.
Good luck,
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Wed, 31 Oct 2001 17:22:4
Hello list,
I tried to compile apache 2.0.16 with php 4.0.6. Here's my ./configure line
for apache:
./configure --prefix=/usr/local/apache2 --enable-module=so
And here's my ./configure line for PHP:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --disable
-debug --enable-tr
Hello everyone,
I have a pretty big list of codes that need to be put into a mysql db. The
numbers range from 100 to 1223109. Here's the PHP I wrote to put these
codes into a database:
".mysql_error()."";
exit;
}
}
mysql_close($connection);
?>
Everytime I run this from a browser, it ju
I HAVE to, I'll do this in PERL,
but would much rather do it in PHP.
Thanks everyone,
Tyler
- Original Message -
From: "Evan Nemerson" <[EMAIL PROTECTED]>
To: "Tyler Longren" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, November 12, 200
(albiet after a VERY long time)
> can't see how adding mysql code would affect the loop...
>
> Martin T
>
> -Original Message-
> From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 2:53 PM
> To: Evan Nemerson; [EMAIL PROTECTED]
>
> paste the complete code in and myself and others can run your exact copy
>
> -Original Message-
> From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 11:22 PM
> To: Martin Towell; [EMAIL PROTECTED]
> Subject: Re: [PHP] for loop problem?
x27;passcodes' field.
Oh well, here I come perl!
Thanks,
Tyler
- Original Message -
From: "Jack Dempsey" <[EMAIL PROTECTED]>
To: "Tyler Longren" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 10:43 PM
Subject: RE: [
passcode
---
1 |P100
82145 |P100
209398 |P100
Shouldn't the ID's be further apart than that? Know what I'm saying?
Tyler
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'Tyle
09398 |P100
> >
> >Shouldn't the ID's be further apart than that? Know what I'm saying?
> >
> >Tyler
> >
> >- Original Message -
> >From: "Martin Towell" <[EMAIL PROTECTED]>
> >To: "'Tyler
1
make[1]: Leaving directory `/root/packages/devel/php-4.0.6/sapi'
make: *** [all-recursive] Error 1
Know how to fix/why that happens?
Thanks,
Tyler Longren
- Original Message -
From: "Vincent Stoessel" <[EMAIL PROTECTED]>
To: "Jobarr" <[EMAIL PROTECTED]&g
Set up a crontab that uses wget to hit that page everyday at midnight.
You should use the flag in wget that tells it to delete the page that it
downloads. I use that method sometimes.
Tyler
- Original Message -
From: "Gab" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Novem
h-whatever-else
Good luck,
Tyler Longren
--
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 Joel,
You could do the --with-mysql=/path/to/mysql. But you could also
do --with-mysql. I usually just do --with-mysql and it all works prefectly.
Good luck!
Tyler Longren
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, Novembe
You've got too many parameters in the mysql_connect() and mysql_select_db()
functions. You don't need the %s stuff. Here's what it should be:
$conn = mysql_connect($connectie,$uid,$pwd);
mysql_select_db($database,$conn);
Good luck,
Tyler Longren
Captain Jack Communications
[
Hi Mike,
If you installed from source (and didn't use the --prefix= option), PHP
should have been installed in /usr/local/lib/php, not /usr/local/bin/php.
If it truly is missing, just reinstall.
Good luck,
Tyler Longren
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
27; at
the beginning of the line. If those lines don't exist, add them. Save
httpd.conf, then restart apache. It should work then.
Good luck,
Tyler Longren
- Original Message -
From: "Hai Nguyen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, No
I'm not sure, but I'd check the Error level settings in php.ini. It might
be set to display stupid little warnings like this.
Good luck,
Tyler Longren
- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, Novembe
un this:
LOAD DATA INFILE 'Sheet1.txt' INTO TABLE passcodes FIELDS TERMINATED BY ','
ENCLOSED BY '"' LINES TERMINATED BY '\n';
Nothing gets inserted into the 'passcode' field, but ID's are generated for
every item in Sheet1.txt.
Can anyone
I believe you're correct Martin. I think newer versions of MySQL
automatically strip them out. Just use php's stripslashes() and
addslashes() functions when you need them.
Good luck Steve,
Tyler Longren
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTE
101 - 200 of 286 matches
Mail list logo