[PHP] Segmentation fault problem

2004-01-21 Thread E. Stuart Hicks
I can't get onto bugs.php.net right now for some reason so I will post this in here and hope someone finds it. I've recently installed and set up Horde / IMP to access my email from remote. I'm running the Courier mail system and its IMAP daemon. I also have UW IMAP 2002e built into PHP v4.3.4 a

RE: [PHP] Odd Code Error.

2004-01-21 Thread Robert Cummings
On Thu, 2004-01-22 at 00:52, Martin Towell wrote: > > [EMAIL PROTECTED] wrote: > > >>Ok i found something very interesting > > >>, i have a session var setup to check for a groupID which is an > > >>integer, > > >> > > >>if ($_SESSION['groupID']==1) { this was working, then when > > i changed it >

RE: [PHP] Odd Code Error.

2004-01-21 Thread Martin Towell
> [EMAIL PROTECTED] wrote: > >>Ok i found something very interesting > >>, i have a session var setup to check for a groupID which is an > >>integer, > >> > >>if ($_SESSION['groupID']==1) { this was working, then when > i changed it > >>to > >> > >>if ($_SESSION['groupID']===1) { per recomendation

Re: [PHP] Question about array limits & practicallity

2004-01-21 Thread Galen
Considering all this, a few ideas for you. 1) Store all questions in a MySQL table. Maybe add a column for "test number" or something so it can handle all the questions necessary for several tests. When generating the test, load everything into an array and create the test from that array. Be s

Re: [PHP] Odd Code Error.

2004-01-21 Thread John Nichel
[EMAIL PROTECTED] wrote: Ok i found something very interesting , i have a session var setup to check for a groupID which is an integer, if ($_SESSION['groupID']==1) { this was working, then when i changed it to if ($_SESSION['groupID']===1) { per recomendation, it does not now ! i was going through

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> Ok i found something very interesting > , i have a session var setup to check for a groupID which is an > integer, > > if ($_SESSION['groupID']==1) { this was working, then when i changed it > to > > if ($_SESSION['groupID']===1) { per recomendation, it does not now ! i > was going through my cod

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
Ok i found something very interesting , i have a session var setup to check for a groupID which is an integer, if ($_SESSION['groupID']==1) { this was working, then when i changed it to if ($_SESSION['groupID']===1) { per recomendation, it does not now ! i was going through my code and changing t

Re: [PHP] Question about array limits & practicallity

2004-01-21 Thread John Nichel
Joe Harman wrote: Thanks for your comments Chris and Rob... Chris you have great points to make, my ears are wide open... The reason I thought about storing the array in a blob is because every test generated will be different. the 102 question test will be generate randomly from a bank of 500 q

[PHP] Message rejected

2004-01-21 Thread Piers Lauder
Hi! Your have sent me a message from an address marked as being primarily a source of SPAM (also known as "unsolicited commercial e-mail"), and the message has been discarded. If in fact this was a genuine non-SPAM message and you still wish to contact me, then you need to re-send the message fro

Re: [PHP] PHP FuseBox

2004-01-21 Thread Ben Ramsey
If you checked out the PHP Community site announcement on the php.net site, you'd notice that the site may involve some coding standards creation. I find this very interesting and perhaps exciting. http://shiflett.org/archive/19 [EMAIL PROTECTED] wrote: I've developed my own methodology and cod

[PHP] Re: Form woes

2004-01-21 Thread Paul Chvostek
Alex, A switch statement probable isn't the way you want to do this. There is no real limit to how many of anything should go in a page, but there are likely better ways to skin this particular cat. Your goal should be to come up with elegant ways to represent problems, such that large tasks can

RE: [PHP] Question about array limits & practicallity

2004-01-21 Thread Joe Harman
Thanks for your comments Chris and Rob... Chris you have great points to make, my ears are wide open... The reason I thought about storing the array in a blob is because every test generated will be different. the 102 question test will be generate randomly from a bank of 500 questions.. That mea

Re: [PHP] Question about array limits & practicallity

2004-01-21 Thread Chris W
Robert Cummings wrote: Also can I store those arrays as a blob in MySQL? You could, but you'd be better off storing them in normalized tables IMHO. In this cans I will have to strongly agree with Rob, but I also have to add a few comments. Why on earth would you store an array as a blob

Re[2]: [PHP] mcrypt win32 install problem ?

2004-01-21 Thread Tom Rogers
Hi, Thursday, January 22, 2004, 2:16:22 AM, you wrote: scb> Hi Tom, Vincent, list, scb> Tom, your response caused some confusion here. I have mcrypt running on win32 scb> (Win98, Apache 1.3.29 & 2.0.48, PHP 4.3.4 & PHP 5beta3) and am in fact using scb> mcrypt_generic_deinit() succesfully to encr

Re: [PHP] PHP 5 Book

2004-01-21 Thread daniel
> I'm using 4.1 alpha now - It is stable enough for a dev box - Nested > queries are good fun. > > Yes i meant for production use, i run a few machines at home, the main internet gateway is a bsd box which serves to the net. I have an internal dev box on knoppix, both are running apache 2, php 4.3

Re: [PHP] Question about array limits & practicallity

2004-01-21 Thread Robert Cummings
On Wed, 2004-01-21 at 23:07, Joe Harman wrote: > I am curious how much data an array can hold.. And what the pros and > cons are. How much memory have you allowed PHP to consume? > Example.. I am making a testing system that will give a student a 102 > question test... > > The test would be gen

[PHP] Question about array limits & practicallity

2004-01-21 Thread Joe Harman
I am curious how much data an array can hold.. And what the pros and cons are. Example.. I am making a testing system that will give a student a 102 question test... The test would be generated so that each one is different... So would it be practical to load all 102 questions and their options

Re: [PHP] PHP 5 Book

2004-01-21 Thread Aidan Lister
I'm using 4.1 alpha now - It is stable enough for a dev box - Nested queries are good fun. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > 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 >

Re: [PHP] Odd Code Error.

2004-01-21 Thread Robert Cummings
On Wed, 2004-01-21 at 21:37, [EMAIL PROTECTED] wrote: > > On Wed, 2004-01-21 at 20:19, Chris W wrote: > >> Robert Cummings wrote: > > May i ask how you handle your error handling Robert ? I'm considering > moving my class error handling to pear but then it'll need a custom class > or function anyw

Re: [PHP] Odd Code Error.

2004-01-21 Thread John W. Holmes
Chris W wrote: $Key = "xyz"; lots more code here. if($key == "xyz"){ Notice: Undefined variable: key in \path\to\test.php on line X do this stuff; } lots more code here; If the language forces variable deceleration you simply get an error "variable $key not defined on line x" then there is n

[PHP] Image Header Issues - solved

2004-01-21 Thread Bob Eldred
For the archives, for when someone else runs into this. The following headers solved the issue where IE would only save an image as a BMP, when the image was, in fact, a JPG: header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); heade

Re: [PHP] Odd Code Error.

2004-01-21 Thread daniel
> On Wed, 2004-01-21 at 20:19, Chris W wrote: >> Robert Cummings wrote: May i ask how you handle your error handling Robert ? I'm considering moving my class error handling to pear but then it'll need a custom class or function anyway to handle the errors in different ways for different applicatio

Re: [PHP] Odd Code Error.

2004-01-21 Thread Robert Cummings
On Wed, 2004-01-21 at 20:19, Chris W wrote: > Robert Cummings wrote: > > >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

Re: [PHP] Odd Code Error.

2004-01-21 Thread John Nichel
Chris W wrote: I challenge anyone to find a disadvantage in forcing decelerations of variables and functions, other than having to type more. Forcing declaration will create more list traffic... "I'm getting the error 'Variable $foo not declared on line 321', somebody fix my code..." And Jason

Re: [PHP] Odd Code Error.

2004-01-21 Thread Chris W
Robert Cummings wrote: 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 ho

Re: [PHP] File upload question

2004-01-21 Thread Igor Kryltsov
Hi, You recommend to allocate post id when "Compose mail" pressed and set draft(boolean) = true. Than I can attach files one by one linking them to post_id in DB. This approach is better than mine, I think, as files will be already linked to post_id in DB and if post will never be submitted prune

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

2004-01-21 Thread John Nichel
Dimitri Marshall wrote: 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 fi

Re: [PHP] Re: PHP FuseBox

2004-01-21 Thread Robert Cummings
On Wed, 2004-01-21 at 19:51, Justin French wrote: > On Thursday, January 22, 2004, at 07:10 AM, Alex Pilson wrote: > > > 1) FrameWork...(incredible piece of work) I have friend that is > > working on porting it to PHP. > > http://www.fwpro.com/ This seems to follow the same methodology as my In

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

2004-01-21 Thread John W. Holmes
Dimitri Marshall wrote: 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 c

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

2004-01-21 Thread Raditha Dissanayake
I belive the left() function is mysql is what you are looking for. Dimitri Marshall wrote: 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 num

Re: [PHP] Re: PHP FuseBox

2004-01-21 Thread Justin French
On Thursday, January 22, 2004, at 07:10 AM, Alex Pilson wrote: 1) FrameWork...(incredible piece of work) I have friend that is working on porting it to PHP. http://www.fwpro.com/ This looks awesome... can't wait to see something downloadable... Strange that there's no contact information, relea

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

2004-01-21 Thread Matt Matijevich
http://us2.php.net/substr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and email attachments

2004-01-21 Thread Raditha Dissanayake
Hi, You are dead right about not sending an attachment in the mail. Sure way to get yourself into the bad books. TO send attachements with simple old mail you have to make it into a MIME message there are classes in PEAR and some more at phpclasses that does just that. Finally if you are sendi

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 s

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

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 http://www.by-tor.

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

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

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

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

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

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

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 sh

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

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 communi

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

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

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 c

[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 on a page does not look as a nice solution to me as amount of

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 if($name

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 annoya

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 t

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

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

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

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 se

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 w

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

[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 windows/sys

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

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 ... ... #Code: login.php $i) { $nome = my

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

2004-01-21 Thread Matt Matijevich
try this: print ""; print_r ($_POST); print ""; 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 websi

[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 ... ... #Code: login.php $i) { $nome = mysql_result

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 doesn'

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 a

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 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, "\\".$wor

[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

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

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

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

RE: [PHP] Form validation

2004-01-21 Thread Chris W. Parker
Alex Hogan 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. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] query strings, global variables

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

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

RE: [PHP] textfields showing php tags & code

2004-01-21 Thread Chris W. Parker
craig 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 > code inside the textareas, r

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

[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. Si

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 wif

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

RE: [PHP] hello to making the php pages

2004-01-21 Thread Chris W. Parker
Dagfinn Reiersøl 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 Gen

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 m

[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 code inside the textareas, rather than the passed value from the function call. any ideas are greatly appreciate

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 $_POS

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

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

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

[PHP] Re: Extended characters passed in URL

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

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

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

[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] 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 "exten

  1   2   >