[PHP] setcookie()

2002-01-06 Thread Tyler Longren
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

Re: [PHP] Re: setcookie()

2002-01-06 Thread Tyler Longren
> > -- > > > 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"&

Re: [PHP] PHP4.1.1 can't connect to SQL Server 7 SP3 on NT/2000

2002-01-13 Thread Tyler Longren
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

Re: [PHP] Does any have the 'edit_member.php' script ....

2002-01-17 Thread Tyler Longren
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

Re: [PHP] Increment help..please

2002-01-24 Thread Tyler Longren
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

Re: [PHP] this list has been mutated to a lamers paradise

2002-01-31 Thread Tyler Longren
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

Re: [PHP] general question...

2002-02-04 Thread Tyler Longren
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

Re: [PHP] Picking a random record from a database.

2002-02-04 Thread Tyler Longren
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

Re: [PHP] Limit 15 where "Newest"

2002-02-04 Thread Tyler Longren
$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:

Re: [PHP] Can PHP read system installation?

2002-02-04 Thread Tyler Longren
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

Re: [PHP] Can PHP read system installation?

2002-02-04 Thread Tyler Longren
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

Re: [PHP] Differences between PHP, ASP, JSP

2002-02-06 Thread Tyler Longren
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

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Tyler Longren
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? > --

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Tyler Longren
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: [

Re: [PHP] php

2002-02-13 Thread Tyler Longren
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

Re: [PHP] how to require php file in a.html file

2002-02-15 Thread Tyler Longren
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

Re: [PHP] how to send variable with direct link?

2002-02-15 Thread Tyler Longren
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

Re: [PHP] code

2002-02-18 Thread Tyler Longren
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

Re: [PHP] Timed Redirect

2002-02-18 Thread Tyler Longren
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

Re: [PHP] PHP binary file

2002-02-19 Thread Tyler Longren
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

Re: [PHP] viewing get/post variables

2002-04-16 Thread Tyler Longren
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

Re: [PHP] creating table help

2002-04-19 Thread Tyler Longren
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

Re: [PHP] Learning PHP

2002-04-20 Thread Tyler Longren
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

Re: [PHP] Submit Form

2002-04-22 Thread Tyler Longren
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

Re: [PHP] MySQL query

2002-04-22 Thread Tyler Longren
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

Re: [PHP] PHP 4.2.0?

2002-04-22 Thread Tyler Longren
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

Re: [PHP] remove last character in a string

2002-04-22 Thread Tyler Longren
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

Re: [PHP] remove last character in a string

2002-04-22 Thread Tyler Longren
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: "

Re: [PHP] remove last character in a string

2002-04-22 Thread Tyler Longren
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

Re: [PHP] How do i upgrade from PHP 4.1.2 to 4.2.0?

2002-04-23 Thread Tyler Longren
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

Re: [PHP] file permissions on counter?

2002-04-23 Thread Tyler Longren
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] ---

Re: [PHP] Parse Error - Help?

2002-04-24 Thread Tyler Longren
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

Re: [PHP] Sorting, sort of

2002-05-06 Thread Tyler Longren
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

Re: [PHP] adding 60 to a date

2002-05-07 Thread Tyler Longren
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:

Re: [PHP] A pen pal system with Photo upload feature

2002-05-09 Thread Tyler Longren
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

Re: [PHP] MySQL and sorting

2002-05-20 Thread Tyler Longren
'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

[PHP] checking session ID's

2002-05-23 Thread Tyler Longren
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

[PHP] the new variables

2002-05-23 Thread Tyler Longren
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

Re: [PHP] Client user info

2002-05-24 Thread Tyler Longren
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

Re: [PHP] Server error when executing mail() function

2002-05-28 Thread Tyler Longren
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

Re: [PHP] browscap.ini

2002-05-28 Thread Tyler Longren
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

Re: [PHP] Server error when executing mail() function

2002-05-28 Thread Tyler Longren
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

Re: [PHP] Cannot add header infomation

2002-05-28 Thread Tyler Longren
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

Re: [PHP] Show an image

2002-05-29 Thread Tyler Longren
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,

Re: [PHP] Not a PHP-Problem ...

2002-05-29 Thread Tyler Longren
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, > >

Re: [PHP] determining where the computer is that posts to a db

2002-05-29 Thread Tyler Longren
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

Re: [PHP] problems with replacing line breaks

2002-03-01 Thread Tyler Longren
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

Re: [PHP] PHP Security Update

2002-03-04 Thread Tyler Longren
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: <

Re: [PHP] Can anybody help me?

2002-03-07 Thread Tyler Longren
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

Re: [PHP] Can someone tell me about database....

2002-03-08 Thread Tyler Longren
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:

[PHP] Get row number from mysql

2002-03-13 Thread Tyler Longren
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

Re: [PHP] Re: Get row number from mysql

2002-03-13 Thread Tyler Longren
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

[PHP] putting a url in an anchor tag

2002-03-14 Thread Tyler Longren
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

Re: [PHP] Text Editor

2002-03-24 Thread Tyler Longren
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

Re: [PHP] MySQL Connection Error - mysql_select_db

2002-03-30 Thread Tyler Longren
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

Re: [PHP] mail() function.

2002-03-30 Thread Tyler Longren
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

Re: [PHP] APACHE + SSL + PHP

2002-03-31 Thread Tyler Longren
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 [

Re: [PHP] Has anyone looked at phpinfo today?

2002-04-01 Thread Tyler Longren
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? > > >

Re: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query

2002-04-01 Thread Tyler Longren
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");

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Tyler Longren
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

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Tyler Longren
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

[PHP] reading excel file

2002-04-02 Thread Tyler Longren
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

Re: [PHP] reading excel file

2002-04-02 Thread Tyler Longren
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

Re: [PHP] New Server, Bad Attitude

2002-04-03 Thread Tyler Longren
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

Re: [PHP] MCAL for Windows

2002-04-03 Thread Tyler Longren
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

Re: [PHP] Query from POST_VARS

2002-04-03 Thread Tyler Longren
>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

Re: [PHP] how to make php 4.0 ftp lib work

2002-04-03 Thread Tyler Longren
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

Re: [PHP] how to make php 4.0 ftp lib work

2002-04-03 Thread Tyler Longren
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: "

Re: [PHP] request for comments

2002-04-03 Thread Tyler Longren
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

Re: [PHP] Strange entries in logfiles?

2002-04-03 Thread Tyler Longren
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,

Re: [PHP] PHP on Apache 2.0 -- Does it work?

2002-04-06 Thread Tyler Longren
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

Re: [PHP] What's wrong with php??

2002-04-06 Thread Tyler Longren
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

Re: [PHP] PHP & .PDF & .ZIP ???

2002-04-07 Thread Tyler Longren
-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

Re: [PHP] xml-rpc for windows?

2002-04-07 Thread Tyler Longren
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

Re: [PHP] automatic check if MySQL is running

2002-04-09 Thread Tyler Longren
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

Re: [PHP] Apache 2.0.35 and php4.1

2002-04-11 Thread Tyler Longren
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

Re: [PHP] Apache 2.0

2002-04-11 Thread Tyler Longren
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

Re: [PHP] Error accessing class

2002-04-12 Thread Tyler Longren
#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

Re: [PHP] calculating US holidays

2002-04-15 Thread Tyler Longren
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

Re: [PHP] Download the whole directory

2001-10-21 Thread Tyler Longren
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

Re: [PHP] show png in the browser

2001-10-30 Thread Tyler Longren
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

Re: [PHP] I rest my case

2001-10-30 Thread Tyler Longren
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

[PHP] PHP4.0.6 configure error with apache 2.0.16

2001-11-09 Thread Tyler Longren
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

[PHP] for loop problem?

2001-11-12 Thread Tyler Longren
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

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
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

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
(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] >

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
> 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?

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
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: [

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
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

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
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

Re: [PHP] Apache 2.0.28

2001-11-17 Thread Tyler Longren
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

Re: [PHP] schedule a task

2001-11-19 Thread Tyler Longren
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

[PHP] Re: Apache 2.0.28 and PHP 4.0.6

2001-11-27 Thread Tyler Longren
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]

Re: [PHP] Confirm mysql support option with php install

2001-11-28 Thread Tyler Longren
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

Re: [PHP] database conection (newby)

2001-11-29 Thread Tyler Longren
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 [

[PHP] Re: my server froze and now my PHP is gone??? HELP

2001-11-29 Thread Tyler Longren
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

Re: [PHP] help php

2001-11-29 Thread Tyler Longren
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

Re: [PHP] declaring variables mandatory???

2001-11-30 Thread Tyler Longren
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

[PHP] LOAD DATA INFILE help

2001-12-01 Thread Tyler Longren
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

Re: [PHP] Why are slashes automatically stripped from db result?

2001-12-03 Thread Tyler Longren
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

<    1   2   3   >