Re: [PHP] Regular Expression Challenge

2002-03-25 Thread Matt Moreton
You can do recursive matching using the (?R) syntax in preg functions (Perl Compatible Regular Expression). - Original Message - From: "Christopher William Wesley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Cameron Just" <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 1:01 AM Subj

Re: [PHP] Regular Expression Challenge

2002-03-25 Thread Matt Moreton
Very nice. I was going to suggest: But uhhh, your way is much nicer :] - Original Message - From: "Richard Archer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 26, 2002 4:04 AM Subject: Re: [PHP] Regular Expression Challenge > At 11:30 AM +1000 26/3/02, Cameron Ju

RE: [PHP] using a counter in a foreach loop

2002-03-26 Thread Matt Schroebel
$i = 1; foreach ($months) { // do some things $i++; } > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 26, 2002 9:49 AM > > I have a foreach loop, where I execute some commands for each > element in > a certain array. One thing I would l

Re: [PHP] regex

2002-03-27 Thread Matt Moreton
preg syntax is different to ereg (which you are using). You also need to provide an output variable. This would work: preg_match( "/[0-9]+/", $input, $output ); -- Matt "Carl E Shmidt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTE

RE: [PHP] SPAM or ADVERTISING

2002-03-30 Thread Matt Friedman
y out for their own selfish ends, as you have clearly demonstrated, and they don't care about anyone else. You should be ashamed, but I'm certain that you are not. Matt Friedman Web Applications Developer -Original Message- From: Alienator [mailto:[EMAIL PROTECTED]] Sent: Sa

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

2002-04-01 Thread Matt Friedman
I think if you look at today's date, you'll realize why the silly picture on your phpinfo today. Good one guys! That's what I love about php - it's about enjoying programming and making it fun. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Origin

RE: [PHP] parse error, mysql select

2002-04-01 Thread Matt Friedman
It doesn't like the ";" at the end of the statement. I noticed this a while ago. I'd prefer if it didn't choke on the ";" but it seems to. It's probably more correct to have the ";" there - I don't know why it chokes when going

RE: [PHP] Query from POST_VARS

2002-04-03 Thread Matt Schroebel
In my opinion, you should always single quote everything, including numerics. Why? Say you have a: $sql = "Delete from table where id=$id"; where id is expected to be numeric. What if the variable id ends up containing: 7 or id>0 So the sql would end up as $sql = "Delete from table where id=

RE: [PHP] checkbox doesn't pass?

2002-04-04 Thread Matt Schroebel
You should use $HTTP_POST_VARS (or $_POST) all of the time. There's security risks in using register_globals. It's not risky in all cases. But register_globals will allow arbitrary variables to be added to into the name space of your script by simply putting them on the uri. Code not expectin

[PHP] - Flock manual clarification please ;-)

2002-04-06 Thread Matt Friedman
Is it an issue when concurrency is high? The manual says "you may have to"; I am looking for some clarification as to when exactly you "may have to" follow the advice. Thanks as always, Matt Friedman Web Applications Developer www.SpryNewMedia.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Function that escapes special caracters from regular expressions

2002-04-07 Thread Matt Friedman
http://www.php.net/manual/en/function.preg-quote.php Found this in the manual in about 3 secs. Try to check the manual first before posting. ;-) Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent

FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Matt Friedman
sue? Is it an issue when concurrency is high? The manual says "you may have to"; I am looking for some clarification as to when exactly you "may have to" follow the advice. Thanks as always, Matt Friedman Web Applications Developer www.SpryNewMedia.com -- PHP General Mailing

RE: FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Matt Friedman
it for a lock on the lock file and then go on with any processing on the actual data file. After the processing is done release the lock on the lock file. Perhaps there are better ways to do this. What do you think? Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Me

[PHP] Re: array limits in echo function?

2002-04-08 Thread Matt Parlane
You need a comma between $fname and $lname eg: "Lmlweb" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm just curious: > > if I use within my html codes: > > , I get an error message telling me: > > Parse error: parse error, expecting `','' or `';'' > > Ho

Re: [PHP] Downloading files

2002-04-09 Thread Matt Williams
windows exploror. as part of the file type options. I can tell you where exactly if you want to go round updating all windows/IE users machines. I'll do mine for you as a start ;) matt --- -- PHP General Mailing List (http://www.php.ne

RE: [PHP] AS/400 data access

2002-04-09 Thread Matt Schroebel
I just did this on a Linux box running Red Hat 7.2 last Friday. I used several sources on the web and wrote up my exact steps and posted them at http://www.php-faq.com/as400.html The other sources are quoted in that document. Keep in mind, it's not the final version of the document, and I'd

[PHP] Re: Help, anyone else using GD2 & php 4.1.2 ?

2002-04-09 Thread Matt Parlane
http://bugs.php.net/bug.php?id=15568 This bug has been fixed in the latest RC - if you really need this functionality, you could use RC2 available at www.php.net/~derick or wait until 4.2.0 is realeased which is due to be on the 22nd of this month. Matt "Mark W. Humphries" <[EM

RE: [PHP] Help on dealing with arrays of HTTP_POST vars

2002-04-15 Thread Matt Schroebel
> -Original Message- > From: Carlos Fernando Scheidecker Antunes > [mailto:[EMAIL PROTECTED]] > > function SearchOrders() { > global $Orders; > global $HTTP_POST_VARS; > > $index = count($HTTP_POST_VARS); > > for($i=1; $i <= $index; $i++) { The trouble is here . You sh

[PHP] class problems

2001-10-18 Thread Matt Williams
Any ideas why this won't output anything table; } } echo test::showName(); ?> I have other classes along the similar lines but a lot bigger which work fine. I'm also using phplib which has a lot of this stuff going on... I remeber seeing something regarding it in the manual but i don

RE: [PHP] class problems

2001-10-18 Thread Matt Williams
ROTECTED]] > Sent: 18 October 2001 14:39 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] class problems > > > Try to create an instant of the class like this: > class test > { > var $table = "val"; > > function showName() > { > return $this->table; >

Re: [PHP] Why I wish PHP had Python's exception handling....

2001-10-21 Thread Matt McClanahan
, without having to add another if check as you're doing above. This also lets you know easilly which step failed: Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] How to protect MySQL password

2001-10-23 Thread Matt Williams
Move it outside the document root or put a .htaccess file inside the dir to deny access. This will still allow system access but will prevent other fopen. M: > In a PHP application using MySQL i have to connect the database using > > $iDBhandle = mysql_connect( $sDBhost, $sDBuser, $sDBpsw );

Re: [PHP] sorting an array of objects

2001-10-24 Thread Matt McClanahan
; $class[$index]->text; > $class[$index]->array[0]; > > how can I do this? I'd use usort() instead. http://www.php.net/manual/en/function.usort.php The manual page has a couple examples for sorting objects by their member variables. Matt -- PHP General Mailing List (http://w

Re: [PHP] Displaying images in another page

2001-10-25 Thread Matt McClanahan
der to tell the browser that you're sending it an image. That's it. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Email limit

2001-10-29 Thread Matt Friedman
I imagine that's only limited by your available bandwidth. If you try to send emails out faster than your bandwidth will allow you'll get a slowdown on your email server. I use sleep() between each email to lessen the load on the server. Matt. - Original Message - From

Re: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Matt Friedman
Try putting a "?" after your quantifier for "non-greedy" matching. Something like: $the_array=split("", $html,-1); Matt. - Original Message - From: "brendan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 2

RE: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Matt Williams
> I have the above configuration installed along with mySQL, all > works fine on > my local machine except for error/warning messages whenever previewing the > page in my browser where I am calling/setting a cookie variable... > A little more info re the error message would be useful. Make s

RE: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Matt Williams
> Thanks for the replies, I think it has more to do with configuration > settings than anything else as all the scripts work fine on remote Linux > server, it is just on my win98 set-up the problem occurs.. > > I am looking in the php.ini, file the only reference to a tmp directory I > c

RE: [PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Matt Williams
> Well, I would do that but I don't know such an application. > Please, can you suggest me one? > pkzip of course :) M: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administr

RE: [PHP] PHP General Archive

2001-10-30 Thread Matt Williams
http://www.progressive-comp.com/Lists/?l=php3-general&r=1&w=2 M: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Quick array question

2001-10-30 Thread Matt Williams
Just found this in the manual notes http://www.php.net/manual/en/ref.array.php To delete an element from an array in an easy way, use unset($array["element"]);... Funny those... manuals M: > -Original Message- > From: David Yee [mailto:[EMAIL PROTECTED]] > Sent: 30 October 2001 19:03

Re: [PHP] Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Matt Friedman
object or something like that. Matt. - Original Message - From: "Stefan Rusterholz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 8:00 AM Subject: [PHP] Zipping a folder on a win2000 server with php4.06 Hi Does someone out there know,

RE: [PHP] Zipping a folder on a win2000 server with php4.06

2001-10-31 Thread Matt Williams
pkzip's the name. M: > Does someone out there know, how I can zip a folder with some files in it? > It should be readable for Winzip. > > Enviroment: Win2000 Server. > VB was available if useful. > Additional Components (applications, dll's or whatever) could be loaded if > needed. > > I didn't f

RE: [PHP] Popup Window Problems & Refresh

2001-10-31 Thread Matt Williams
> The action for the form is only fired if the onClick="window.close() is > removed. My question is how can I close the window and refresh or reload > the specified window. > function endWindow() { window.opener.location.reload(); window.close(); } Close Window M: -- PHP Ge

RE: [PHP] setting member variables out of class

2001-10-31 Thread Matt Williams
> Hello, > I want to set member variables out of their class. The code class is: > > > class translator { > > var $nombre; > var $departamento; > var $despacho; > var $telefono; > var $correo_electronico; > var $pagina_personal; > > function translator(){ > $nombre = array("Nombre","Nam

RE: [PHP] Week of month

2001-11-01 Thread Matt Williams
Please find attached a very good date class. I can't remeber where I got it from and who wrote it but it's pretty good. M: > -- > > Is there any way to find out the week of the month. Today is in > the first > > week of month. > > > > That is, a function like weekofmonth() which displays 1 toda

[PHP] submitting form to a page with frames

2001-11-01 Thread Matt Fair
me it works fine. Thanks in advance, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] why cant I: array_keys($arr)[0] ?

2001-11-04 Thread Matt McClanahan
first element, preserving the array in the calling scope function get_array_first($arr) { return array_shift($arr); } $first_element = get_arr_first($array); Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: [PHP] what's this???

2001-11-04 Thread Matt Friedman
http://www.php.net/manual/en/language.oop.php This is what you want to read. Matt. - Original Message - From: "Christian C." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, November 04, 2001 7:16 PM Subject: [PHP] what's this??? > Hello :c) &

Re: [PHP] Problems with the fopen() function

2001-11-10 Thread Matt Friedman
I would try urlencoding the query-string in that url. Or put the url in single quotes instead. Just shots in the dark, but try it out. M. - Original Message - From: "Tim Harvey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 10, 2001 9:44 PM Subject: [PHP] Problem

Re: [PHP] PHP Usage Stats

2001-11-09 Thread Matt McClanahan
craft and SecuritySpace. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Total Newbie - concatenating variables.

2001-11-10 Thread Matt Friedman
int(""); you may write: print (""); Further, you don't need parenthesis with the print statement so you can write: print ""; It's just a matter of preference, but I think it looks cleaner. When concatenating several variables together into a string this ca

Re: [PHP] & in url's

2001-11-10 Thread Matt Friedman
I'm not sure if this answers your question but it seems to me that & is an html encoding whereas if you want to put something in the url you should urlencode it. This will eliminate the "&"s. Matt. - Original Message - From: "GaM3R" <[EMAIL PROT

Re: [PHP] Save to Desktop

2001-11-12 Thread Matt McClanahan
ired form data to stdout, and it'll be fed into the file that the user saves. For example: First: Seond: Here, the form takes in two text strings, and offers them to the browser as a file. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

RE: [PHP] Re: apache + ftp!

2001-11-12 Thread Matt Williams
> on win32 i like g6ftp server I go along with this recommendation. Had some problems on 2k with serv-u M: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

Re: [PHP] url extracting

2001-11-12 Thread Matt McClanahan
r sendtohost.txt for a simple function to handle passing the right headers. http://www.php.net/manual/en/function.fsockopen.php http://dodds.net/~cardinal/sendtohost.txt Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: [PHP] User Authentication

2001-11-13 Thread Matt Schroebel
Caveat: Don't forget to escape user input before sending to SQL. Those samples leave that part to your imagination. Bad guys might take advantage of that :) > http://www.google.com/search?q=php+mysql+user+authentication&b tnG=Google+Search > > First hit's a winner :) > > -- PHP General M

Re: [PHP] switch() for links like ?id=index problem

2001-11-16 Thread Matt McClanahan
he switch loop. E.g, switch ($id) { case "foo": case "bar": .. .. .. default: include ('index_page.php'); } Then your index page goes in index_page.php, and the actual index becomes a simple dispatching page with no content in it. Matt -- PHP General Mailing List (

RE: [PHP] HTTP_REFERER

2001-11-23 Thread Matt Williams
> Hi, > I'm writing a 404 handler and in order to report the item that > was requested > I was trying to get the value of HTTP_REFERER. But, it does seem > to get set. > Does anyone know how to find thi value? Is there a reason why it > would not > get set? > Hi I think you're looking fo

RE: [PHP] HTTP_REFERER

2001-11-23 Thread Matt Williams
> Hi, > When I use HTTP_REFERER it gives me the name of the php script which is > handling the 404's?! > > Should that happen? As someone put in one of the other reply's don't rely on HTTP_REFERER. This is set (or not) by the browser and they all have different ideas about they want to play ball

RE: [PHP] is_int with HTML FORM

2001-11-30 Thread Matt Williams
> Ok for the question. I was under the impression that PHP would > automatically > select the type for the vars to use. However if I have a field in my form > where I insert only a 4 in I'd expect the var to be an integer > (or atleast > some other whole number type of var). However is_int fails

RE: [PHP] is_int with HTML FORM

2001-11-30 Thread Matt Williams
> or remove the {$len} to not check for a length > Sorry I meant replace the above with * m: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROT

Re: [PHP] Don't tell me this isn't possible (object related question)

2001-11-30 Thread Matt McClanahan
t it's coming. In the mean time, you have a couple options. If you only have one Person inside a Content, you can simply say $content->person->age; If you have more than one, they could be arranged in an array, so it becomes $content->person['Jeroen']->age; Another opt

Re: [PHP] Getting the filesize of an image?

2001-11-30 Thread Matt McClanahan
On Fri, Nov 30, 2001 at 07:04:08PM -0500, Uchendu Nwachukwu wrote: > Is there any easy way to get the filesize of an image on a remote server? > > Please tell me there is! TIA It scares me that nobody has answered with filesize() yet. Matt -- PHP General Mailing List (http://ww

Re: [PHP] Getting the filesize of an image?

2001-12-01 Thread Matt McClanahan
On Sat, Dec 01, 2001 at 09:55:47AM +0200, faeton wrote: > Hello Matt, > > filesize() works only on local filesystems. If you want the size of a remote file, you'll have to download it; HTTP doesn't provide a way to query a remote file's size. FTP does, if you have FT

Re: [PHP] Getting the filesize of an image?

2001-12-01 Thread Matt McClanahan
On Sat, Dec 01, 2001 at 11:05:51PM +0200, faeton wrote: > Hello Matt, > > Of course it does not, but as i've already said file() with strlen() > can be used. :) > > MM> If you want the size of a remote file, you'll have to download it; HTTP > MM> doesn

Re: [PHP] XHTML compatible error messages

2001-12-05 Thread Matt McClanahan
nths ago. It should be in PHP 4.1.0 when it comes out shortly. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Extending classes multiple times

2001-12-06 Thread Matt Friedman
s this a new feature. Thoughts? Thanks, Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administra

RE: [PHP] Extending classes multiple times

2001-12-06 Thread Matt Friedman
This is what I had thought. I wasn't sure and needed the clarification. Thanks as always! Matt Friedman -Original Message- From: Harshdeep S Jawanda [mailto:[EMAIL PROTECTED]] Sent: Thursday December 6, 2001 1:55 PM To: Matt Friedman Cc: [EMAIL PROTECTED] Subject: Re:

[PHP] - References Clarification Please -

2001-12-09 Thread Matt Friedman
t the benefits of using references as opposed to copies. If anyone would like to elaborate on the reasons for using a reference instead of a copy, please do so; it would be much appreciated. Many Thanks, Matt Friedman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

RE: [PHP] a piece of PHP history

2001-12-13 Thread Matt Williams
> http://groups.google.com/groups?selm=1991Apr14.200541.755%40napc.uucp > So did you ever find the book Rasmus m: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

RE: [PHP] phplib???

2001-12-14 Thread Matt Williams
> It is a external library with useful PHP functions. It was designed > by some German guys, but you can now forget it. Main feature was the > session function and that function is now integrated in the PHP > extensions. > Maybe not quite forget as easily as that. PHPLib offers very good user

[PHP] Re: Delete File Contents?

2001-12-17 Thread Matt Friedman
http://www.php.net/manual/en/function.ftruncate.php Chris writes: > I've created a program that runs a process then stores the results to a > file on the server. I would like the file to contain only the most > recent update, but it seems I can only append to my using fopen. Is > there a wa

Re: [PHP] PHP as a web browser?

2001-12-17 Thread Matt McClanahan
PHP class, an object that simulates a web browser. http://sourceforge.net/projects/snoopy/ Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] RE: [PHP-DB] Re: while...if statements???

2001-12-19 Thread matt stewart
and i always thought the best tactic was to go ugly early. seriously, this isn't really that ugly a solution, most textbooks tend to tell you to use this method to start with as its a bit simpler to understand for beginners - an if...else statement to see if an initial row is returned, then you c

Re: [PHP] Strings Question

2001-12-24 Thread Matt McClanahan
On Mon, Dec 24, 2001 at 01:48:38PM -0800, Phillip B. Bruce wrote: > I want to take something like the following: > > $row = 1; > $ column = 1; > > if ( $pages = "r$row$column") > >What I want to see is r1c1 as a string so I'm actually > concatenating the strings togethe

[PHP] IBill - Can you recommend a script?

2001-03-21 Thread Matt Friedman
I have a client who wants to set up iBill. Has anyone had any good experiences with any of the commercially avaliable or open source iBill administration scripts out there? Good Bad or Otherwise, please let me know. Many thanks for any light you can shed on this topic. Matt Friedman -- PHP

Re: [PHP] PAM authentification

2001-03-22 Thread Matt McClanahan
tp://freshmeat.net/projects/php_pam/ Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] string->integer

2001-03-23 Thread Matt Williams
Hi I am trying to validate a form to check the user has entered there date of birth correctly There are three fields day, month & year. how can I check whether a string is a number? I have tried using is_long(), is_int(), is_integer() to check the values ,but it doesn't seem to be working. the

Re: [PHP] PHP error parsing SQL string containing assoc. array

2001-03-23 Thread Matt Friedman
p are hashes (associative). That's why they're so quick. Happy interpolation! Matt Friedman - Original Message - From: "Frank M. Kromann" <[EMAIL PROTECTED]> To: "Michael Champagne" <[EMAIL PROTECTED]> Cc: "PHP General Mailing List" &l

[PHP] Problems passing data via GET and POST

2001-03-24 Thread Matt Adams
in PHP (set either at compile or in the php.ini) that controls whether or not a PHP script will accept data passed to it via POST or GET? I would appreciate any suggestions or ideas you may have. Thanks Matt -- Matt Adams (ICQ 109490925) Altair Electronics: <[EMAIL PROTECTED]> Scouts Canad

RE: [PHP] The ubitquitous forum project

2001-03-25 Thread Matt Stone
I dont like any of them, the UBB style is the best. -Original Message- From: Kath [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 March 2001 2:02 PM To: Gfunk; Stephan Ahonen; PHP User Group Subject: Re: [PHP] The ubitquitous forum project I think what he means is this: This is newsgroup s

RE: [PHP] The ubitquitous forum project

2001-03-25 Thread Matt Stone
PM To: Matt Stone Cc: PHP User Group Subject: Re: [PHP] The ubitquitous forum project On Mon, Mar 26, 2001 at 02:11:46PM +1000, Matt Stone wrote: > I dont like any of them, the UBB style is the best. what's UBB-style like? -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9

RE: [PHP] The ubitquitous forum project

2001-03-25 Thread Matt Stone
PROTECTED]] Sent: Monday, 26 March 2001 2:52 PM To: Matt Stone Cc: PHP User Group Subject: Re: [PHP] The ubitquitous forum project On Mon, Mar 26, 2001 at 02:11:46PM +1000, Matt Stone wrote: > I dont like any of them, the UBB style is the best. what's UBB-style like? -fkr -- gpg-fingerpri

[PHP] Random letter/number passwords

2001-03-25 Thread Matt Stone
stuff up in certain circumstances? Please help, Matt stone ___ "; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RE: [PHP] Random letter/number passwords

2001-03-25 Thread Matt Stone
Oops sorry, this line is supposed to read: $passfirst = randomGen($length-3, 1); >>$passend = randomGen(3, 0); $pass = $passfirst.'-'.$passend; return $pass; -Original Message- From: Matt Stone [mailto:[EMAIL PROTECTED]] Sent: Monday, 26

Re: [PHP] Get info to a perl script and then continue without going to that perl script.

2001-03-26 Thread Matt Friedman
> http://php.net/manual/en/function.exec.php > > $return = exec("/pathtocgi/script.cgi VAR1 VAR2 &"); > > if you want the data returned, its in $return. If there are multiple lines returned, you'll only get the last line in $return. See the manual link to

Re: [PHP] Environment extract

2001-03-27 Thread Matt Friedman
is type of info. http://www.php.net/ Also, write a short script and run it as so: You'll see a myriad of variables and their values. It's also handy for debugging. You can include phpinfo() anywhere to see the output values of your script. Matt Friedman - Original Message ---

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread Matt McClanahan
On Tue, Mar 27, 2001 at 09:56:01PM +0200, FredrikAT wrote: > Why can't I do $myfile[$count]_type?! > What schould I do instead? ${$myfile[$count] . '_type'} There are some examples in the user comments in this manual page: http://www.php.net/manual/en/language.variabl

[PHP] Number/Letter Passwords

2001-03-27 Thread Matt Stone
will stuff up in certain circumstances? Please help, Matt stone _ "; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] Spacing between $row["City"],$row["State"]

2001-03-27 Thread Matt Williams
> Is there a way to get spacing between > $row["City"],$row["State"] in the html output? > I've tried echo "$row["City"], nbsp; $row["State"]"; > and a bunch of other things and get Parse error: parse > error, expecting `STRING' or `NUM_STRING' or `'$'' . Try echo $row["City"]." ".$row["State"

[PHP] removing $HTTP_POST_VARS

2001-03-28 Thread Matt Williams
Hi Is there a way I can remove all the values of $HTTP_POST_VARS? I'm trying to check where a form has been posted from and if it's not the right plac I want to remove all the post vars so they can't any damage. I've tried unset($HTTP_POST_VARS) but it doesn't seem to do anything. TIA M@ --

Re: [PHP] FTP without FTP module

2001-03-28 Thread Matt McClanahan
ual/en/function.fopen.php Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Line breaks in PHP

2001-03-29 Thread Matt Davis
the width of the page. Is there any way of PHP picking up these line breaks so that the text will be formatted on my web page as it was on my form. Thanks Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] Displaying query results

2001-03-29 Thread Matt Stone
Hi, I have a excellent library for doing just that but it is very complicated and integrated into the other libraries. Perhaps check out http://www.phpbuilder.com/columns/rod2221.php3 which is an article on what you are trying to do. Good luck, Matt Stone -Original Message- From

RE: [PHP] Session Varables with PHP3

2001-03-29 Thread Matt Williams
See http://phplib.netuse.de regarding sessions in php3 HTH M@ > -Original Message- > From: Sean Weissensee [mailto:[EMAIL PROTECTED]] > Sent: 29 March 2001 11:38 > To: [EMAIL PROTECTED] > Subject: [PHP] Session Varables with PHP3 > > > How can I create Session Varables, the docs I h

RE: [PHP] [ANSWER] problem uploading big (50MB) file

2001-03-30 Thread Matt Williams
> > Try replacing "100M" with it's byte equivalent. Or maybe it's > > kilobytes. One on of my systems they had "2M" and it wouldn't upload > > anything cause it didn't parse it right. > > In other words, set that value to what you had with say php4.0.1 > > good luck! > > replaced 100M by 10485

Re: [PHP] phpinfo unneeded

2001-03-30 Thread Matt McClanahan
erhaps), but the solution there isn't to disable phpinfo(), it's to run the web server from a specifically tailored environment. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Executing a PHP file to write an html file

2001-04-01 Thread Matt Friedman
//www.host.com/script.php") assuming lynx is installed. Instead of exec, why not just include the script you want to run in your page? Matt Friedman Spry New Media http://www.sprynewmedia.com - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "PHP

Re: [PHP] Search Engines

2001-04-01 Thread Matt Friedman
page to another page. The search spider will not follow the redirect. Other than that, I can't think of more things that a spider wouldn't like that have to do with php. If there are more, please correct me. Matt Friedman Spry New Media http://www.sprynewmedia.com - Original Message

[PHP] PHP Training

2001-04-02 Thread Matt Davis
Hi, is anyone aware of any php training courses available in the UK or alternativly any online anywhere. Thanks Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] PEAR

2001-04-03 Thread Matt Stone
I think the PEAR class file comes with PHP4... si that correct? -Original Message- From: glenn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 4 April 2001 11:47 AM To: [EMAIL PROTECTED] Subject: [PHP] PEAR Does anyone know where I can get the basic pear class file from? I'm using the omni

[PHP] PHP.net is slow

2001-04-04 Thread Matt Friedman
I don't know about everyone else but I've found that since the changeover to the new design of the php.net site, it's been very unreliable. I used to be able to look up a function in seconds if I didn't quite remember the usage. Now, I find that the doesn't won't even come up at times. Other tim

RE: [PHP] inlude_path not in php.ini

2001-04-05 Thread Matt Williams
> > How do I set the php-iclude path if I have not acess to php.ini? > > > > I know in .htacess but al I try ends in an Internal Server Error > > I use php4.0.4pl1 > php_value include_path "/path1:/path2" HTH M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP] How can I make this smaller

2001-04-05 Thread Matt McClanahan
global $domain,$tld,$firstname,$lastname,$userid...; Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] inlude_path not in php.ini

2001-04-06 Thread Matt Williams
> I tried > php_value include_path ".:./foo" > php_value include_path=".:./foo" > php_value include_path .:./foo > php_value include_path=.:./foo > php_flag include_path .:./foo # but flag is not right > according to the > documentation > > nothing :-( > > It seems I must change al my in

[PHP] Date formatting

2001-04-06 Thread Matt Davis
ortevent outputs "Thu 1 Jan" which is unix epoch date. Does anybody know what I am doiing wrong its probably something really simple but I cant see what. Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[PHP] odd cookie behaviour

2001-04-07 Thread matt thompson
at have come to mind. my cookie is being set like: if (!isset($cookie[0])) setcookie("cookie[0]", "0"); i do not have a product w/ id of zero (0), so i use that as the default id / value to set the cookie with. any suggestions _at_all_ would be appreciated. :) thanks, mat

Re: [PHP] odd cookie behaviour

2001-04-07 Thread matt thompson
;[EMAIL PROTECTED]> wrote in message 01040720420304.01567@box">news:01040720420304.01567@box... > I think you might wanna check if $cookie is set, not $cookie[0], if that > doesn't work just check if $cookie[0] = 0 > > -Shaun > > On Saturday 07 April 2001 21:1

Re: [PHP] submitting to a remote form

2001-04-07 Thread Matt McClanahan
if ($useragent) fputs($fp, "User-Agent: MSIE\n"); fputs($fp, "Connection: close\n\n"); if ($method == 'POST') fputs($fp, $data); while (!feof($fp)) $buf .= fgets($fp,128); fclose($fp); return $buf; } $data should be the variables of th

<    4   5   6   7   8   9   10   11   12   13   >