[PHP] mysql_affected_rows() function

2004-01-06 Thread Tyler Longren
, my query above does have a WHERE clause. Can anyone help me out? Thanks!!! Best Regards, -- Tyler Longren J.D. Web Services, L.C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] counting charactors

2004-01-06 Thread Tyler Longren
Hi Philip, strlen() will work. http://www.php.net/manual/en/function.strlen.php Best Regards, -- Tyler Longren J.D. Web Services, L.C. On Wed, 2004-01-07 at 01:25, Philip J. Newman wrote: can someone point me to the right place for a thing that would count charactors in a string

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread Tyler Longren
.); } else { $tpl-newBlock('message'); $tpl-assign(message,The workers have been deleted from the project.); } If you (or anyone else) know of another way I should be doing this, please let me know. I'm open to any suggestions. Best Regards, -- Tyler Longren J.D. Web Services, L.C

[PHP] Getting results from Select Multiple HTML tag

2004-01-05 Thread Tyler Longren
would be great. Best Regards, -- Tyler Longren J.D. Web Services, L.C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting results from Select Multiple HTML tag

2004-01-05 Thread Tyler Longren
to RTFM won't help cuz I've red that section. Don't tell me to STFA (search the fuckin archives???), cuz I've done that also. Thanks for your understanding! tyler On Mon, 2004-01-05 at 22:05, Tyler Longren wrote: Hi, http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple I read

Re: [PHP] Getting results from Select Multiple HTML tag

2004-01-05 Thread Tyler Longren
what I'm tryin to get TL at? Any help would be great. TL Best Regards, TL -- TL Tyler Longren TL J.D. Web Services, L.C. try $_POST['test'][] or copy it to another array $test = $_POST['test']; print_r($test); -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
[domainregister_price$i]')); Anyone know why that parse error is happening? I can't find a missing ] anywhere. Any help would be greatly appreciated. Thanks, Tyler Longren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Sorry, should have mentioned that I tried quoting them already. That gives a T_VARIABLES parse error. Thanks for the reply, Tyler On Mon, 2003-12-22 at 12:30, Sam Masiello wrote: Perhaps it doesn't like the fact that you don't have quotes around your array keys? --Sam Tyler Longren

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Hi Matt, I put this right above like 871: print brbr$_POST[domainregister_domain$i]brbr; So now that print line is 871. It produces the exact same error as the mysql_query() line. The reason I'm doin it like this is cuz I'm dynamically generating forms, and lots of the fields are the same,

Re: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
. Thanks for everyone's input..helped me open my eyes a bit. Tyler On Mon, 2003-12-22 at 12:51, John W. Holmes wrote: Tyler Longren wrote: Error: Parse error: parse error, expecting `']'' in /usr/local/apache/htdocs/UP/index.php on line 871 ('$_POST[domainregister_domain$i

Re: [PHP] mysql_error() problem?

2003-08-14 Thread Tyler Longren
hmmm...perhaps that was it. When I had this issue before, someone told me to check mysql_affected_rows() when using issuing an UPDATE query. I'll give that a shot. Thanks! Tyler - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: Tyler Longren [EMAIL PROTECTED]; [EMAIL

[PHP] Templates, custom functions, mysql

2003-08-14 Thread Tyler Longren
is that I can't get the results to be printed to my $template, or $home_tpl. $home_tpl is named home.tpl, and that's where the html code is that displays the results from worker_projects(); Can anyone help me out here? If you need more info, just let me know. Tyler Longren [EMAIL PROTECTED] CODE

[PHP] mysql_error() problem?

2003-08-07 Thread Tyler Longren
Hi, I'm running an UPDATE query on my table. After executing the query, I check mysql_error() to see if there's any errors: if (mysql_error() == ) { // success } else { // failure } mysql_error() is always empty even if the query didn't succeed. So it always thinks it succeeds. I

[PHP] Using link to submit a form

2003-07-30 Thread Tyler Longren
, but couldn't find any info that really applies to my question. This isn't exactly a PHP related question, but php is hugely involved in this project. Thanks! Tyler Longren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5?

2003-07-23 Thread Tyler Longren
the latest stable version of PHP works just fine with Apache 2.0.47. tyler - Original Message - From: Jonathan Villa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 11:47 AM Subject: [PHP] PHP5? Has anyone installed PHP 5 on Apache 2.0.47? What version of

[PHP] uploading images

2003-06-23 Thread Tyler Longren
/upload.php on line 28 And here's line 28: $data = fread(fopen($_POST['binFile'], r), filesize($_POST['binFile'])); Am I doing that correctly? If you need to see more code, let me know. Thanks everyone! Tyler Longren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Sessions?

2003-06-18 Thread Tyler Longren
Did you try taking a look at the manual? Tyler - Original Message - From: Lee Elenbaas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:06 PM Subject: [PHP] Sessions? Hi, I have failed to find the information I am looking for on session management by PHP -

Re: [PHP] Duplicate records

2003-06-06 Thread Tyler Longren
why not just make the 'id' field in the table auto_increment? tyler - Original Message - From: Steve Marquez [EMAIL PROTECTED] To: MySQL List [EMAIL PROTECTED] Cc: PHP eMail List [EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:40 PM Subject: [PHP] Duplicate records Hello. I am

[PHP] What do these errors mean?

2003-02-21 Thread Tyler Longren
Hi, I was looking through php.ini and noticed that show_error was set to Off. I turned it On, and now I see these errors on one of my pages: Notice: Use of undefined constant option - assumed 'option' in /usr/local/apache/htdocs/tyler/encodeDecode.php on line 37 Notice: Undefined index: option

Re: [PHP] Cannot find php.ini

2003-02-21 Thread Tyler Longren
Default location is: /usr/local/lib/php.ini You can also do a: locate php.ini Good luck, Tyler - Original Message - From: Kevin Paz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 1:03 PM Subject: [PHP] Cannot find php.ini I've taken over a redhat server

Re: [PHP] What do these errors mean?

2003-02-21 Thread Tyler Longren
The actual name of the variable in that message is display_errors, not show_error. tyler - Original Message - From: Tyler Longren [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 1:01 PM Subject: [PHP] What do these errors mean? Hi, I was looking through

[PHP] mcrypt not fully decrypting?

2003-02-21 Thread Tyler Longren
Hi, I'm going to start encrypting credit cards with the mcrypt functions. I encrypted the credit cards like so: $key = 'test'; $cc = 1234567890123456; $td = mcrypt_module_open ('tripledes', '', 'ecb', ''); $key = substr ($key, 0, mcrypt_enc_get_key_size ($td)); $iv_size =

[PHP] getting result from mysql decode() function

2003-02-18 Thread Tyler Longren
Hi, I have this query: $decode = mysql_query(SELECT decode(\$data\, \$password\)); It decodes the $data using the $password. How do I go about printing the result? Thanks, Tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect without header or javascipt

2003-02-18 Thread Tyler Longren
no tyler - Original Message - From: Daniel Guerrier [EMAIL PROTECTED] To: php user group [EMAIL PROTECTED] Sent: Tuesday, February 18, 2003 4:59 PM Subject: [PHP] Redirect without header or javascipt Is there any to redirect in php with using header() and without the use of

Re: [PHP] PHP 4.3 Apache 2

2003-01-01 Thread Tyler Longren
Yup, still experimental. But from what I've experienced, they work just fine together. I run Apache 2.0.43 and PHP 4.3.0 together without any problems what so ever. When you compile php with apache 2, remember to: ./configure --with-axps2 instead of ./configure --with-apxs tyler -

Re: [PHP] Missing logos

2002-12-31 Thread Tyler Longren
- Original Message - From: Richard A Downing [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 31, 2002 5:54 AM Subject: [PHP] Missing logos I have just installed 4.3.0 with apache2.0.43. Running a standard test.php file consisting solely of: ?phpinfo(); ? results in

Re: [PHP] problem including a file

2002-12-30 Thread Tyler Longren
- Original Message - From: Omar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 30, 2002 1:32 PM Subject: [PHP] problem including a file I have an include line in all the php files i write something like -- include('connection.inc'); The include path is d:\includes.

Re: [PHP] Multiple forms

2002-12-30 Thread Tyler Longren
- Original Message - From: Doug Coning [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Monday, December 30, 2002 3:26 PM Subject: [PHP] Multiple forms Hi all, I have an update page that has a form in it. However, I want to add another form in the same page. My current

Re: [PHP] PHPTriad on Windows XP?

2002-10-01 Thread Tyler Longren
Did you even try to find the answer by yourself? You could have found the answer to this on the PHPTriad(now called Sokkit) homepage: http://www.phpgeek.com/sokkit/ The answer is listed under Sokkit Requirements. tyler On Tue, 1 Oct 2002 17:19:13 -0500 Stephen [EMAIL PROTECTED] wrote: Just

Re: [PHP] PHP version

2002-10-01 Thread Tyler Longren
yes, that would work much better. tyler On Tue, 01 Oct 2002 20:11:21 -0400 Brad Bonkoski [EMAIL PROTECTED] wrote: Sorry... I think: http://www.php.net/manual/en/function.phpversion.php will be more inline with what you want... -Brad Alex Shi wrote: Is there any way to report PHP

Re: [PHP] PHP version

2002-10-01 Thread Tyler Longren
You can get it out of this variable: _SERVER[SERVER_SOFTWARE] tyler On Tue, 1 Oct 2002 20:03:25 -0400 Alex Shi [EMAIL PROTECTED] wrote: Is there any way to report PHP version? -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 --

Re: [PHP] The latest PHP version??? NOT Ver7.2??

2002-10-01 Thread Tyler Longren
latest version is: 4.2.3 not 7.2 tyler On Wed, 2 Oct 2002 10:36:08 +0800 (CST) ¼ÒÎÄ ·½ [EMAIL PROTECTED] wrote: thanks. Can you email me??? _ Do You Yahoo!? ·¢¶ÌÐÅÓ®ÊÖ»ú,¿ìÀ´²Î¼ÓÑÅ»¢¾ÞÐÇÐã!

Re: [PHP] strange bug(?) when opening lots of files

2002-09-17 Thread Tyler Longren
How long does the script tend to run before it just quits? Perhaps a timeout is set too low in php.ini. Take a look at max_execution_time in php.ini tyler On Tue, 17 Sep 2002 23:14:46 +0100 Shane Wright [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi One of

Re: [PHP] subdomain

2002-09-10 Thread Tyler Longren
Try this: $subdomain = $_SERVER[SERVER_NAME]; And then get all the text before the first .. Tyler On Wed, 11 Sep 2002 10:55:56 +1000 Liam MacKenzie [EMAIL PROTECTED] wrote: G'day everyone, I have a dilemma... I'm running BIND locally, with a wildcard A record. That means that if someone

Re: [PHP] Don't read if easily offended...

2002-09-10 Thread Tyler Longren
You should check to make sure the variable isn't empty. And if it is put some other name in there (like Bill Clinton). Cuz if you go to just http://fuckedyourmum.com, you just get: fucked your Mum!!! for text. Just a suggestion, Tyler On Wed, 11 Sep 2002 12:08:03 +1000 Liam MacKenzie [EMAIL

Re: [PHP] Count in PHP

2002-09-09 Thread Tyler Longren
$sql = mysql_query(SELECT * FROM table ORDER BY whatever); echo(mysql_num_rows($sql)); that should do it. tyler On Tue, 10 Sep 2002 00:58:26 -0400 Chuck \PUP\ Payne [EMAIL PROTECTED] wrote: I am wanting to do a count in PHP. I want to be able to count the number of records from a given

Re: [PHP] Re: Hardware Address

2002-09-05 Thread Tyler Longren
using exec() or system() will only be able to execute commands on the machine php is installed on. I sometimes wonder how universities and broadband isp's do this. I'd be interested in seeing how it works. Sorry, I'm not much help anymore. tyler On Fri, 6 Sep 2002 01:24:07 +0200 [EMAIL

Re: [PHP] Proxy taking me to localhost.com

2002-08-28 Thread Tyler Longren
This is the greatest php related question I have ever seen. tyler On Wed, 28 Aug 2002 15:23:48 -0400 [EMAIL PROTECTED] wrote: Hey, I am on a cable connection...and to connect to the net my provider gave me an address where my browser would get automatically configured...maybe because of

Re: [PHP] Hacker?

2002-08-11 Thread Tyler Longren
block his ip at the router. tyler On Sun, 11 Aug 2002 16:21:07 -0600 RPS Internet [EMAIL PROTECTED] wrote: My server is getting odd request form an outside computer. Upon looking into the requests I have found his PHP Config file is point to my server as the HTTP_VIA and other vars. I am

Re: [PHP] Hacker?

2002-08-11 Thread Tyler Longren
: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 11, 2002 4:15 PM To: RPS Internet Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Hacker? block his ip at the router. tyler On Sun, 11 Aug 2002 16:21:07 -0600 RPS Internet [EMAIL PROTECTED] wrote: My server is getting odd

Re: [PHP] My SQL speed.

2002-08-02 Thread Tyler Longren
Should this be asked in a mysql list ? Please suggest a NNTP server! You could always take this to the mysql mailing list [EMAIL PROTECTED] tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] still need help with crash on make

2002-07-31 Thread Tyler Longren
Use apache 1.3.26 and it'll work. Just change the configure line: ./configure --with-mysql --with-apxs=/path/to/apxs Apache 2 is troublesome. tyler On Wed, 31 Jul 2002 17:27:30 -0500 Kirk Babb [EMAIL PROTECTED] wrote: Could somebody help me with this?.I posted yesterday with only one

Re: [PHP] toolbar.google.com

2002-07-31 Thread Tyler Longren
It's called Google Magic. I don't really know the answer to your question. Google does a lot of really neat things (like converting pdf to html). tyler On Thu, 1 Aug 2002 08:17:35 +0100 Lord Loh. [EMAIL PROTECTED] wrote: Google uses php to make a software download and installs it through

Re: [PHP] PHP Installation Problem

2002-07-30 Thread Tyler Longren
I'm not sure exactly what you're saying, but it sounds to me like you didn't configure --with-mysql for the new server. You MUST do that. ./configure --with-apxs=/blah/blah --with-mysql If you don't have --with-mysql compiled into the php binary, mysql functions won't work. Tyler On Tue, 30

[PHP] pdf to html

2002-07-25 Thread Tyler Longren
Hi, I've been searching around for ways to convert pdf to html. I haven't had much luck. I have a client that has a bunch of pdf's stored in a mysql table. They don't want their users to have to download the pdf file, they want the pdf to be displayed in the web browser all the time. Google

Re: [PHP] Paying Job...

2002-07-25 Thread Tyler Longren
Charge by which ever will get you the most money. tyler On Thu, 25 Jul 2002 11:46:38 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: Basically, someone is looking to get a database driven site built, and Ive never written code for money before. Im looking for advice, as to how the experienced

Re: [PHP] Paying Job...

2002-07-25 Thread Tyler Longren
the worst.? Jesus. Martin Tyler Longren [EMAIL PROTECTED] 07/25/02 11:44AM Charge by which ever will get you the most money. tyler On Thu, 25 Jul 2002 11:46:38 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: Basically, someone is looking to get a database driven site built

Re: [PHP] Image upload into database

2002-07-24 Thread Tyler Longren
Are you trying to upload the same image as you did at home? If so, size isn't the problem if you can do it from home. It might be a timeout issue. There might be something in php.ini you can set for timeout. You can specify the max filesize to upload in php.ini also. Good luck, Tyler On

Re: [PHP] php 4.2.1 and MySQL

2002-07-22 Thread Tyler Longren
Using password: NO. Go into mysql and make sure the username/password haven't been changed and make sure the machine that php is on is allowed to connect to the mysql server. Good luck, -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 22 Jul 2002 08:32:35

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1

2002-07-22 Thread Tyler Longren
I actually enjoy all the security releases. They give me something to do at work! tyler On Mon, 22 Jul 2002 11:55:31 -0500 (CDT) Greg Donald [EMAIL PROTECTED] wrote: On Mon, 22 Jul 2002, Marko Karppinen wrote: PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1

Re: [PHP] Password in script

2002-07-18 Thread Tyler Longren
It's fine. There's no other way to do it really. Somebody would have to be able to see the source to the php file before they could see the password for mysql. They won't get it just by viewing the webpage that's already been parsed by php. -- Tyler Longren Captain Jack Communications [EMAIL

Re: [PHP] Password in script

2002-07-18 Thread Tyler Longren
. Tyler Longren [EMAIL PROTECTED] wrote: It's fine. There's no other way to do it really. Somebody would have to be able to see the source to the php file before they could see the password for mysql. They won't get it just by viewing the webpage that's already been parsed by php

Re: [PHP] Apache 2.0 + PHP

2002-07-15 Thread Tyler Longren
In a production environment: no for fun: yes -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 16 Jul 2002 09:13:41 +0930 (CST) Michael Hall [EMAIL PROTECTED] wrote: I've had a hunt through the mail archives but can't find a definite answer

Re: [PHP] PHP 4.3.x..

2002-07-15 Thread Tyler Longren
You could have found the answer to this question right on the front page of php.net. 4.3.x is indeed the current development version. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 15 Jul 2002 14:00:26 -0230 Kondwani Spike Mkandawire [EMAIL

Re: [PHP] php4apache.dll...

2002-07-11 Thread Tyler Longren
, they can probably help you out more. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 11 Jul 2002 16:22:27 +1000 Peter [EMAIL PROTECTED] wrote: Howdy can any one remember where to get the apache2 ver of php4apache.dll? Cheers Peter the only

Re: [PHP] Table Making

2002-07-11 Thread Tyler Longren
I'm not sure if you can do that because you have to go row by row when writing html, not column by column. I could be mistaken though. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Wed, 10 Jul 2002 22:34:15 -0800 Jason Soza [EMAIL PROTECTED] wrote

Re: [PHP] compiling with mysql

2002-07-11 Thread Tyler Longren
I've never compiled php with the path to mysql. I've done this on lots of different servers, and it always works. I don't know if it's the proper way of doing things, but it does work. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 12 Jul 2002 10

Re: [PHP] compiling and php.ini

2002-07-11 Thread Tyler Longren
after running the configure script. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 12 Jul 2002 09:56:52 +0930 (CST) Michael Hall [EMAIL PROTECTED] wrote: I've just compiled PHP 4.2.1 with Apache 1.3.24 on RedHat 7.2. Everything works just fine

[PHP] uploads work sometimes

2002-07-11 Thread Tyler Longren
Hi, I have a form: input type=file name=pdfFile And the code that processes the form: if ($_FILES['pdfFile']['name'] == ) { print You must select a file to upload; } else { // code to add data to db } This works on my server at home (when I select a file to upload, it sees the

Re: [PHP] SQL field problem

2002-07-10 Thread Tyler Longren
I think you want to use group by: SELECT * FROM table GROUP BY kat; -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Wed, 10 Jul 2002 19:40:11 +0200 [EMAIL PROTECTED] wrote: Hello I have a problem with mysql.I create a table with a field kat.In

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Tyler Longren
It works for you because you have register_globals set to on in php.ini. If you set it to off it won't work any longer. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 11 Jul 2002 08:07:48 +0530 Balaji Ankem [EMAIL PROTECTED] wrote: It is working

Re: [PHP] need help about this

2002-07-10 Thread Tyler Longren
Table 'book_auth' already exists means that you're trying to create the 'book_auth' table again, even though it already exists. Remove the old 'book_auth' table to create the new one. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 11 Jul 2002 13

Re: [PHP] Stupid install ???

2002-07-09 Thread Tyler Longren
I'll assume you're using Apache. Did you add (or uncomment) the relavent lines in httpd.conf? Check the php installation manual for the lines to add. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 9 Jul 2002 12:02:27 -0500 Hopp3r [EMAIL PROTECTED

[PHP] forms and files

2002-07-02 Thread Tyler Longren
Hi, I have a form kinda like this: form action=$PHP_SELF?option=Massaction=add method=POST enctype=multipart/form-data input type=file name=passcodeFile the rest of the form is there too. And $PHP_SELF is set to $PHP_SELF = $_SERVER[PHP_SELF] at the top of the page. When I select a

Re: [PHP] forms and files

2002-07-02 Thread Tyler Longren
On Tue, 2 Jul 2002 23:45:56 +0800 Jason Wong [EMAIL PROTECTED] wrote: On Tuesday 02 July 2002 23:34, Tyler Longren wrote: Hi, I have a form kinda like this: form action=$PHP_SELF?option=Massaction=add method=POST enctype=multipart/form-data input type=file name=passcodeFile You

Re: [PHP] Help - I'm New

2002-07-02 Thread Tyler Longren
you must be tired from searching the manual all day for your answer. :) Check here: http://www.php.net/manual/en/install.apache.php There's a section on installing with Win32 -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 2 Jul 2002 17:14:32

[PHP] Uploading files

2002-06-27 Thread Tyler Longren
/htdocs/cj/aanr/admin/passcode_admin.php on line 146 The $data = line is line number 146. Does anyone seen anything wrong with this? Thanks, -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Security problem?

2002-06-25 Thread Tyler Longren
that who's gonna steal your mysql username/password. They can't just say: Download http://yoursite.com/file_with_good_info.php and get the php-source, all they'd get is the HTML source. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 25 Jun 2002 20:46:04

Re: [PHP] display_error=Off in php.ini

2002-06-21 Thread Tyler Longren
Did you restart your webserver after you made the change in php.ini? If you didn't, make sure you restart it now. Restarting your webserver should fix it. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 21 Jun 2002 12:57:34 -0400 Anil Garg [EMAIL

Re: [PHP] increasing max size to upload

2002-06-20 Thread Tyler Longren
Change upload_max_filesize in php.ini to the value you desire. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 20 Jun 2002 12:12:33 -0400 Anil Garg [EMAIL PROTECTED] wrote: hi, how can i change the maximum size of the file being uploaded

Re: [PHP] Need help

2002-06-18 Thread Tyler Longren
If you don't have cURL Installed yet, you can get it for Win32 here: http://curl.haxx.se/download.html On Tue, 2002-06-18 at 09:30, Barbara wrote: I want to know how I have to install cURL on my apache server. My apache server is running on Windows ME. Thanks for all. Barbara Guillen. Spain

Re: [PHP] Error Reporing Questions with Mac

2002-06-18 Thread Tyler Longren
Perhaps it was a typo, but parse error on line 1 does state the line number. tyler On Tue, 2002-06-18 at 09:57, Kevin Ruiz wrote: I'm running php 4 on a unix server and am experiencing a problem with error reporting I'm getting on my mac. When I get a parse error it won't tell me what line

Re: [PHP] linux: how can I check if php/mysql is working properly?

2002-06-18 Thread Tyler Longren
Just for future reference, you don't actually need to put the 'echo' before the phpinfo(). Calling phpinfo() by itself will print the desired info. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 18 Jun 2002 15:30:38 -0400 (EDT) Scott [EMAIL

Re: [PHP] php 4.3 and php_pgsql.dll

2002-06-18 Thread Tyler Longren
Why don't you just use 4.2? I wouldn't use 4.3 on a linux box, let alone a windows xp machine. Give it a try with 4.2. If it works, then it is indeed a version conflict. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Tue, 18 Jun 2002 21:30:22 -0700

Re: [PHP] Problem with MySQL

2002-06-14 Thread Tyler Longren
you need to put your $myrow in a while loop: while ($myrow = mysql_fetch_array($result)) { $title = $myrow[title]; $videoid = $myrow[videoid]; $catergory = $myrow[catergory]; $appraisal = $myrow[appraisal]; // blah blah blah everything else } Tyler Longren Captain Jack Communications

Re: [PHP] Best way to store 1000 char in a database

2002-06-06 Thread Tyler Longren
What do you mean the best way? Do you mean which data type you should give the field? A bit more info please. :-) Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 06

Re: [PHP] redirection

2002-06-05 Thread Tyler Longren
I think that's pretty much your only option. You could use javascript to redirect if you wanted. Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: Renaldo De Silva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 05

[PHP] days between two timestamps

2002-06-05 Thread Tyler Longren
Hi, I have two different timestamps: 20020603164114 and 20020605054710 Is there a simple way to get the number of days between the two dates? thanks, tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] days between two timestamps

2002-06-05 Thread Tyler Longren
. Holmes [EMAIL PROTECTED] To: Tyler Longren [EMAIL PROTECTED]; php-general [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 10:09 AM Subject: Re: [PHP] days between two timestamps Since those look like MySQL timestamps, I would suggest you do it in your query. SELECT TO_DAYS(column1) - TO_DAYS

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

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 billing

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

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=4id=6681loc=0thread=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 Jack Communications

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] 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 referer. Tyler Longren Captain Jack Communications

[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

[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

Re: [PHP] MySQL and sorting

2002-05-20 Thread Tyler Longren
the '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 sorting Is there a way to extract lets say a bunch

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: Thursday, May 09, 2002 12:23 PM

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

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 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 Message - From

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

Re: [PHP] file permissions on counter?

2002-04-23 Thread Tyler Longren
($file, w+); fputs($fp, $counter); fclose($fp); include($file); ? Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: Antonio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 8:48 PM Subject: [PHP] file permissions

Re: [PHP] Submit Form

2002-04-22 Thread Tyler Longren
Are you using method=post in your form 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: [EMAIL PROTECTED] Sent: Monday

Re: [PHP] MySQL query

2002-04-22 Thread Tyler Longren
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 PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Monday, April 22, 2002 3:07 PM Subject: [PHP] MySQL query Hi, Can someone

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: Sebastian A. [EMAIL

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

  1   2   3   >