Re: [PHP] Running PHP as a CGI, chasing my own tail....

2004-01-21 Thread Stuart
pw wrote: I can't use the php module because a third party application requires php to be available via CGI. CGI or CLI? I'm betting on the latter because I'm not aware of any feature a script could require that is only provided by the PHP executable and not the module. In which case you can

Re: [PHP] Problems with $_POST

2004-01-21 Thread Binay
Hi What is the primary key in your tble? Using tht primary key check for duplicate entry... Theres no way u can change the posted data ... so even if u reset $_POST['submit'] after the insert operation is done, next time u refresh it will be set and hence will duplicate...so check for

Re: [PHP] Problems with $_POST

2004-01-21 Thread Toby Irmer
You can use a token to check if a form has been sent before... ? class formReload { var $tokenarray = '__token'; var $tokenname = '__token'; function createToken() { $tok = md5(uniqid(mytoken)); return sprintf(input type='hidden' name='%s'

Re: [PHP] Problems with $_POST

2004-01-21 Thread Aidan Lister
Or, After you've dumped the data into the DB, issue a header('location: /path/to/script'); This will also solve the problem of IE saying are you sure you want to resend the form data. Toby Irmer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You can use a token to check if a form

Re: [PHP] Regexp help (simple)

2004-01-21 Thread Victor Spång Arthursson
2004-01-20 kl. 10.41 skrev Dagfinn Reiersl: [EMAIL PROTECTED] wrote: $string = 'ab12345-1'; if (preg_match('/^([a-z]{2,3})([0-9]{4,5}(\-[0-9]{1,2}){0,1})$/i', $string, $m='')) { echo $m[1]; // - ab echo $m[2]; // - 12345-1 } g. martin luethi You can replace {0,1} with a question mark and

[PHP] mcrypt win32 install problem ?

2004-01-21 Thread Vincent DUPONT
Hi, I want to use the mcrypt module and I followed the instructions to install the dll for Win32 users : I copied the libmcrypt.dll file under c:\winnt\system32 I uncommented the extension=php_mcrypt.dll in the php.ini I restarted the computer I tried many examples available in the Net. The

Re: [PHP] mcrypt win32 install problem ?

2004-01-21 Thread Tom Rogers
Hi, Wednesday, January 21, 2004, 9:09:40 PM, you wrote: VD Hi, VD I want to use the mcrypt module and I followed the VD instructions to install the dll for Win32 users : VD I copied the libmcrypt.dll file under c:\winnt\system32 VD I uncommented the extension=php_mcrypt.dll in the php.ini VD I

RE: [PHP] Odd Code Error.

2004-01-21 Thread Jay Blanchard
[snip] Interesting. I wouldn't have expected that. However, that is how it should work. Check out table K-2 on this page: http://us4.php.net/manual/en/types.comparisons.php '==' is a loose comparison. You can use '===' instead which will give you the results you are looking for. if ($EA

RE: [PHP] Re: Create PDF FIle

2004-01-21 Thread Jay Blanchard
[snip] I use the pdf class from http://www.potentialtech.com Todd [/snip] There are built-in PDF functions http://us4.php.net/pdf and others use the class from http://www.fpdf.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Online Community Project

2004-01-21 Thread Ralph Guzman
I want to develop a friendster like program in php. I've searched the net to see if there are any similar programs or projects but I have not found anything. Anybody seen or come across any programs or projects for developing a friendster like community? -- PHP General Mailing List

php-general Digest 21 Jan 2004 12:12:28 -0000 Issue 2543

2004-01-21 Thread php-general-digest-help
php-general Digest 21 Jan 2004 12:12:28 - Issue 2543 Topics (messages 175248 through 175284): Re: Flash-PHP Socket Connection 175248 by: Marc Greenstock 175249 by: daniel.electroteque.org 175259 by: Miles Thompson PHPSESSIONID altering each time the page is loaded

Re: [PHP] thumbnail

2004-01-21 Thread Ed Curtis
[snip] OK, but how? I already use GD, I need to now how to create a thumbnail, somebody now how to use the GD functions to create a thumbnail??? [/snip] http://www.php.net/GD Personally, I think Imagemagick's mogrify works alot better. I've been using GD for the past few months and

Re: [PHP] thumbnail

2004-01-21 Thread David T-G
Ed, et al -- ...and then Ed Curtis said... % % Personally, I think Imagemagick's mogrify works alot better. I've been I'm quite happy with IM, too, and use it both within and separate from PHP. % using GD for the past few months and it's very inconsistent on thumbnail % quality even when the

Re: [PHP] thumbnail

2004-01-21 Thread Ed Curtis
No need to copy+mogrify; just use convert [options] /path/to/old /path/to/new instead :-) I wasn't aware of that command. This list is great!! Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Flash-PHP Socket Connection

2004-01-21 Thread Donald Tyler
We are just about to try and get this working with sockets ourselves. Our intranet currently does exactly what you are trying to do, but without using sockets. In reply to your question, there is no one site for XMLRPC really. I suggest you read up on the following subjects: XMLRPC document

RE: [PHP] thumbnail???

2004-01-21 Thread Donald Tyler
Try this: function Resize_Image($FilePath, $new_w){ $File = fopen($FilePath, r); $FileContents = fread($File, filesize($FilePath)); $src= imagecreatefromstring($FileContents); $width = imagesx($src); // Shrink the image to the maximum width

RE: [PHP] Re: Flash-PHP Socket Connection

2004-01-21 Thread Donald Tyler
You would use sockets if you were developing a client/server application that was making a LOT of requests very quickly. Opening and closing connections using normal HTTP methods gets slow when carrying out such intense data communication. A good example would be an online game where you need to

[PHP] Suggestion on executing external programs from within php

2004-01-21 Thread John Clegg
Hi I would like to be able to execute 2 system calls simultaneously. I am not interested in the output and I would like to do the equivalent of a fork as these programs take a long time. eg system('/usr/local/bin/process_file file1'); system('/usr/local/bin/process_file file2'); Any

RE: [PHP] Problems with $_POST

2004-01-21 Thread Donald Tyler
This is the method I recommend also. The token method works fine, but is slightly harder to implement. Basically you would keep the function that creates the record separate from the page that shows confirmation of the record being created. e.g. 1. User visits:

Re: [PHP] Suggestion on executing external programs from within php

2004-01-21 Thread Stuart
John Clegg wrote: I would like to be able to execute 2 system calls simultaneously. I am not interested in the output and I would like to do the equivalent of a fork as these programs take a long time. system('/usr/local/bin/process_file file1'); system('/usr/local/bin/process_file file2');

[PHP] str_replace and TABS

2004-01-21 Thread Vernon
I'm using the following to replace certain characters but am having troubles with TABS. How do I find them? $replacement = array(\, ,, ., !, ?,;, :,),(,\n); Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace and TABS

2004-01-21 Thread Matt Matijevich
[snip] I'm using the following to replace certain characters but am having troubles with TABS. How do I find them? $replacement = array(\, ,, ., !, ?,;, :,),(,\n); Thanks [/snip] I think \t . Double check with google. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Flash-PHP Socket Connection

2004-01-21 Thread Jon Bennett
You would use sockets if you were developing a client/server application that was making a LOT of requests very quickly. Opening and closing connections using normal HTTP methods gets slow when carrying out such intense data communication. A good example would be an online game where you need

Re: [PHP] Browser randomly displays php source instead of supposed output

2004-01-21 Thread Terje With Lunndal
Stephan spake thusly: Randomly the php-source is displayed instead of the output (http://www.engstringen.ch/). Generally, the output is correct !!! It happens sometimes after 10 minutes of browsing. Sometimes it comes up with the first clikc on the site. I am experiencing the exact same

[PHP] Re: str_replace and TABS

2004-01-21 Thread Vernon
In case anyone wanted to know I found it: $replacement = array(\, ,, ., !, ?,;, :,),(,\n, \t, \v); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Flash-PHP Socket Connection

2004-01-21 Thread Jon Bennett
you might want to check out http://www.flash-remoting.com/ as well. There's also a book from oreilly. Cheers, Jon jon bennett | [EMAIL PROTECTED] new media creative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Gloucester Rd, Trowbridge, Wilts,

[PHP] Re: Specifying file paths in Windows

2004-01-21 Thread Todd Cary
I found the problem: PDFlib is expecting the file name to be in the proper format for the system (Linux or NT). This is my patch: $workdir = getcwd(); if ($use_unix) $cl_absolute_image = $workdir . /tiff/ . $cl_image; else

[PHP] Form validation

2004-01-21 Thread Alex Hogan
Can some one point me in the right direction for a good tutorial on form validation in PHP? Thanks, alex hogan ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for

[PHP] web page thumbs

2004-01-21 Thread Alex Hogan
Is there a way to create thumbnails of web pages? I have a page where the user will select a template from a list and I would like to be able to give them thumbs to associate with the template types. alex hogan **

RE: [PHP] Odd Code Error.

2004-01-21 Thread Ford, Mike [LSS]
On 21 January 2004 04:01, Luke contributed these pearls of wisdom: ok, i read the section, but even so if $a == $b and $a == $c then $b should be equal to $c No, not necessarily! but php is saying otherwise? Yes. this sounds confusing i want to try n get my head round it a string

Re: [PHP] Form validation

2004-01-21 Thread Matt Matijevich
[snip] Can some one point me in the right direction for a good tutorial on form validation in PHP? Thanks, alex hogan [/snip] I like to use regular expressions for my form validation. Search google for reugular expressions, you will get a bunch of results. Also take a look at the php

RE: [PHP] Form validation

2004-01-21 Thread Matt Matijevich
[snip] Hi, you can do it on server site (php code) or client side (javascript code) DS [/snip] Is this a question? If it is, yes you can use regular expressions with javascript and php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variables are working!

2004-01-21 Thread Kaushan
Thanks for helping me... Now its working perfectly. Problem was with globals as you all pointed-out. PHP Manual pages at http://www.php.net/manual/en/language.variables.predefined.php was very helpful overcome this problem (thanks alot Ben...). Kaushan -- PHP General Mailing List

Re: [PHP] mcrypt win32 install problem ?

2004-01-21 Thread speedfreak
Tom Rogers wrote: Hi, Wednesday, January 21, 2004, 9:09:40 PM, you wrote: VD Hi, VD I want to use the mcrypt module and I followed the VD instructions to install the dll for Win32 users : VD I copied the libmcrypt.dll file under c:\winnt\system32 VD I uncommented the

[PHP] Cookies

2004-01-21 Thread Rolf van de Krol
Hi all, When I try to set a cookie, an error occurs: 'Cookie already set'. Does anybody know why this error occurs?? I don't know. Rolf van de Krol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cookies

2004-01-21 Thread Jay Blanchard
[snip] When I try to set a cookie, an error occurs: 'Cookie already set'. Does anybody know why this error occurs?? I don't know. [/snip] Because the cookie is already set. http://us3.php.net/manual/en/function.setcookie.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Running PHP as a CGI, chasing my own tail....(resolved)

2004-01-21 Thread pw
CGI or CLI? I'm betting on the latter because I'm not aware. Yes, available via CLI for CGI. My mistake. The third party app has thread safety issues that require php to be run as a command line CGI rather than a module. The problem with the module, as stated perviously, is not with php,

[PHP] Re: Extended characters passed in URL

2004-01-21 Thread Alex
One more note - the script is called from a classic hyperlink a href= cannot change that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form validation

2004-01-21 Thread zerof
If you can use Dreamweaver, there is an extension to do this. zerof - Matt Matijevich [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Can some one point me in the right direction for a good tutorial on form validation in PHP? --- -- PHP General Mailing List

Re: [PHP] web page thumbs

2004-01-21 Thread Brian V Bonini
On Wed, 2004-01-21 at 10:19, Alex Hogan wrote: Is there a way to create thumbnails of web pages? I have a page where the user will select a template from a list and I would like to be able to give them thumbs to associate with the template types. Are you saying you want to create this

Re: [PHP] thumbnail

2004-01-21 Thread Brian V Bonini
On Wed, 2004-01-21 at 08:16, Ed Curtis wrote: No need to copy+mogrify; just use convert [options] /path/to/old /path/to/new instead :-) I wasn't aware of that command. This list is great!! Just for clarification, those are not PHP functions, they are programs that are a part of

Re: [PHP] authentication problems!

2004-01-21 Thread Scott Taylor
Do you mean using $file = '/protected/file.pdf'; or using an absolute path on the server? Best Regards, Scott Subject: Re: [PHP] authentication problems! From: Luke [EMAIL PROTECTED] Date: Wed, 21 Jan 2004 14:24:11 +1100 To: [EMAIL PROTECTED] Yeah, i think i mentioned the same thing(or was

Re: [PHP] Problems with $_POST

2004-01-21 Thread Reidar Solberg
Thank you all for answers - I've got one problem less!!! - Reidar Binay [EMAIL PROTECTED] skrev i melding news:[EMAIL PROTECTED] Hi What is the primary key in your tble? Using tht primary key check for duplicate entry... Theres no way u can change the posted data ... so even if u reset

[PHP] textfields showing php tags code

2004-01-21 Thread craig
Hi All, This one has me stumped, it worked yesterday, but not today, and I didn't change anything (as far as I know). This is some of the code from a function which is now showing the ?php echo $quantity; ? code inside the textareas, rather than the passed value from the function call. any ideas

RE: [PHP] web page thumbs

2004-01-21 Thread Alex Hogan
Yes..., if that's possible? The page in question is for Instructional Developers to select from a series of templates to develop lessons from. These templates have different page layouts that have differing types of text/media areas. The idea is to speed up the lesson development process while

RE: [PHP] hello to making the php pages

2004-01-21 Thread Chris W. Parker
Dagfinn Reiersøl mailto:[EMAIL PROTECTED] on Tuesday, January 20, 2004 10:19 PM said: If he kept the old wife, he needs to talk to both wives. If not, replacing the colon with a semicolon might help. she was kicked by bull pulling plow. new wife much better. make very happy. -- PHP

[PHP] COM Server Object Properties

2004-01-21 Thread Jamie Hale
I have a COM server that exposes a read/write property with a parameter. Here is the IDL: [propget, id(5), helpstring(property Status)] HRESULT Status([in] BSTR bstrPhase, [out, retval] long *pVal); [propput, id(5), helpstring(property Status)] HRESULT Status([in] BSTR bstrPhase, [in] long

RE: [PHP] hello to making the php pages

2004-01-21 Thread Ryan A
Hey hey hey, a little respect here guys, stop talking about this guy's (new) wifes colon...or her semi-colon :-p cheers, -Ryan If he kept the old wife, he needs to talk to both wives. If not, replacing the colon with a semicolon might help. she was kicked by bull pulling plow. new wife

[PHP] query strings, global variables

2004-01-21 Thread mayo
I'm a cold fusion refugee and am having incredible problems with something that I think is relatively easy -- so I must be missing something basic. I would like to pull info from a query string and use it inside a database call I have a navigation bar that includes data pulled from a database.

RE: [PHP] textfields showing php tags code

2004-01-21 Thread Donald Tyler
Is it just showing that one or in all three text fields? -Original Message- From: craig [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 11:24 AM To: Php Subject: [PHP] textfields showing php tags code Hi All, This one has me stumped, it worked yesterday, but not today, and

RE: [PHP] textfields showing php tags code

2004-01-21 Thread Chris W. Parker
craig mailto:[EMAIL PROTECTED] on Wednesday, January 21, 2004 9:24 AM said: This one has me stumped, it worked yesterday, but not today, and I didn't change anything (as far as I know). This is some of the code from a function which is now showing the ?php echo $quantity; ? code inside

[PHP] Form woes

2004-01-21 Thread Alex Hogan
The code below is the submission of my form and the inclusion of different pages based on what the $dev value is. My questions are; Is there a better, or should I say more elegant, way to do what I'm doing? Should I break out the switch statement and put it in another page? What is the

Re: [PHP] query strings, global variables

2004-01-21 Thread Matt Matijevich
snip while ($row = mysql_fetch_array($selection)){ if (section == $sectionName){ echo b . $row[sectionName] . /b; }else{ echo $row[sectionName]; } thx /snip Not sure if I understand you 100% but I think you could just either check the $_GET or $_REQUEST array. Something like

RE: [PHP] Form validation

2004-01-21 Thread Chris W. Parker
Alex Hogan mailto:[EMAIL PROTECTED] on Wednesday, January 21, 2004 7:18 AM said: Can some one point me in the right direction for a good tutorial on form validation in PHP? Here is a basic practical application. ?php // gather and validate data $fname =

[PHP] PHP FuseBox

2004-01-21 Thread Alex Pilson
I am migrating my development from Lasso 6 to PHP, and I have used the FuseBox methodology pretty extensively on some sites. It works very well. I was wondering, how prevalent is the FuesBox methodology in the PHP developer community? If not, is there a common coding practice (structure) that

[PHP] strpos

2004-01-21 Thread Martin Hjort Eriksen
Hello everybody I am currently working on an rtf to html converter, and for this i need a function that can find a specific control word in the file. Because of the sheer number control words in the rtf standard, I have to be shure that I have the control word, by examining the trailing

[PHP] Re: Flash-PHP Socket Connection

2004-01-21 Thread Eric Bolikowski
Hi everybody helping me on this I have not gotten a lot of tips, I appreciate all the help I have gotten here. I have decided to try out different technologies that I have been advised and measure performance to choose the best and fastest one! Eric Eric Bolikowski [EMAIL PROTECTED] wrote in

[PHP] Re: PHP FuseBox

2004-01-21 Thread Ben Ramsey
As far as I can tell, there isn't a common coding practice among PHP developers. What I mean is: there is no standard as in ANSI Standard C++. However, I believe that there beginning to be a move toward a more standardized way of coding, and I would greatly support and like to be involved in

[PHP] Re: PHP FuseBox

2004-01-21 Thread Alex Pilson
At 3:01 PM -0500 1/21/04, Ben Ramsey wrote: As far as I can tell, there isn't a common coding practice among PHP developers. What I mean is: there is no standard as in ANSI Standard C++. However, I believe that there beginning to be a move toward a more standardized way of coding, and I would

[PHP] PHP 5 Book

2004-01-21 Thread Donald Tyler
Hi Anyone know if Rasmus (or anyone for that matter) is writing a book on PHP 5? And when it might be available? Thanks Donald Tyler

Re: [PHP] strpos

2004-01-21 Thread Mike Migurski
When I use the function bellow, and there is no occournce of the control word, strpos shoul return false, but instead i returns 1, which is not the intention. Does anybody here have an idea about what I am doing wring??? You're adding the one: $position = strpos($this-fileContent, \\.$word,

Re: [PHP] Odd Code Error.

2004-01-21 Thread Jonathan Pitcher
Thanks. It makes sense now. Now I have one more question. Not to confuse the issue more. :) $EA = 0 if ($EA == NFH) // would work because the string is converted to an integer and then compared correct ? And by using === I tell it to compare type and value ? If that is true would 0 == 0?

Re: [PHP] strpos

2004-01-21 Thread Martin Hjort Eriksen
Thank You very much. and I think I will go to bed now /Martin Mike Migurski wrote: When I use the function bellow, and there is no occournce of the control word, strpos shoul return false, but instead i returns 1, which is not the intention. Does anybody here have an idea about what I

RE: [PHP] textfields showing php tags code

2004-01-21 Thread Donald Tyler
There is nothing wrong with your code, I just tried it on my site and it works fine. Try and run the function you posted on its own, without adding back anything that you removed, just to make sure you didn't inadvertently remove the problem. If it works, then you know where to look, if it

[PHP] Login variable is empty but password is OK. Why? (newbie question)

2004-01-21 Thread Flavio
My code is simply to login. I have two files: login.html (form) and login.php to validate. I don´t understand why php capture only password )I call it senha) and take a blank username (I call it nome). Any idea? #Code - login.html form method=POST action=login.php ... input type=text

Re: [PHP] Login variable is empty but password is OK. Why? (newbie question)

2004-01-21 Thread Matt Matijevich
try this: print pre; print_r ($_POST); print /pre; do you see nome in there? I think the reason $senha has a value in it is md5 gives you a string even if you pass it a blank value. I would use these 2 variables $_POST['nome'] and $_POST['senha'] also look at register_globals on the php.net

Re: [PHP] Login variable is empty but password is OK. Why? (newbie question)

2004-01-21 Thread Martin Hjort Eriksen
Flavio wrote: My code is simply to login. I have two files: login.html (form) and login.php to validate. I don´t understand why php capture only password )I call it senha) and take a blank username (I call it nome). Any idea? #Code - login.html form method=POST action=login.php ... input

Re: [PHP] Odd Code Error.

2004-01-21 Thread Robert Cummings
On Wed, 2004-01-21 at 15:38, Jonathan Pitcher wrote: Thanks. It makes sense now. Now I have one more question. Not to confuse the issue more. :) $EA = 0 if ($EA == NFH) // would work because the string is converted to an integer and then compared correct ? And by using === I tell

[PHP] Re: Specifying file paths in Windows

2004-01-21 Thread Luke
Well, the thing is, it sounds like PDFlib isnt programmed well? or perhaps there is a limitation in something they used... because, sure, windows uses C:\windows\system\blah\folder\ but you can do any of the following (this is the output from the command prompt: windoze cmd.exe C:\cd

[PHP] Cookie problem with old browser.

2004-01-21 Thread Chris W
I don't know that this really matters, but I am having problems with cookies getting set when viewing my site with an old version of netscape, I still have installed 4.79. I'm not that concerned with supporting that old of a browser but I am 99% sure the site was working with that browser at

RE: [PHP] Cookie problem with old browser.

2004-01-21 Thread Katie Dewees
Chris W wrote: I don't know that this really matters, but I am having problems with cookies getting set when viewing my site with an old version of netscape, I still have installed 4.79. I'm not that concerned with supporting that old of a browser but I am 99% sure the site was working with

Re: [PHP] web page thumbs

2004-01-21 Thread Paul Chvostek
You're chasing your tail, but it may be possible to catch it. I note that http://www.alexa.com/ has thumbnails of web pages. For quite a while I've wondered how they do that. So I researched. Visit Alexa, find a site with a thumbnail, and download the image. Check out the JPEG comment -- and

[PHP] geographical queries?

2004-01-21 Thread Ray
we import a database that has among other things, listings of locations by address, city, county and zip, and our customers would like their website to have a 'within $x miles of $address $city $zip' search in addition to the other searching they already have. another customer would like to

Re: [PHP] PHP 5 Book

2004-01-21 Thread daniel
Hi Anyone know if Rasmus (or anyone for that matter) is writing a book on PHP 5? And when it might be available? There was a showcase posted here before, i dont know about a book, but a pdf reference would be good. Dan (cant wait for the release of both PHP5 and Mysql 4.1) -- PHP

Re: [PHP] PHP 5 Book

2004-01-21 Thread Ben Ramsey
Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I can't find that in any of the new features logs. Anyone know about this? It'd be a great feature to have. Unless, of course, anyone knows how to do this without a CREATE VIEW statement. -Ben [EMAIL PROTECTED] wrote: (cant

Re: [PHP] Re: PHP FuseBox

2004-01-21 Thread daniel
Thanks, that was my next question...I was told to look at PEAR from the beginning. All I can say is PEAR looks very exciting for me. Some good coding structure ideas that have been brought into the Lasso developer circles over the years: 1) FrameWork...(incredible piece of work) I have

Re: [PHP] Odd Code Error.

2004-01-21 Thread Chris W
Luke wrote: yeah its strange, $test is equal to $test2, $test is equal to $test3 but $test2 is not equal to $test3, $test = string; $test2 = true; $test3 = 0; if($test == $test2){ echo hi; } somone tell me im wrong please? else thats seriously weird I'm sure many will disagree with me on this

Re: [PHP] PHP 5 Book

2004-01-21 Thread daniel
Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I can't find that in any of the new features logs. Anyone know about this? It'd be a great feature to have. Unless, of course, anyone knows how to do this without a CREATE VIEW statement. -Ben Its a terrible annoyance

Re: [PHP] Odd Code Error.

2004-01-21 Thread Martin Hjort Eriksen
I agree with Chris... In contrast you can also see a common problem in many of the downloadable scripts from different collections on the net, like hotscripts.com, where the programmers start building control structures whitout having the different variables they use set. For instance

[PHP] File upload question

2004-01-21 Thread Igor Kryltsov
Hi, If I allow multiple file uploads in my custom designed discussion board if there any way to collect all attachments file names by reloading page and than upload all of them on Post button (form submission)? Displaying multiple input type=file on a page does not look as a nice solution

Re: [PHP] Odd Code Error.

2004-01-21 Thread Robert Cummings
Hmmm, I don't think other programmer's sloppy coding practices are a good argument for having to declare variables or against loose typing. There are crappy coders in whatever language you use. The good coders will do the right thing. If you are concerned about scripts on hotscripts.com where the

[PHP] Re: geographical queries?

2004-01-21 Thread Manuel Lemos
Hello, On 01/21/2004 08:22 PM, Ray wrote: we import a database that has among other things, listings of locations by address, city, county and zip, and our customers would like their website to have a 'within $x miles of $address $city $zip' search in addition to the other searching they

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
I agree with Chris... In contrast you can also see a common problem in many of the downloadable scripts from different collections on the net, like hotscripts.com, where the programmers start building control structures whitout having the different variables they use set. For instance

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
So do you recommend using isset($name) instead of ($name) ? And what are you meaning by setting the var as in var $name ? i usually set them in classes but how about in normal scripts and functions ? Hmm i was checking out a pear class, what about the variables within a function ? like

Re: [PHP] PHP FuseBox

2004-01-21 Thread Justin French
On Thursday, January 22, 2004, at 06:35 AM, Alex Pilson wrote: I am migrating my development from Lasso 6 to PHP, and I have used the FuseBox methodology pretty extensively on some sites. It works very well. I was wondering, how prevalent is the FuesBox methodology in the PHP developer

[PHP] Re: Form woes

2004-01-21 Thread Manuel Lemos
Hello, On 01/21/2004 05:07 PM, Alex Hogan wrote: Is there a better, or should I say more elegant, way to do what I'm doing? You may want to try this multi-page forms generation class: Class: Multipage forms class http://www.phpclasses.org/multipageforms -- Regards, Manuel Lemos Free ready to

Re: [PHP] Odd Code Error.

2004-01-21 Thread Martin Hjort Eriksen
[EMAIL PROTECTED] wrote: So do you recommend using isset($name) instead of ($name) ? And what are you meaning by setting the var as in var $name ? i usually set them in classes but how about in normal scripts and functions ? Yes, if you want to examine if a variable is set or not, then you

Re: [PHP] PHP FuseBox

2004-01-21 Thread daniel
I've developed my own methodology and coding practices over the past 3-5 years, but summarising them into a few lines and code snippets is impossible :) I think we all have, maybe there should be a posting place to submit our methodology and frameworks, and then maybe just maybe come up with

Re: [PHP] Odd Code Error.

2004-01-21 Thread John W. Holmes
[EMAIL PROTECTED] wrote: Hmm i was checking out a pear class, what about the variables within a function ? like function foo($name) { if ($name) { } } or foo($name) { if (isset($name)) { } } it uses isset on variables coming outside the function Those examples don't make much sense. Without

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
Yes, if you want to examine if a variable is set or not, then you should use isset(). Ok i'll start using it Exactly how a variable should be set, well it could be for instance var $age:int; Where on the php site does it tell you to set it like that ? I've never seent that before ?

Re: [PHP] Odd Code Error.

2004-01-21 Thread Martin Hjort Eriksen
[EMAIL PROTECTED] wrote: Exactly how a variable should be set, well it could be for instance var $age:int; Where on the php site does it tell you to set it like that ? I've never seent that before ? It is also because you cannot do it... :) It was an idea on how it could be done,

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
[EMAIL PROTECTED] wrote: Hmm i was checking out a pear class, what about the variables within a function ? like function foo($name) { if ($name) { } } or foo($name) { if (isset($name)) { } } it uses isset on variables coming outside the function Those examples don't make

Re: [PHP] Odd Code Error.

2004-01-21 Thread Martin Hjort Eriksen
[EMAIL PROTECTED] wrote: I dont understand, i assume that would check if name was set, i also set functions like function foo($name,$bar = null) { } so therefore bar doesnt need to be inputted, seeing as i set it to null would i check if $bar===true ? or just isset($bar ) ? when you have set

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
And $bar === true will only become true, if $bar is true, look at table K-3 here http://www.php.net/manual/en/types.comparisons.php Ok i tested it out function foo($bar = null) { if (isset($bar)) die(yes); } foo(test); will die where foo(); wont -- PHP General Mailing List

Re: [PHP] File upload question

2004-01-21 Thread Raditha Dissanayake
Hi Igor, The approach taken by yahoo etc is the most popular. In your case you will just need to enter the message in it's entirity in the database as you normally would but perhaps mark it as a draft so that it does not become visible. SHAMLESS PLUG: alternatively you can use rad upload at

[PHP] PHP and email attachments

2004-01-21 Thread Tim Thorburn
Hi, A client of mine asked today if I could setup their current mass mailer to send out attachments - I've never sent attachments with the mail() function before, but before we get into that ... I wanted to ask an opinion of the group. Would it not be better, rather than sending a file out to

Re: [PHP] PHP FuseBox

2004-01-21 Thread Justin French
On Thursday, January 22, 2004, at 10:50 AM, [EMAIL PROTECTED] wrote: I think we all have, maybe there should be a posting place to submit our methodology and frameworks, and then maybe just maybe come up with a global standard ? I personally am always keen to change my practices to keep up

Re: [PHP] hello to making the php pages

2004-01-21 Thread John Nichel
Ryan A wrote: Hey hey hey, a little respect here guys, stop talking about this guy's (new) wifes colon...or her semi-colon :-p cheers, -Ryan You can always use php's enema(int bag-size [, string orifice]) function to fix the colon problems. -- By-Tor.com It's all about the Rush

[PHP] Get First 20 Characters of a Variable or Database Entry

2004-01-21 Thread Dimitri Marshall
Hi there, How would I go about getting the first 20 characters of a varibale or database entry. The situation is this, I created a calendar where users can post events and on the date instead of just a number (the number of events and the date), I would like to show the first 20-30 characters of

Re: [PHP] PHP and email attachments

2004-01-21 Thread John Nichel
Tim Thorburn wrote: Hi, A client of mine asked today if I could setup their current mass mailer to send out attachments - I've never sent attachments with the mail() function before, but before we get into that ... I wanted to ask an opinion of the group. Would it not be better, rather than

  1   2   >