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:\inc

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

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: > > > > results in in

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 - Original

[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

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

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 se

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

[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 = mcrypt_enc_get

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 o

[PHP] Using link to submit a form

2003-07-30 Thread Tyler Longren
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

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

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

[PHP] Templates, custom functions, mysql

2003-08-14 Thread Tyler Longren
oblem 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 [EMAI

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.

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 > b

[PHP] uploading images

2003-06-23 Thread Tyler Longren
/tyler/web/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 (htt

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 Wed

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

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 experien

Re: [PHP] Paying Job...

2002-07-25 Thread Tyler Longren
ichever will screw the client > 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 >

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 Ju

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 on

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 throug

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

Re: [PHP] Hacker?

2002-08-11 Thread Tyler Longren
> > -----Original Message- > From: 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,

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

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 PROTE

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 g

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 tha

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" <[EMA

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 >

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

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 re

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=702

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!? > "·¢¶ÌÐÅÓ®ÊÖ»ú,¿ìÀ´²Î¼ÓÑÅ»¢¾ÞÐÇÐã!" > http://cn.ent.yahoo.com/s

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 PRO

[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
quot;1LT John W. 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,

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: Thur

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] 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. > S

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

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

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:3

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 o

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 "

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,

[PHP] Uploading files

2002-06-27 Thread Tyler Longren
resource in /usr/local/apache/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 (ht

[PHP] forms and files

2002-07-02 Thread Tyler Longren
Hi, I have a form kinda like this: 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 passcodeFile file to upload and click the "upload" button, I am presented with this on the next page: "You need to specify a fi

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: > > > enctype=multipart/form-data> > > > > You really should use &q

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:

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 "

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 wi

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&quo

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]

Re: [PHP] php4apache.dll...

2002-07-10 Thread Tyler Longren
the php-dev mailing list, 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 apac

Re: [PHP] Table Making

2002-07-10 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

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

Re: [PHP] compiling and php.ini

2002-07-11 Thread Tyler Longren
mmended gets updated 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 o

[PHP] uploads work sometimes

2002-07-11 Thread Tyler Longren
Hi, I have a form: 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 filename in $_FILES['pdfF

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 fi

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&quo

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 C

Re: [PHP] Password in script

2002-07-18 Thread Tyler Longren
connections only from your server. > > 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

Re: [PHP] php 4.2.1 and MySQL

2002-07-22 Thread Tyler Longren
mysql_connect() function, it'd say "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

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.

[PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
'$_POST[domainregister_years$i]','$_POST[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
type,years,price) VALUES > > > ('$_POST[domainregister_domain$i]','$_POST[domainregister_type$i]','$_PO > ST[domainregister_years$i]','$_POST[domainregister_price$i]')"); > > > > Anyone know why that parse error is happening?

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Hi Matt, I put this right above like 871: print "$_POST[domainregister_domain$i]"; 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, just wit

Re: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
d the $i to the outside of the [] and it works now. 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 > >

[PHP] Getting results from Select Multiple HTML tag

2004-01-05 Thread Tyler Longren
the "test" field like this: count($_POST['test']); But since I have to have the [] in the name="" ()part, I get parse errors when trying to read it: ex: count($_POST['test[]']); That doesn't even look right. Anyone understand what I'm tryin to get a

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

2004-01-05 Thread Tyler Longren
me 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.p

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

2004-01-05 Thread Tyler Longren
)part, I get parse errors when trying to read it: > TL> ex: count($_POST['test[]']); > > TL> That doesn't even look right. Anyone understand what I'm tryin to get > TL> at? Any help would be great. > > TL> Best Regards, > TL> -- > T

[PHP] mysql_affected_rows() function

2004-01-06 Thread Tyler Longren
t, if no WHERE clause is in the query, then it will automatically return a 0. As you can see, 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 >

Re: [PHP] mysql_affected_rows() function

2004-01-06 Thread Tyler Longren
t;assign("message","ERROR: There was an error deleting those workers from the project."); } else { $tpl->newBlock('message'); $tpl->assign("message","The workers have been deleted from the project."); } If you (or anyone else) k

RE: [PHP] Web hosting for PHP/MySQl development

2001-01-18 Thread Tyler Longren
erver. Good stuff. Tyler Longren -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 7:37 PM To: PHP General Subject: [PHP] Web hosting for PHP/MySQl development Any recommendations for a good, savvy host for doing some PHP/MySQL development

[PHP] getting what's between

2001-02-21 Thread Tyler Longren
t couldn't get anything to work. I've tried everything I can think of. Sorry if the explanation of my problem was hard to understand, I don't exactly understand it myself. Thanks everybody!!! Regards, Tyler Longren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

[PHP] Next month

2001-03-06 Thread Tyler Longren
Hello, How do I get the number of the next month (Ex: 4). And when the current month reaches 12, the next month would be 1 and the next year would be 2002. Anybody know how I can accomplish this? Thanks, Tyler Longren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

RE: [PHP] mysql_fetch_array()

2001-03-07 Thread Tyler Longren
"; while ($row=mysql_fetch_array($sql_result)) { print ""; foreach ($row as $field) print "$field"; print ""; print "Get it"; print ""; print ""; } print ""; ?> Try that, you tried to call $mysql_query, when you needed to call mysql_query. In your code, $m

[PHP] Weird problem with Win2k

2001-03-13 Thread Tyler Longren
link library MSVCRT.dll. Does anybody have any idea why this occurs? This also happens when I try to run Paint Shop Pro. So it's not PHP itself. When PHP is started on boot, the error is logged to the event log. Anybody seen anything like this before? Thanks, Tyler Longren -- PHP Gener

[PHP] accepting credit cards

2001-04-15 Thread Tyler Longren
Hello everyone, I know this has been discussed many times before. I even read the past threads in the list archives. I've written a shopping cart/catalog that uses mysql on the backend. I need to be able to accept cc orders. Is Paypal a good choice? I've never really use any service like thi

[PHP] What's wrong with this code?

2001-04-22 Thread Tyler Longren
e server it works on is Win2k, IIS5, php4.0.4pl1. The server it doesn't work on is Linux, Apache, php4.0.4pl1. Any ideas why this won't work? Just to be sure, I did a chmod 777 about.inc, so file permissions isn't it. Thanks everyone, Tyler Longren -- PHP General Mailing List (h

RE: [PHP] redirection to another page function

2001-04-22 Thread Tyler Longren
header ("Location: http://www.location.com/home.html"); > -Original Message- > From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]] > Sent: Sunday, April 22, 2001 8:19 PM > To: PHP-GENERAL > Subject: [PHP] redirection to another page function > Importance: High > > > Hel

RE: [PHP] if... then... else with HTML

2001-04-23 Thread Tyler Longren
1st HTML here 2nd HTML here > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 23, 2001 7:41 AM > To: [EMAIL PROTECTED] > Subject: [PHP] if... then... else with HTML > > > Hello ! > > I want to do something like > > if (condition) > o

[PHP] Now, why doesn't this work?

2001-04-23 Thread Tyler Longren
Hello everybody, My host seems to be having some weird problems. Here's a piece of code: if (($this_month_sql = mysql_query("SELECT * FROM $mysql_shows_table WHERE month = '$thismonth' ORDER BY timestamp ASC")) && ($next_month_sql = mysql_query("SELECT * FROM $mysql_shows_table WHERE month = '$n

RE: [PHP] Now, why doesn't this work (update)?

2001-04-23 Thread Tyler Longren
Also, I ran this SQL on the regular mysql client, and it returned the correct data...for some reason if I run it in PHP, I get the SQL syntax error. Tyler > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 23, 2001 9:20 PM > To:

RE: [PHP] Now, why doesn't this work? (this thread can die off now)

2001-04-23 Thread Tyler Longren
Tyler > -Original Message- > From: Jason Murray [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 23, 2001 9:27 PM > To: 'Tyler Longren' > Subject: RE: [PHP] Now, why doesn't this work? > > > > :) > > read the updated message..forgot to say that I've don

[PHP] upload/download of files (This is LONG)

2001-04-30 Thread Tyler Longren
but it still won't play, and when I do a "Save Target As" the file name is all screwed up. If the link was this: http://localhost/sweetleaf/music/Provoke - Quick Blast.mp3>Quick Blast you'd think the filename I'd download would be "Provoke - Quick Blast.mp3&

RE: [PHP] URL redirection

2001-05-06 Thread Tyler Longren
if ($varTwo == $varOne) { header('Location: http://www.location.com/page.html'); } else { echo "You stay right where you are!"; } Tyler > -Original Message- > From: Jamie Saunders [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 5:21 PM > To: [EMAIL PROTECTED] > S

[PHP] problem with my sessions

2001-05-09 Thread Tyler Longren
te (with config.inc included @ the very top, before anything is sent to the browser), the $HTTP_SESSION_VARS["username"] ($username) and $HTTP_SESSION_VARS["password"] ($password) are lost. Can anybody offer me any help? I've been trying to get this to work for 48 hours no

RE: [PHP] Strange

2001-05-09 Thread Tyler Longren
if ($userid && $password) { $res = pg_exec($db, "SELECT userid FROM users WHERE userid='$userid' AND password='$password'"); $x = pg_numrows($res); if ($x==1) { $verified_user = $userid; session_register ("$ver

[PHP] Can't connect to mysql after applying MS Hotfix

2001-05-15 Thread Tyler Longren
Hello everybody, Lastnight, I was building a site. Multiple SQL queries were being made on every page. Everything worked nice and smooth. I downloaded and applied the patch for MS01-026 which effects IIS 4.0 and 5.0. I rebooted after applying the hotfix, and after that, NONE of my php scripts

RE: [PHP] Uptime script?

2001-05-15 Thread Tyler Longren
exec(uptime); or system(uptime); Tyler > -Original Message- > From: Ryan Christensen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 15, 2001 11:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Uptime script? > > > I know I've seen one before, and before I go write my own version, does >

[PHP] no connection to mysql

2001-05-16 Thread Tyler Longren
Hello everyone, PHP just stopped being able to connect to mysql. mysqld-nt is running, and is running alright becuase I can connect, select databases, and execute sql queries through the mysql client. However, when I try to establish a connection through PHP, the connection never gets made. Th

Re: [PHP] mysql error, dont see why.. please help

2001-05-22 Thread Tyler Longren
Shouldn't it be: mysql_query("UPDATE user_polls SET url = '$file_name' WHERE uid = '$UserName' AND type = '$type") or die (mysql_error()); Maybe I'm wrong. -- Tyler Longren [EMAIL PROTECTED] Currently Unemployed www.noworkfortyler.com On T

RE: [PHP] Date (Year) .. adding..

2001-05-22 Thread Tyler Longren
Try that. Tyler > -Original Message- > From: Jason Caldwell [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 22, 2001 11:20 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Date (Year) .. adding.. > > > I'm trying to figure out how to add to the year: > > for($x=0; $x<20; $x++) > { > $ye

  1   2   3   >