Re: [PHP] printing array

2002-12-02 Thread Matt
- Original Message - From: "empty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 02, 2002 8:08 PM Subject: [PHP] printing array > Hi > $stra=("aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll"); > $splited = array(); > $splited = split(",",$stra); > $c=count($splited); > for($i=

Re: [PHP] Validating get and post data

2002-12-02 Thread Matt
- Original Message - From: "Beth Gore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 02, 2002 9:12 PM Subject: [PHP] Validating get and post data > Okay, I've just solved my own problem by simply doing: > > settype($input,"integer"); > > but.. I'm puzzled about why t

Re: [PHP] help - WHILE in FOREACH

2003-01-07 Thread Matt
> From: "James Brennan" <[EMAIL PROTECTED]> > Sent: Tuesday, January 07, 2003 8:29 PM > Subject: [PHP] help - WHILE in FOREACH > The while statement is only executing correctly for the first run through > the foreach loop. Why? > > Thanks, > loop > > foreach($desc as $key=>$value) { > printf("Sho

Re: [PHP] HTTP_WEFERER

2003-01-07 Thread Matt
> - Original Message - > From: "bill" <[EMAIL PROTECTED]> > Sent: Tuesday, January 07, 2003 8:40 PM > Subject: [PHP] HTTP_WEFERER > A script started acting wonky with no changes to it. Doing a bit of debug at > the time, I uncovered an odd variable called > > HTTP_WEFERER > > Any ideas?

Re: [PHP] Date Comparison

2003-01-11 Thread Matt
>- Original Message - >From: "Dhaval Desai" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Saturday, January 11, 2003 8:38 AM >Subject: [PHP] Date Comparison > Well, I want to compate date is php, could anybody tell me which is the best way to do so? Look at PHPs date functions http:

Re: [PHP] strip php tags from code ?

2003-01-12 Thread Matt
>- Original Message - >From: "David D" <[EMAIL PROTECTED]> >Sent: Monday, January 06, 2003 7:47 AM >Subject: [PHP] strip php tags from code ? > I only want to keep html code of a page. > I want to remove php tags. It sound like you want the parser output of the page. You can use PHPs ou

Re: [PHP] Next and Previous

2003-01-14 Thread Matt
>"Miguel Brás" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > That's not the case, I tested it on ID549 and the previous one should be 548 and he still assume -1 Works for me. Are you adding the ?ID=500 to the url? If you don't have that, then the ID is 0, so

Re: [PHP] alternative control structure syntax

2003-01-15 Thread Matt
- Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 8:34 PM Subject: [PHP] alternative control structure syntax > Can someone point me to the page in the manual where this style of control > structure syntax is docu

Re: [PHP] Session Problem

2003-01-15 Thread Matt
>- Original Message - >From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: [PHP] Session Problem > Can some one pl explain what this means ... > Warning: Cannot send session cache limiter - headers already sent > (output started at /Users/pgarcha/Site

Re: [PHP] $HTTP_GET_VARS

2003-01-17 Thread Matt
- Original Message - From: "Mike Tuller" <[EMAIL PROTECTED]> To: "php mailing list" <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 5:05 PM Subject: [PHP] $HTTP_GET_VARS > I am following an example in a book and have run into a problem with a > script that I am trying to run under PHP

Re: [PHP] Evaluate PHP var in stored sql statement?

2003-01-24 Thread Matt
> From: "Noah" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, January 24, 2003 4:39 PM > Subject: Re: [PHP] Evaluate PHP var in stored sql statement? > eval("\$myrow[2] = \"$myrow[2]\";"); > > What's the deal with the leading backslash in ' eval("\$myrow[2] '? It's escaping th

Re: [PHP] paths after file in url

2003-01-24 Thread Matt
- Original Message - From: "Glenn Pierce" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 3:52 PM Subject: [PHP] paths after file in url > > Does anyone know why url's such as > > http://www.php.net/mailing-lists.php/This/is/a/test This only works in apache. S

Re: [PHP] HELP session cache limiters

2003-01-27 Thread Matt
- Original Message - > From: "Didier McGillis" <[EMAIL PROTECTED]> > Sent: Monday, January 27, 2003 7:14 PM > Subject: [PHP] HELP session cache limiters > > Any thoughts on this error? > > Warning: Cannot send session cache limiter - headers already sent (output > started at /home/sisource/

Re: [PHP] Functions and arguments

2003-01-29 Thread Matt
- Original Message - From: "R0x0r Mc0wnage" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:49 PM Subject: Re: [PHP] Functions and arguments > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result > resource in > /home/virtual/site125

Re: [PHP] new to php/mysql

2003-01-31 Thread Matt
"Sam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i'm new to this php/mysql thing - i've defected microsoft. > when trying to pull data from a table in mysql, i get the following error: > > Warning: mysql_fetch_row(): supplied argument is not a valid MyS

Re: [PHP] Function Stack

2003-02-01 Thread Matt
- Original Message - From: "Joshua Moore-Oliva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 7:08 AM Subject: [PHP] Function Stack > Is there any way to access the Function Stack from php? Not built in, but you could manually add statement to do it your

Re: [PHP] question on listbox.

2003-02-01 Thread Matt
- Original Message - From: "Denis L. Menezes" <[EMAIL PROTECTED]> To: "PHP general list" <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 6:08 AM Subject: [PHP] question on listbox. Hello friends. >I have a listbox which I populate from a query with the database. It is >working fin

Re: [PHP] Strange problem

2003-02-01 Thread Matt
- Original Message - From: "Denis L. Menezes" <[EMAIL PROTECTED]> To: "PHP general list" <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 7:08 AM Subject: [PHP] Strange problem > I have the following script. Both the errors show green font when actually > the first error should gi

Re: [PHP] MySQL/PHP Associative Array Insert

2003-02-02 Thread Matt
- Original Message - From: "CDitty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 11:26 AM Subject: [PHP] MySQL/PHP Associative Array Insert > A co-worker is teaching me to move to the next level in php. I have > started using associative arrays for my scri

Re: [PHP] listbox problems

2003-02-02 Thread Matt
>From: "Sunfire" <[EMAIL PROTECTED]> >Sent: Sunday, February 02, 2003 4:53 PM >Subject: [PHP] listbox problems > i have a listbox: > > //connect to db and get query > mysql_connect("."); > mysql_select_db("..."); > $query=mysql_query("select username from users); > /*finish the listbox*/ >

Re: [PHP] Column count doesn't match value count at row 1?

2003-02-07 Thread Matt
- Original Message - From: "Jeremy Bowen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 1:30 PM Subject: [PHP] Column count doesn't match value count at row 1? That means the the number of columns in the fields clause doesn't match the number in the values.

Re: [PHP] grief with printf(), padding and alignment of text

2003-02-11 Thread Matt
- Original Message - From: "Robert E. Harvey, M.D." <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 6:21 PM Subject: [PHP] grief with printf(), padding and alignment of text > I'm running PHP 4.2.2 and I'm having trouble with the printf() > function. I

Re: [PHP] need help with a table please - sorry

2003-02-12 Thread Matt
>- Original Message - >From: "Denis L. Menezes" <[EMAIL PROTECTED]> >Sent: Wednesday, February 12, 2003 9:43 AM >Subject: [PHP] need help with a table please - sorry >Sorry I sent the wrong code in my last mail. Here is my correct code. >I want the output of my query to be formatted such

[PHP] problem with ftp browsing

2003-02-23 Thread Matt
ne give me some advice? I would really appreciate it. Thanks. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] In need of a script

2003-08-24 Thread Matt
On Sunday, August 24, 2003 at 9:49 AM Stevie D Peele wrote: > Can someone show me an example of some code that works something like > this : > > > if cookie is present > redirect to a certain page > > ?> http://www.php.net/header for explanation if ($_COOKIE['cookie_I_want_to_know_about']) { h

[PHP] Re: [PHP-INST] PHP: Cannot send session cookie - headers already sent by

2003-03-28 Thread Matt
- Original Message - From: "Atif Jakupovic" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 1:14 PM Subject: [PHP-INST] PHP: Cannot send session cookie - headers already sent by > Please, could you help me to find out why I'm getting an error message > like one below. > > Warning:

[PHP] Re: [PHP-DB] Possible to store arrays in mySQL without explode()/implode()

2003-06-07 Thread Matt
- Original Message - From: "Jakob Mund" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 9:04 AM Subject: [PHP-DB] Possible to store arrays in mySQL without explode()/implode() > is it possible to store an array in mySQL without using implode() / > explode(), like

Re: [PHP] PATH_TRANSLATED

2003-06-07 Thread Matt
- Original Message - From: "Øystein Håland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 07, 2003 11:37 AM Subject: [PHP] PATH_TRANSLATED > Is there some way to retrieve the phpvariable PATH_TRANSLATED on my local > win2k+Apache2+php4.3.2 box? echo "Path Translated:

Re: [PHP] Re: Credit card checks?

2002-07-23 Thread Matt
From: "Mark McCulligh" <[EMAIL PROTECTED]> Sent: Tuesday, July 23, 2002 8:47 PM Subject: [PHP] Re: Credit card checks? > You could use an algorithms called mod10. Mod 10 catches keying errors. It's use is to prevent digits from being swapped. So if you key 133791 instead of 137391, the mod 1

Re: [PHP] Paying Job...

2002-07-26 Thread Matt
> From: "Gerard Samuel" <[EMAIL PROTECTED]> > Sent: Friday, July 26, 2002 1:07 PM > Subject: Re: [PHP] Paying Job... > Someone posted a link to template contracts yesterday, but I cannot find > it in the mailing list archive. >> Bret >> Find a contractor or find a contract at Tech-Temp.com ^^

Re: [PHP] can i use --with-unixODBC instead of --with-ibm-db2?

2002-08-08 Thread Matt
It seems way too difficult to configure db2 on linux. Let alone trying to do it on freebsd, which I hope to tackle that next week. I tell you though, I really love mysql, it's so easy to use, and configure. mysql just works. mysql's performance on a table I have that has roughly 250,000 rows of a

Re: [PHP] HTTP authentication - de authentication

2002-08-10 Thread Matt
>From: "vic" <[EMAIL PROTECTED]> > Sent: Saturday, August 10, 2002 11:24 AM >Subject: [PHP] HTTP authentication - de authentication > How does one logout from such an authentication? There's no way to logout. Use a session based authentication. -- PHP General Mailing List (http://www.php.

Re: [PHP] PHP form port

2002-08-10 Thread Matt
>From: "Daniel Guerrier" <[EMAIL PROTECTED]> >Sent: Saturday, August 10, 2002 12:14 PM >Subject: [PHP] PHP form port > How do i execute a form post with php? http://www.php-faq.com/postToHost.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] PHP form port

2002-08-10 Thread Matt
>From: "Daniel Guerrier" <[EMAIL PROTECTED]> >Sent: Saturday, August 10, 2002 12:14 PM >Subject: [PHP] PHP form port > How do i execute a form post with php? > I want to validate CCard info etc.. then perform the > post with no furtheraction from the user. > > Basically If not valid stay here an

Re: [PHP] subtracting 2 time strings

2002-08-11 Thread Matt
> From: "Christopher Molnar" <[EMAIL PROTECTED]> > Sent: Saturday, August 10, 2002 11:37 AM > Subject: [PHP] subtracting 2 time strings > Help! > > I can't find reference to it in the manuals but I need to subtract to > time strings. > > ex: > > time_in = 11:00 > time_out = 13:45 > > job_ti

Re: [PHP] Re: need help

2002-08-11 Thread Matt
> From: "B.C. Lance" <[EMAIL PROTECTED]> > Sent: Sunday, August 11, 2002 9:53 AM > Subject: [PHP] Re: need help > to do a comparison between two values / variables, you have to use == > instead of = > = is an assignment while == is a comparison operator > > if($row['gid'] == 0) I write these th

Re: [PHP] Re: need help

2002-08-11 Thread Matt
> From: "B.C. Lance" <[EMAIL PROTECTED]> > Sent: Sunday, August 11, 2002 10:17 AM > Subject: Re: [PHP] Re: need help > > Matt wrote: > > if(0 == $row['gid']) > > ahhh. let the parser do the check. works great if you are not comparing &g

Re: [PHP] Good Damn

2002-08-11 Thread Matt
> From: "Sascha Braun" <[EMAIL PROTECTED]> >Sent: Sunday, August 11, 2002 10:32 AM >Subject: [PHP] Good Damn >$Query = "SELECT * FROM basket_db WHERE session_id = '$PHPSESSID'"; try: $Query = "SELECT * FROM basket_db WHERE session_id = '$PHPSESSID'" or die(mysql_error()); -- PHP General Ma

Re: [PHP] Problem with $PHP_SELF on PWS

2002-08-11 Thread Matt
>From: "John Brooks" <[EMAIL PROTECTED]> >Sent: Sunday, August 11, 2002 10:21 AM >Subject: [PHP] Problem with $PHP_SELF on PWS > I have PHP installed on PWS running on a Windows 98SE m/c. > When I invoke everything is fine and the form data is > extracted correctly. > When I try to embed the s

Re: [PHP] Problem with echo

2002-08-11 Thread Matt
>From: "Kristoffer Strom" <[EMAIL PROTECTED]> >Sent: Sunday, August 11, 2002 10:42 AM >Subject: [PHP] Problem with echo > Got a problem when echo:ing a variable containing alot of text. > When echoing it backslashes ("\") every apostrophe ("'") and quote ("). > This I don't like. > And I can't u

Re: [PHP] Mime types?

2002-08-21 Thread Matt
From: "Wm" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 21, 2002 5:17 PM Subject: [PHP] Mime types? > Is there a resource somewhere that would show what the various MIME types > are? For a file upload page, I want to include .TIF, .AI, .PSD, etc., in > addition to the "st

Re: [PHP] Count number of rows in table.

2002-08-25 Thread Matt
>>> On Sáb 24 Ago 2002 11:19, Tony Harrison wrote: >>> How would I count the number of rows in a mysql table with a WHERE >>> clause? > > >> "Martín marqués" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED]... > > select count(*) from table_name WHERE . > > >From: "Tony Harriso

Re: [PHP] trouble with function

2002-08-25 Thread Matt
Everytime you call the function, it re-runs the sql, and gives you the same list. The only time it wouldn't do that was if the id wasn't found. You could probably change the function to a class, where the constuctor ran the sql, and then you had another method to get the next entry. - Origi

Re: [PHP] Posting variable without form

2002-08-26 Thread Matt
>From: "Then Nam Kheong" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, August 26, 2002 12:26 PM >Subject: [PHP] Posting variable without form > I tried it but it is not successful. I think it is because I tried to > post to a https(SSL link). > > I would like to know if I can perfor

Re: [PHP] Date conversion problems

2002-08-26 Thread Matt
> From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> >Sent: Monday, August 26, 2002 3:58 PM >Subject: [PHP] Date conversion problems > Having a little trouble with converting dates. > > I have, in my database, a bunch of dates stored like this: -M. Month is > obviously the number of the mon

Re: [PHP] Date conversion problems

2002-08-26 Thread Matt
>From: "Matt" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Monday, August 26, 2002 5:42 PM >Subject: Re: [PHP] Date conversion problems > > From: <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]>

Re: [PHP] unexpected T_STRING error

2002-09-28 Thread Matt
The quotes within the quotes. Change to: echo""; > From: "Gary" <[EMAIL PROTECTED]> > Sent: Saturday, September 28, 2002 11:15 AM > Subject: [PHP] unexpected T_STRING error > Hi All, > Can someone explain to me why I am getting an error for the fo

Re: [PHP] Challenging problem for you programing gurus...

2002-09-28 Thread Matt
>Chris Shiflett wrote: > I didn't catch which database you are using, but you can alter a field > in MySQL to add the auto_increment characteristic. Look into the "alter > table" SQL statement. And if you do that, there won't be any trouble with the existing IDs. mysql will grab the next highe

Re: [PHP] Re: date question

2002-09-29 Thread Matt
> From: "Jonas Geiregat" <[EMAIL PROTECTED]> > Sent: Sunday, September 29, 2002 10:56 AM > Subject: [PHP] Re: date question > and If I want to calculate from given date the next month > like strtotime("next month") gives me the date of one month in advanced > from NOW > but I want to get the dat

Re: [PHP] Undefined constant error

2002-09-29 Thread Matt
> From: "Voisine" <[EMAIL PROTECTED]> > Sent: Sunday, September 29, 2002 7:52 PM > Subject: [PHP] Undefined constant error > I'm learning PHP from a book "PHP for newbie writen in French" and I > have an error on one of the exemple. Undifined constant 'compteur' on > line 15 which is : > if (co

Re: [PHP] PHPDoc?

2002-10-07 Thread Matt
I know of the following... www.phpdoc.de - used by PEAR, scattered documentation http://phpdocu.sourceforge.net - lots more documentation, hate the framed output http://www.ez.no/article/articlestatic/35/1/42/ - eZ phpdoc, from the people who make the eZ CMS I'm interested in hearing from anyone

Re: [PHP] Blank PHP pages.

2002-10-16 Thread Matt
Then most likely display_errors is off in php.ini and you have a syntax error in an include file used by all of the scripts. - Original Message - From: "Angel Gabriel" <[EMAIL PROTECTED]> To: "'Matt'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED

Re: [PHP] Progress bar for uploading files

2002-10-16 Thread Matt
>From: "Oscar F" <[EMAIL PROTECTED]> > Sent: Wednesday, October 16, 2002 2:17 PM > Subject: [PHP] Progress bar for uploading files > I'm working on a file uploading script, but I need to know if there is a > way to know what's the progress of the file, so I can make la a progress > bar?.. Any ide

Re: [PHP] defining a variable

2002-10-27 Thread Matt
- Original Message - From: "Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 27, 2002 2:00 PM Subject: [PHP] defining a variable > Hi All, >I am have trouble getting $address to print the URL that is in the db. > %s is > printing the url with the word address

[PHP] PHP 4.3.0 and Zend Engine 2

2002-11-05 Thread matt
Can anybody tell me if PHP 4.3.0 will use Zend Engine 2? Thanks, matt westgate -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Seconds to minutes

2002-11-19 Thread Matt
>From: "Bob Irwin" <[EMAIL PROTECTED]> > Sent: Tuesday, November 19, 2002 7:27 PM >Subject: [PHP] Seconds to minutes > At the moment, I'm using quite a few lines of code to convert seconds to > minutes and hours. I'm thinking, surely I'm missing something really > simple! Is there a PHP function

Re: [PHP] Listing a table

2002-11-19 Thread Matt
- Original Message - From: "Marco Bleeker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 8:34 PM Subject: [PHP] Listing a table > Hello, how would I go about listing a portion of a MySQL table, without an > overall selection criterium? I have a unique index

Re: [PHP] Reading part of a file

2002-11-20 Thread Matt
> From: "Stephen" <[EMAIL PROTECTED]> > Cc: "PHP List" <[EMAIL PROTECTED]> > Sent: Wednesday, November 20, 2002 8:52 PM > Subject: Re: [PHP] Reading part of a file > What I'm doing is having a PHP part, let's say that it's a calculator that > adds module, that does the adding. The second part of

Re: [PHP] how can this be? GET instead of POST -> db error

2002-07-13 Thread Matt
> This is out of the Apache log: > > GET /subapp_profiles/act_upload_image.php HTTP/1.1" 200 160 > POST /subapp_profiles/act_upload_image.php HTTP/1.1" 302 5 > > I do not have a clue where this GET request could come from. This has caused > a empty sql statement and therefore a db error. How can c

Re: [PHP] hello the list

2002-07-13 Thread Matt
> echo "$cd_id"; Strings work differently when the outer quotes are double or single quotes. Inside double quotes variables will be converted into their values. Inside single they will not. So: $var = 'Hello World'; echo "$var\n"; will result in Hello World and: $var = 'Hello World'; echo '$va

Re: [PHP] ErrorDocument 404 & Form

2002-07-18 Thread Matt
> Well it still is in GET method because the url does still exist with the > ?plop=foobar but in case I want to use POST method (which I will as my > form has huge textarea) everything disappear. > Also this is a turn around I don't like, I would first understand why it > doesn't work, and if I ca

Re: [PHP] tengo un problema

2001-01-22 Thread Matt
Ok, let me try this again... it seems my code was stripped by the server. If this doesn't work could someone tell me how I can post script and html tags within the body of my messages to the list server? Thanks. --- Excuse por favor mi malo y posiblemente español incorrecto. P

Re: [PHP] tengo un problema

2001-01-22 Thread Matt
Excuse por favor mi malo y posiblemente español incorrecto. PHP no necesita ser compilado, y después de él está instalado para el web server personal Win98. Apenas cree una escritura simple que diga: Excepto esta escritura como phpinfo.php o phpinfo.php4 y coloqúelo en la raíz del document

[PHP] Processing PHP within a string variable

2001-01-24 Thread Matt
On a project I am working on, I have a string variable, and inside the string is a mixture of PHP code and HTML. I want to be able to output the string with the PHP code inside the string processed. Right now the PHP isn't processed on output, it is merely cut out. I have been able to do this

Re: [PHP] Processing PHP within a string variable

2001-01-24 Thread Matt
Haha, well I apologize for not seeing this earlier when I was hunting through the documentation. Silly me. Thanks a bunch! At 04:02 PM 1/24/2001 , you wrote: >So sprach Matt am Wed, Jan 24, 2001 at 03:56:37PM -0600: > > string is a mixture of PHP code and HTML. I want to be able to o

[PHP] VAR and variables

2001-01-25 Thread Matt
I have a question that may seem kind of silly, but I'm curious... When using PHP why would one use "var" to define a variable as opposed to just regularly creating it? For example, if I have a class defined as below: class Simple { var $a; function Simple() { $this->a = 5; }

[PHP] Editing a files hex?

2001-02-21 Thread Matt
Does anyone know how I can do this? I've got the file but before I write it to the server I was to change a hex value in the file, does anyone know how this could be done? Thanks, matt

[PHP] Uploading/Timing scripts

2001-02-22 Thread Matt
ntly using.. $stimer = timer(); // code .. $etimer = timer(); echo "\n\nPage processed in: ". ($etimer-$stimer); Function timer() { $milli = explode(" ", microtime()); return $milli[0]; } Which works but is their a better way to do it? Thanks, Matt

[PHP] File content type

2001-02-23 Thread Matt
ntent type so it will always be the same if its valid. Does anyone know how to do this? Thanks, Matt

Re: [PHP] File content type

2001-02-23 Thread Matt
I'll would try it by netscrape isn't working @ the moment... I doubt your script will let you upload file with out the .gif or .jpg extension, but I think you can upload file with a different content type by changing your local content type settings then using netscrape to uploa

Re: [PHP] POST Referral

2001-02-28 Thread Matt
getenv('REQUEST_METHOD'); .matt - Original Message - From: "Boget, Chris" <[EMAIL PROTECTED]> To: "Php (E-mail)" <[EMAIL PROTECTED]> Sent: Wednesday, February 28, 2001 2:49 PM Subject: [PHP] POST Referral > Is it possible, in PHP, for a

Re: [PHP] A small Q

2001-02-28 Thread Matt
No, they can have any extension.. .matt - Original Message - From: "Harshdeep S Jawanda" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, February 28, 2001 3:04 PM Subject: [PHP] A small Q > Hi, > > Does the extension

Re: [PHP] RTFM

2002-01-19 Thread Matt
Yeah, I've seen (and used) that. But it requires searching. My idea is to put together a list of the simple questions in one place ... much like the apache faq ... and also allowing "world input" like the php manual does. > You guys have seen this, right? > > > -- PHP

Re: [PHP] MySQL query question

2002-01-24 Thread Matt
If you're trying to be able to keep reference to the order the records are added to the table, simply add a date/time field and populate it with the date/time now() when you insert. You can then sort on that as needed later. - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]>

Re: [PHP] user auth script update.

2002-02-16 Thread Matt
> I am now getting the parse error on line 64 > $sql_authorisation = "SELECT * FROM account_details WHERE > account_name='$login_username' AND > account_password=PASSWORD('$login_password'); You're missing the closing " on the last line above. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] not really a php question but can't hurt to ask.

2002-02-16 Thread Matt
Turn caching off in IE while you're developing ... or hit refresh so you get the new page. - Original Message - From: "Matthew Darcy" <[EMAIL PROTECTED]> > For some reason windows using ie takes doesn't see changed on the apache > webserver as quick as linux ??? > -- PHP General Mai

Re: [PHP] storing arrays

2002-02-17 Thread Matt
- Original Message - From: "Clark" <[EMAIL PROTECTED]> Sent: Saturday, February 16, 2002 9:15 PM > Two questions: > > 1) Is it possible to write an array to a file? Yes, serialize it first with http://www.php.net/serialize. You can also place this in a db text field because it will be

Re: [PHP] MySQL error checking/matching

2002-02-17 Thread Matt
- Original Message - From: "Navid Yar" <[EMAIL PROTECTED]> > $query = "select email from customers" // Check for duplicate > entry > . "where email = $email"; > $query = stripslashes($query); > $result = mysql_query($query); > > $num_results = mysql_num_rows($result); // Get the number of

Re: [PHP] no-cache headers

2002-02-18 Thread Matt
- Original Message - From: "Phil Ewington" <[EMAIL PROTECTED]> > I am new to PHP and am having problems with no-cache headers, I have the > following code added as the first line of code in the page... > > header("Expires: Mon, 01 Jan 1997 00:00:00 GMT"); > header("Cache-Control: no-stor

Re: [PHP] form submission error trapping

2002-02-18 Thread Matt
I think that mixing of html and php is too complex and leads to hard to maintain scripts. I find it extremely difficult to understand a scripts logic when it's spread out over hundreds of lines of php/html. I use EasyTemplates that came in Web Applications Development with PHP 4.0 by Tobias Ratsc

Re: [PHP] Using Variable Variables from form values inside a function

2002-02-18 Thread Matt
- Original Message - From: "Ron Dyck" <[EMAIL PROTECTED]> > but, this doesn't: > > function myFunction() { > foreach($_POST as $key=>$value) { > > if (empty($$key)) { > print "empty value $key"; > } > > } > } Since php variable scope is local unless you define it gl

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Matt
> $foo = "This page is $_SERVER[PHP_SELF]"; > > Or, better: > > $foo = "This page is {$_SERVER['PHP_SELF']}"; > > You do have to concat to do this in single-quoted (noninterpolated) > strings, though. > > http://www.php.net/manual/en/language.types.string.php#language.types.string .parsing Ca

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Matt
> The other reason is that the parser needs help resolving ambiguity with > more complex expressions inside strings. If you use this syntax all the > time, you won't get bitten in the butt later. I've used the ${$var} to resolve the ambiguity of variable variables, but I wasn't aware that if coul

Re: [PHP] get emum values

2002-02-24 Thread Matt
I think I got this off the Zend site a year or so ago: // function mysql_fetch_enumerations($db_connection, $table_name, $column_name, $sorted="unsorted") { /* Author Thomas J. Swan Revision History 1.0Creation of function 1.1Added the ability to sort the array before returning

Re: [PHP] "cool" PHP sites

2002-02-27 Thread Matt
http://www.superpages.com/ -- the US national telephone directory from Verizon -- appears to use php. The extension is .phtml ... - Original Message - From: "Chris Lott" <[EMAIL PROTECTED]> > minutiae of the language itself. So (quickly if possible-- I'd like to demo > some sites tonight

Re: [PHP] Form element names as array

2002-03-04 Thread Matt
> with checkboxes, the value of the checkbox is sent to the serveronly if it's > checked - if it's not chesked, then it's value does go to the server And, because of that, checkBox[0] is the first box *checked*, not the first in the html. -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Basic help for radio buttons needed

2002-03-05 Thread Matt
> the only value I get is the $admin_do which has the value "Array" - not much > help Running your code on my 4.1.2 box, I see: submit = select = value is Change User password admin_do is Change User password counter = 0 value is counter = 1 value is counter = 2 value is counter = 3 value is coun

Re: [PHP] A good PHP Shop

2002-03-07 Thread Matt
Don't forget The Exchange Project, which is now called osCommerce: http://www.oscommerce.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] (htaccess) not letting php to parse

2002-03-08 Thread Matt
- Original Message - From: "Lauri Vain" <[EMAIL PROTECTED]> > Hi there, > > I would prefer to take away the possibility for PHP to parse my > documents in the /uploaded/ directory. Why don't you append someother suffix to the file when it's uploaded? -- PHP General Mailing List

Re: [PHP] Date

2002-03-08 Thread Matt
- Original Message - > From: "Yogesh" <[EMAIL PROTECTED]> > Hi! can someone please tell me how to get the current date? See: http://www.php.net/manual/en/function.mktime.php >Now, how can i perform addition with the date so that i mail that user 3 months after the date > he registered t

Re: [PHP] /usr/bin/php error

2002-04-07 Thread Matt
Did you compile in ftp support? It's not there unless you do. http://www.php.net/manual/en/ref.ftp.php - Original Message - From: "Chris Kay" <[EMAIL PROTECTED]> > Would any one know why when I run command line php I get the following? > > [root@*** ]# /usr/bin/php /data/web/root/

Re: [PHP] Newbies Question

2002-04-07 Thread Matt
Remove the double-double quotes and the newline around $image: > $img = GetImageSize(""$image\n"");this is Line 13 It should look like: $img = GetImageSize($image); There is no need to double quote a variable when passing as a parm. You would want to double quote a variable

Re: [PHP] AS/400 data access

2002-04-09 Thread Matt
Then, why not install the IBM odbc driver that comes with Client Access for Windows and use it? - Original Message - From: "Collins, Robert" <[EMAIL PROTECTED]> To: "'Matt Schroebel'" <[EMAIL PROTECTED]>; "Collins, Robert" <[EMAIL P

[PHP] Re: [PHP-INST] php and POST

2002-04-10 Thread Matt
If you changed the php.ini to set the register_globals to on, did you also restart apache? I'm sure you are aware that register globals is now turned off by default in php 4.1+. Look at phpinfo() and make sure register_globals is *really* on. You really ought to be writing code with $_POST[], re

Re: [PHP] Switching from "Register_Globals=On"

2002-04-13 Thread Matt
> I've read the manual on "Session handling functions", but I must have a thick > block on this concept . What should I do now that I want to use > $HTTP_SESSION_VARS or $_SESSION ? How do I implement it on secondary pages? > Will I be facing a major re-write of all my code? [Gulp :>] Yes. 1. Yo

Re: [PHP] mysql_result()

2001-04-04 Thread matt
extract(mysql_fetch_array($result)); sets all the variables at once. much neater :) Maatt "Jordan Elver" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > If I knnow that a query will only retrun one row, can I do thiss (below) > rather than using a while

Re: [PHP] Iterating varibales

2001-07-05 Thread Matt
Actually, if you make the names in the form resemble array variables, this can be greatly simplified. Something similar to the following might be what you are looking for: when the form is passed to the next script, there will be a single variable called $item - and it will be an array with t

[PHP] IP security check

2001-08-07 Thread matt
For secure payment pages, I need for the code to determine the persons IP address, even if they have a "spoofer" running. Is this possible? Getting around the spoofer in order to catch criminals using illegal credit card #'s.. thanks -matt (cs student) -- PHP General Mai

[PHP] crypt() source

2004-10-07 Thread Matt
Hi i am new to php, and i am writing a small user authentication script. In the manual i read about using the crypt() function to generate a hash, and how you can validate the password using a salt. eg if (crypt($userinput, $hash) == $hash) The code works perfectly, however i am writing an appli

[PHP] crypt() source

2004-10-07 Thread Matt
Hi i am new to php, and i am writing a small user authentication script. In the manual i read about using the crypt() function to generate a hash, and how you can validate the password using a salt. eg if (crypt($userinput, $hash) == $hash) The code works perfectly, however i am writing an appli

  1   2   3   4   5   6   7   8   9   10   >