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: Tyler Longren [EMAIL PROTECTED] Cc: Craig Westerman [EMAIL

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 character in a string Why get strlen involved??? $string

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 - From: Victor

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.

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 [EMAIL PROTECTED] www.captainjack.com - Original

Re: [PHP] calculating US holidays

2002-04-15 Thread Tyler Longren
? $month = date(m); $day = date(d); if ($month == 10 $day == 31) { print It's Halloween!; } ? 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]

Re: [PHP] Error accessing class

2002-04-12 Thread Tyler Longren
). 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 accessing class Hello, PHP Version: 4.1.0, Apache

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 How

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 PM Subject: [PHP] PHP .PDF

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 [EMAIL PROTECTED

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

2002-04-06 Thread Tyler Longren
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: Saturday, April 06, 2002 12:52 PM Subject: [PHP

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 Communications [EMAIL

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 Server, Bad Attitude My friends

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 Minnie [EMAIL PROTECTED

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 Subject: [PHP] Query from POST_VARS

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 Chang [EMAIL

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

2002-04-03 Thread Tyler Longren
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: Wo Chang [EMAIL PROTECTED] To: Tyler

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 7:11 PM Subject: [PHP] request

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, 2002 11:13 PM Subject: [PHP] Strange

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 Alsén [EMAIL

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 vield that

[PHP] reading excel file

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

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
) or exit (Error occrued:br$php_errormsg); odbc_close($db); ? Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Dr. Shim [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 01, 2002 10:41 PM Subject: [PHP] Variable Appended

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 [EMAIL

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] Sent: Saturday, March 30, 2002 10:02

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. Tyler Longren

[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 how

[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: ? $sql = mysql_query(SELECT * FROM table ORDER BY id DESC); while ($row = mysql_fetch_array($sql)) { $id = $row[id]; $name = $row[name]; print $current_row_number. $nameBr; } ? I can't just use the id field,

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] Sent: Wednesday, March 13, 2002 9:57 PM Subject: [PHP] Re: Get row number

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:

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 problem with

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: [EMAIL PROTECTED] Sent

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 having

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] 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 PROTECTED]

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 to have a

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, How do

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

2002-02-15 Thread Tyler Longren
? print a href=page.php?ip=$ip_from_mysqlServer/a; ? 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

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 function to give

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? -- PHP General

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: [PHP]

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 06,

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: Wednesday, January

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 would

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: Monday,

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 installation?

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 Longren [EMAIL PROTECTED]; [EMAIL

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 these kinds

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 really

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.php'

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 connect to

[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

Re: [PHP] Re: setcookie()

2002-01-06 Thread Tyler Longren
- Professional Web Design www.x-playin.f2s.com Tyler Longren [EMAIL PROTECTED] wrote in message 000901c196e7$71df35b0$0101a8c0@nightengale">news:000901c196e7$71df35b0$0101a8c0@nightengale... Hello, I need to set a cookie to store a username, password, and passcode forever (never

Re: [PHP] encryption

2001-12-06 Thread Tyler Longren
I don't know if this was mentioned but you can do it all in MySQL with the password() function. Ex: INSERT INTO users (username,password) VALUES ('tyler',PASSWORD('testpass')); Also: SELECT * FROM users WHERE username='$username' AND password=PASSWORD('testpass'); Good luck, Tyler Longren

Re: [PHP] Function Alias: mysql()

2001-12-06 Thread Tyler Longren
Are you sure that isn't a custom function in your code (assuming you're using somebody else's code)? It could be an alias to: mysql_db_query() It has the same handlers, ex: $rez=mysql_db_query($dbname,$query); Tyler Longren - Original Message - From: Dennis Moore [EMAIL PROTECTED

Re: [PHP] format output from exe()

2001-12-05 Thread Tyler Longren
Hello, I did this once with ping: exec(ping -c $count $host, $result); for ($i=0; $i count($result); $i++) { $data .= $result[$i]br; } print $data; That might work for ya. Good luck, Tyler Longren - Original Message - From: Daniel Masur [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: [PHP] xml header

2001-12-05 Thread Tyler Longren
Hi Bill, I don't believe there are any. Tyler - Original Message - From: bill [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 1:42 PM Subject: [PHP] xml header What is the proper header to send when presenting dynamic xml pages to the browser? --

Re: [PHP] PHP outside HTML

2001-12-05 Thread Tyler Longren
/apach2/bin/apxs --with-mysql do this: ./configure --with-mysql Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: John Kolvereid [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 12:24 AM Subject: [PHP] PHP

Re: [PHP] mysql update query

2001-12-04 Thread Tyler Longren
Everything looks good to me...try this: $result = mysql_query(UPDATE table SET value1='$value1',value2='$value2' WHERE id='$id'); Although I doubt MySQL cares if certain words are capitalized. Good luck though, Tyler Longren - Original Message - From: Greg Sidelinger [EMAIL PROTECTED

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 PROTECTED] To: 'Steve Cayford

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, November 30, 2001 1:37 PM Subject: [PHP

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 [EMAIL PROTECTED

[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 unsubscribe, e

Re: [PHP] help php

2001-11-29 Thread Tyler Longren
the '#' 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, November 29, 2001 6:35 PM Subject: [PHP] help php

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, November 28, 2001 7:24 PM

[PHP] Re: Apache 2.0.28 and PHP 4.0.6

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

Re: [PHP] Apache 2.0.28

2001-11-17 Thread Tyler Longren
/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] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 9

[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: ? $connection = mysql_connect(blah,blah,blah); $db = mysql_select_db(db_to_use, $connection); $value1 =

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
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, 2001 9:41 PM Subject: Re: [PHP] for loop problem? My word why all

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
... Martin T -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 2:53 PM To: Evan Nemerson; [EMAIL PROTECTED] Subject: Re: [PHP] for loop problem? To everyone that said it had something to do with the quotes: that has nothing to do

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
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? I removed all of the quotes that could be affecting it. Still, it loops

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
, 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: [PHP] for loop problem? ran it (without mysql queries) and worked finereal strange

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
|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: 'Tyler Longren' [EMAIL PROTECTED]; Jack Dempsey [EMAIL PROTECTED] Cc: PHP-General [EMAIL

Re: [PHP] for loop problem?

2001-11-12 Thread Tyler Longren
--- 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: 'Tyler Longren' [EMAIL PROTECTED]; Jack Dempsey

[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

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 the

Re: [PHP] I rest my case

2001-10-30 Thread Tyler Longren
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:47 +1300 J W W L

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:

[PHP] bulk e-mails

2001-10-02 Thread Tyler Longren
are appreciated...thanks, 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]

[PHP] scrolling news [sort of OT]

2001-09-30 Thread Tyler Longren
Hello all, Does anyone know of any javascript that will display scrolling news? I'd like to manipulate this js code with php so it can display whatever's in the database. Thanks everyone, Tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] browser detection

2001-09-25 Thread Tyler Longren
print $HTTP_USER_AGENT; will print the browser the person is using. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: wm [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 25, 2001 5:54 PM Subject: [PHP] browser

[PHP] percentage problems

2001-09-22 Thread Tyler Longren
. How do you people usually go about doing percentages? Thanks, 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] percentage problems

2001-09-22 Thread Tyler Longren
Thanks for that. Assigning a type to that variable never even occured to me. :-) Tyler - Original Message - From: Matt Greer [EMAIL PROTECTED] To: Tyler Longren [EMAIL PROTECTED]; PHP-General [EMAIL PROTECTED] Sent: Saturday, September 22, 2001 4:52 PM Subject: Re: [PHP] percentage

Re: Re[2]: [PHP] percentage problems

2001-09-22 Thread Tyler Longren
Hello, I tried using the ceil() and floor() functions. They did not help much. Ceil() set everything to 1%. I tried this: $percent = $num_games/$total_games; $percent = round($percent, 1); But again, some of the percentages are: 0.7% I also tried assigning the $percent variable the int

[PHP] combining variables

2001-09-12 Thread Tyler Longren
, 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] mailto function with this subject line filled.

2001-08-28 Thread Tyler Longren
Well, if you're just doing this with an anchor tag: a href=mailto:[EMAIL PROTECTED]?subject=TheSubject;Mail me/a If you're looking for php's mail function, look at www.php.net. Tyler Longren [EMAIL PROTECTED] Captain Jack Communications www.captainjack.com - Original Message - From

Re: [PHP] help

2001-08-25 Thread Tyler Longren
That will stop fread from producing errors. So, if you don't want to see any error's from fread, put a in front of it. This can also be done with other functions: $db = mysql_select_db(dbname); Tyler Longren On Sat, 25 Aug 2001 15:03:49 +1000 GaM3R [EMAIL PROTECTED] wrote: can anyone

Re: [PHP] IIS

2001-08-21 Thread Tyler Longren
IIS is the web server software that comes with WindowsNT/2000. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Wed, 22 Aug 2001 19:22:16 +0430 nafiseh saberi [EMAIL PROTECTED] wrote: hi. what is IIS? thanks. -- PHP General Mailing List (http

Re: [PHP] header function

2001-08-21 Thread Tyler Longren
Well, it's not a good idea to put something (like an echo) before a header()...even for testing because that will prevent the header() from working at all. You should have gotten an All headers have been sent or some similar error. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED

Re: [PHP] How to run php function from command line?

2001-08-20 Thread Tyler Longren
, and chmod +x it: #!/usr/local/lib/php/bin/php $connection = mysql_connect(localhost,user,pass); $db = mysql_select_db(db_to_use, $connection); $sql = mysql_query(UPDATE table SET name='name', email='email'); Then do ./test.php from the command line. -- Tyler Longren Captain Jack Communications

Re: [PHP] converting str with \n to one line str??

2001-08-20 Thread Tyler Longren
You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 Jens [EMAIL PROTECTED] wrote: When I use Javascript with PHP i run into one problem. When I get the data i need from the database it often has

Re: [PHP] GoTo URL Function?

2001-08-20 Thread Tyler Longren
header(Location: http://location.com/blah.php;); -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 13:56:25 -0500 RoyW [EMAIL PROTECTED] wrote: Hi, I am sure there is an easy way to do this... But when my script is done doing

Re: [PHP] What is wrong ????

2001-08-17 Thread Tyler Longren
Well, what's the error? Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 15:57:13 +0200 Dennis van Zanten [EMAIL PROTECTED] wrote: I wanna do this Insert: INSERT INTO sysdba_product_link VALUES ('','Y4DHVA0Q','CV/ Boiler','','010

Re: [PHP] What is wrong ????

2001-08-17 Thread Tyler Longren
addslashes() might help you. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 17:16:18 +0200 Dennis van Zanten [EMAIL PROTECTED] wrote: It's MYSQL I allready have located the problem but I still doesn't have a sollution? The problems

Re: [PHP] XHTML compatible error messages

2001-08-17 Thread Tyler Longren
$string = Hello everyone!brHow are you today?; $result = str_replace(br, br/, $string); -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 17:40:07 +0200 Jan [EMAIL PROTECTED] wrote: Hi out there! I have got a problem with PHP's

Re: [PHP] Browser Detection Redirection -- PHP or Apache ???

2001-08-17 Thread Tyler Longren
the $HTTP_USER_AGENT variable will be of some use to you. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 16:14:40 -0500 Christopher Raymond [EMAIL PROTECTED] wrote: PHP Folks: Does PHP provide some mechanism for browser detection

Re: [PHP] Sending alots of mail

2001-08-16 Thread Tyler Longren
[name]; // code to send email (use the mail() function) } Good luck, Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 16 Aug 2001 18:29:04 +0200 Jimmy Bäckström [EMAIL PROTECTED] wrote: Hi list! I'm about to write an application that takes about

<    1   2   3   >