Re: [PHP] PHP Oficial Certification

2004-08-27 Thread Curt Zirzow
* Thus wrote Yann Larrivee: For shure a beginner will benefit from this has it is problably give him a salary increase compared to the guy that is not certified (we all know that php developper are under paid) So this part is good. It will also eliminate some people out of the market for shure

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-27 Thread Jason Wong
On Friday 27 August 2004 09:00, Gunter Sammet wrote: Yes. All my local stuff does work like a charm. I'm working with osCommerce shopping cart and all my local installs work just fine. And as I said, when I compare it with a local install, the files don't show anything unusual. Based on the

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-27 Thread Jason Wong
On Friday 27 August 2004 12:40, Curt Zirzow wrote: * Thus wrote John Nichel: John Holmes wrote: Curt Zirzow wrote: Top posting is like this. How about middle posting? Please don't top post. Hehe.. thats pretty good :) Lets see if someone can decipher this top post to a context

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread Brent Clements
Again I point out that this certification starts to make PHP valid in the commercial world. I completely agree with everyone that certs usually aren't worth the paper they are printed on when it comes to technical expertise but to a PHB or client who doesn't know any better except buzz words, a

Re: [PHP] string filtering

2004-08-27 Thread Aaron (phpc)
John W. Holmes wrote: To detect them: if(preg_match('/[^0-9a-zA-Z]/',$string)) { echo 'bad characters present'; } else { echo 'string okay'; } or (faster): if (!ctype_alnum($string)){ echo 'bad characters present'; } else { echo 'string okay'; } Aaron -- PHP General Mailing List

Re: [PHP] Popup with recent IE updates

2004-08-27 Thread Lester Caine
Jason Wong wrote: On Friday 27 August 2004 01:28, Lester Caine wrote: [yada yada] Loading Mozilla on the problem machines gives a clean page with the correct pop-up's so I simply don't know what to try next. When this sort of thing was happening during development it was usually tracked to faulty

Re: [PHP] Popup with recent IE updates

2004-08-27 Thread Lester Caine
Miles Thompson wrote: Most likely this is a consequence of Windows XP SP2, one of its side effects is blocking of popups in IE. Strange, like smokers becoming non-smokers. No SP2 stuff added - and unlikely to be added This problem is affecting a couple of W2k machines as well Check Sunbelt

[PHP] backslashes

2004-08-27 Thread Ryan Schefke
Hi, I have a jump box that sends the following value to the page. option value=?PHP echo 'giftprint.php?passid='.$passid.'sort=WHERE thankyou=\'Not Sent\' ORDER BY cash ASC';?Show Thank You Notes quot;Not Sentquot;/option Then, the below query is run: $query = SELECT

Re: [PHP] backslashes

2004-08-27 Thread Jason Wong
On Friday 27 August 2004 15:31, Ryan Schefke wrote: First of all: Using unsanitised data from forms and links is a VERY bad thing. option value=?PHP echo 'giftprint.php?passid='.$passid.'sort=WHERE thankyou=\'Not Sent\' ORDER BY cash ASC';?Show Thank You Notes quot;Not

[PHP] changed number_format function

2004-08-27 Thread Ma SivaKumar
A copy of php manual I downloaded a year back has the following about the behaviour of number_format function ?php $number = 1234.56; // english notation (default) $english_format_number = number_format($number); // 1,234.56 ? The latest on-line version is changed as below ?php $number =

Re: [PHP] changed number_format function

2004-08-27 Thread Ramil Sagum
On Fri, 27 Aug 2004 14:06:56 +0530, Ma SivaKumar [EMAIL PROTECTED] wrote: The latest on-line version is changed as below ?php $number = 1234.56; // english notation (default) $english_format_number = number_format($number); // 1,234 What is the best way to format numbers to put only

[PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Torsten Roehr
Andre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Someone now how to paste values for one pop-up. And this pop-up is one frame I am doing like this to open pop-up echoa href=\#\ class=\textblack\

RE: [PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Andre
But don't work that's is my problem, And I think this don't work because the pop-up window is a frame Help?? -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 26 de Agosto de 2004 23:18 To: [EMAIL PROTECTED] Subject: [PHP] Re: paste values for one

Re: [PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Torsten Roehr
Andre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] But don't work that's is my problem, And I think this don't work because the pop-up window is a frame Help?? Have you seen my other post from two minutes ago? You mean your popup contains a frameset? Then post your frameset code

[PHP] parse_ini_file problem

2004-08-27 Thread Vladimir
Hello folks! I have an ini file that looks like this: index.rent=Rent index.faq=FAQ index.contact=Contact index.links=Links then I want to read this file: $english_messages = parse_ini_file('conf/english.ini'); print_r($english_messages); What I see is: Array ( [index.rent] = Rent ) And that's

RE: [PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Andre
Yes and don't work. The code of the frameset html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head frameset rows=*,80 frameborder=NO border=0 framespacing=0 frame src=imprimir_factura.php name=mainFrame frame src=bot.php

[PHP] Include if file exists?

2004-08-27 Thread Jay
Hi! Is there a ready to use PHP function for including ONLY if the file exists? I tried it like this: [main.php] include_once(lib.php); later includeIf(somefile.php); [lib.php] function includeIf($filename) { if (!file_exists($filename)) {

Re: [PHP] Popup with recent IE updates

2004-08-27 Thread Lester Caine
Lester Caine wrote: Miles Thompson wrote: Most likely this is a consequence of Windows XP SP2, one of its side effects is blocking of popups in IE. Strange, like smokers becoming non-smokers. No SP2 stuff added - and unlikely to be added This problem is affecting a couple of W2k machines as well

Re: [PHP] Problem with sessions

2004-08-27 Thread gregosh
you sure the cookie is being set? try this header(Location: http://; . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/b.php?'.SID); I had tried this before - no result. The cookie is set in the \temp dir where it is intended. And that's

Re: [PHP] Problem with sessions

2004-08-27 Thread Andre Dubuc
Hi, Looking at your code, I noticed that either you're missing the closing double quote to close off the Location expression, or you're ending it early with a double quote at http://;. Shouldn't it read: header(Location: http://' . $_SERVER['HTTP_HOST'] ^

Re: [PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Torsten Roehr
Andre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes and don't work. The code of the frameset html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head frameset rows=*,80 frameborder=NO border=0 framespacing=0 frame

Re: [PHP] Include if file exists?

2004-08-27 Thread Matt M.
On Fri, 27 Aug 2004 12:16:32 +0200, Jay [EMAIL PROTECTED] wrote: Hi! Is there a ready to use PHP function for including ONLY if the file exists? I tried it like this: [main.php] include_once(lib.php); .later includeIf(somefile.php); [lib.php] function includeIf($filename) {

Re: [PHP] parse_ini_file problem

2004-08-27 Thread Ramil Sagum
On Fri, 27 Aug 2004 12:54:14 +0300, Vladimir [EMAIL PROTECTED] wrote: Hello folks! I have an ini file that looks like this: index.rent=Rent index.faq=FAQ index.contact=Contact index.links=Links then I want to read this file: $english_messages = parse_ini_file('conf/english.ini');

RE: [PHP] Re: paste values for one pop-up. And this pop-up is one frame

2004-08-27 Thread Andre
Thank work. Regards, André Caridade -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 27 de Agosto de 2004 13:42 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: paste values for one pop-up. And this pop-up is one frame Andre [EMAIL PROTECTED] wrote in

Re: [PHP] Include if file exists?

2004-08-27 Thread John Nichel
Jay wrote: Hi! Is there a ready to use PHP function for including ONLY if the file exists? I tried it like this: [main.php] include_once(lib.php); later includeIf(somefile.php); [lib.php] function includeIf($filename) { if (!file_exists($filename)) { include_once($filename);

RE: [PHP] PID needed to hammer squid

2004-08-27 Thread Thijs Lensselink
To get the pid id: ?php exec(cat [path to pid file], $pid); echo $pid[0]; ? raditha dissanayake wrote: Mário Gamito wrote: Hi, I need to kill (squid) -D pidof (squid) -D gives an error :( man pidof we have nowed moved to off topic territory. -- Raditha Dissanayake.

RE: [PHP] PHP Oficial Certification

2004-08-27 Thread Dan Joseph
Hmm... there are no practice exams posted... I just saw that: http://www.phparch.com/cert/ -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread John Holmes
From: Dan Joseph [EMAIL PROTECTED] I just saw that: http://www.phparch.com/cert/ Hmm... there are no practice exams posted... See here: http://www.phparch.com/discuss/index.php/t/710/235/ ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP Oficial Certification

2004-08-27 Thread Dan Joseph
Hi, Know what helps me get php jobs? A resume that details almost 6 years of php programming. That's what most employers want. Certifications are a lot of times looked at as watered down, and over-issued. A lot of companies also use them as training pieces with their internal staff,

RE: [PHP] PHP Oficial Certification OT

2004-08-27 Thread Jay Blanchard
[snip] ...certification stuff... [/snip] I am certified. So they tell me. And Nichel too. Probably Holmes. Defiinitely Wong, maybe wight. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread John Nichel
Dan Joseph wrote: Hi, Know what helps me get php jobs? A resume that details almost 6 years of php programming. That's what most employers want. Certifications are a lot of times looked at as watered down, and over-issued. A lot of companies also use them as training pieces with their

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread John Nichel
John Holmes wrote: From: Dan Joseph [EMAIL PROTECTED] I just saw that: http://www.phparch.com/cert/ Hmm... there are no practice exams posted... See here: http://www.phparch.com/discuss/index.php/t/710/235/ ---John Holmes... Cool...I was wondering why we haven't seen him around lately.

Re: [PHP] PHP Oficial Certification OT

2004-08-27 Thread John Holmes
From: Jay Blanchard [EMAIL PROTECTED] Probably Holmes. Not officially. Might look into it, though, but this is really just a hobby for me. :) I think that if you've been on the list for over a year, you should be certified automatically. heh... ---John Holmes... -- PHP General Mailing List

Re: [PHP] PHP Oficial Certification OT

2004-08-27 Thread John Nichel
Jay Blanchard wrote: [snip] ...certification stuff... [/snip] I am certified. So they tell me. And Nichel too. Probably Holmes. Defiinitely Wong, maybe wight. I don't think *THAT* 'cert' will help us in the job market. ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP

RE: [PHP] PHP Oficial Certification OT

2004-08-27 Thread Jay Blanchard
[snip] Probably Holmes. Not officially. Might look into it, though, but this is really just a hobby for me. :) I think that if you've been on the list for over a year, you should be certified automatically. heh... [/snip] I can see it now If you have replied 'RTFM more than once a week,

RE: [PHP] Setcookie variable use issue after moving php app to di fferent server

2004-08-27 Thread Shapiro, David
Local/master both still show off. I tried using the .htaccess trick, and that did not work either. I have tried now to use the extract($_COOKIE) and extract($_POST) option in the scripts to get around this for now, which seems to be working, but I need to consequently do a lot of testing now to

Re: [PHP] Keep from using cache

2004-08-27 Thread Michal Migurski
Here's the problem... After a deletion, when the question list page is reloaded, the browser uses the cached version of the page and the question which was just deleted is still displayed. If you refresh the page, the question disappears. So, I know that the deletion is working. I just

Re: [PHP] PHP Oficial Certification OT

2004-08-27 Thread John Nichel
John Holmes wrote: From: Jay Blanchard [EMAIL PROTECTED] Probably Holmes. Not officially. Might look into it, though, but this is really just a hobby for me. :) I think that if you've been on the list for over a year, you should be certified automatically. heh... ---John Holmes... WooHooI

RE: [PHP] Setcookie variable use issue after moving php app to di fferent server

2004-08-27 Thread Shapiro, David
Thanks for the info. I checked the file and it does not have much in it. I am working if I am not enabling this in php.ini correctly. I see [Security, Performance] list after the example. To enable, I just copied the example line, removed the [Security, Performance] stuff from the line, and

Re: [PHP] changed number_format function

2004-08-27 Thread Justin Patrin
On Fri, 27 Aug 2004 14:06:56 +0530, Ma SivaKumar [EMAIL PROTECTED] wrote: A copy of php manual I downloaded a year back has the following about the behaviour of number_format function ?php $number = 1234.56; // english notation (default) $english_format_number = number_format($number);

[PHP] Newbie Question: DHTML client Http Post to PHP running under Apache/Win XP

2004-08-27 Thread Bestman4unowwa
Does the PHP script have to be already running to communicate send a HTTP Post varibale to it (from a DHTML client browser)? Or can it initiate the HTTP Post fron the client that activates the PHP script? I know this must seems simple but I'm having troble receiving these varible from my

[PHP] Re: crypt()

2004-08-27 Thread Jasper Howard
you can use md5() which will create an encrypted string that cannot be encrypted, or you can use something like base64_encode() which has the inverse base64_decode, that way you have an encrypted string in the database but if for example a user loses their password, instead of setting a new one,

Re: [PHP] changed number_format function

2004-08-27 Thread Marek Kilimajer
Justin Patrin wrote: number_format($number, 2); Does not work. Desired results: 1000 should return 1,000 1000.5 should return 1,000.5 1000.25 should return 1,000.25 so on. Actual results: 1000= 1,000.00 1000.5 = 1,000.50 1000.25 = 1,000.25 -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: A bit stuck with $$

2004-08-27 Thread Jasper Howard
i found this a bit confusing, why were you putting $$ infront of a variable instead of just $? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/

Re: [PHP] Newbie Question: DHTML client Http Post to PHP running under Apache/Win XP

2004-08-27 Thread John Holmes
From: [EMAIL PROTECTED] Does the PHP script have to be already running to communicate send a HTTP Post varibale to it (from a DHTML client browser)? Or can it initiate the HTTP Post fron the client that activates the PHP script? Just like any other web page, the POST request causes the web server

[PHP] Re: crypt()

2004-08-27 Thread M. Sokolewicz
Jasper Howard wrote: you can use md5() which will create an encrypted string that's not entirely true, all it will do is compute the md5-hash of that string. Which is *always* a 32-character hexadecimal number (though before PHP5.0.0 it was returned in a different way). The big difference

[PHP] Curious problem overloading derived ObjectArray and __toString

2004-08-27 Thread Stefan
hi, I extended ArrayObject (SPL) to a new class. Let's call it ExtObjectArray. ExtArrayObject is quiet tiny, only with some simple functions. One is called getData() and serves some string data. Now I've overloaded the class using __toString() ... public function __toString() {

[PHP] Re: crypt()

2004-08-27 Thread Jasper Howard
good to know -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- M. Sokolewicz [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Solved: Curious problem overloading derived ObjectArray and __toString

2004-08-27 Thread Stefan
m'kay ... already got it. The routine was disabled due some internal problems. It should be reintroduced in PHP 5.1. *wait* http://www.rb21.com/news/index.php/m/115763/0/#msg_115763 Stefan wrote: hi, I extended ArrayObject (SPL) to a new class. Let's call it ExtObjectArray. ExtArrayObject is

Re: [PHP] PHP: Undefined Variables Error Message

2004-08-27 Thread Michal Migurski
Hello all. I just finished placing a new server in production and PHP is not working. I am getting undefined variable messages when trying to submit php based forms. Register Globals is on in php.ini, but it still does not work. I have even tried copying a known-good php.ini from another

[PHP] Download Script

2004-08-27 Thread Aaron Todd
I've created a download script that works quite nicely. The only issue with it is that when I download a file where the file name is like filename v1.0.2.1.exe there is some extra characters added into the name when it is downloaded. So that file will be filename v1[1].0.2.1.exe. I am

[PHP] PHP Version for API 20001222

2004-08-27 Thread Cole S. Ashcraft
What PHP version had the API number 20001222 ? Thanks Cole -- This message has been scanned for viruses and dangerous content by MailScanner on mail.ashcraftfamily.net, and is believed to be clean. Please report any deviance from this condition immediately to the AFN Administrator at [EMAIL

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-27 Thread Gunter Sammet
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Friday 27 August 2004 09:00, Gunter Sammet wrote: Yes. All my local stuff does work like a charm. I'm working with osCommerce shopping cart and all my local installs work just fine. And as I said, when I compare it

RE: [PHP] Download Script

2004-08-27 Thread Ivo Pletikosic
I am wondering if this is my headers that are doing this, but I really dont know. I think its an IE or Windows behavior and what causes it is the multiple dots in the filename. I resorted to naming our downloads filename-v1_0_2_1.exe -Original Message- From: Aaron Todd

Re: [PHP] sharing records with assigned users

2004-08-27 Thread PHP Junkie
Ave, Hey thanks a lot. I'm reading up on those. I appreciate this. Thanks. On 8/26/04 10:07 PM, David Bevan [EMAIL PROTECTED] wrote: On Thu, 2004-08-26 at 13:49, PHP Junkie wrote: Ave, Jay.. Firstly thanks a lot for the tips. I appreciate that and in fact I do try to go methodically

Re: [PHP] sharing records with assigned users

2004-08-27 Thread PHP Junkie
Ave, Thanks a ton... And this is exactly what I figured I need to do. Someone else also wrote in something similar which prompted me to go in this direction. It's working out now by creating an additional table that maps the users records through ID and holds information on who is allowed

[PHP] Re: Download Script

2004-08-27 Thread Jasper Howard
When I created a download script a couple weeks ago I used readfile($filename) instead of fread() and didn't get anything like what you're getting. [snippet] header(Content-type: $type); header('Content-Disposition: attachment; filename='.$file_name.''); readfile($dfile); [/snippet] NOTE:

Re: [PHP] PHP Version for API 20001222

2004-08-27 Thread Andre Dubuc
PHP 4.0.6-6.2mdk On Friday 27 August 2004 02:45 pm, Cole S. Ashcraft wrote: What PHP version had the API number 20001222 ? Thanks Cole -- This message has been scanned for viruses and dangerous content by MailScanner on mail.ashcraftfamily.net, and is believed to be clean. Please

Re: [PHP] PHP Version for API 20001222

2004-08-27 Thread Cole S. Ashcraft
Thanks! Andre Dubuc wrote: PHP 4.0.6-6.2mdk On Friday 27 August 2004 02:45 pm, Cole S. Ashcraft wrote: What PHP version had the API number 20001222 ? Thanks Cole -- This message has been scanned for viruses and dangerous content by MailScanner on mail.ashcraftfamily.net, and is believed to be

[PHP] Running system command or exec as differnet Users

2004-08-27 Thread Paul Danko
Is it possible to run a command on the system using the system() or exec() commands run as a specific user if I have the username and password? i.e. [EMAIL PROTECTED]su userNo1 [EMAIL PROTECTED]/home/server/executeScript all in a php system() or exec() call.. Thanks! -Paul

[PHP] Re: Download Script

2004-08-27 Thread Aaron Todd
Were you trying to download any files in the format filename v1.0.2.0.exe I just tried using readfile and got the same results. Aaron Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When I created a download script a couple weeks ago I used readfile($filename) instead

[PHP] Re: Download Script

2004-08-27 Thread Jasper Howard
yeah, but images with filenames something like this - cool_image v2.5.443.jpg -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/

[PHP] Sessions session_start() my problem

2004-08-27 Thread Pahlevanzadeh Mohsen
Dears,I have 3 files. k.php : ? session_start(); $S_userk=$HTTP_POST_VARS['u']; $S_pass=$HTTP_POST_VARS['p']; //echo $S_pass; session_register('S_userk'); session_register('S_passk'); include 'http://1.1.1.1/membership/login.php?g=0'; ? login.php: define(HOST,localhost);

[PHP] schemaValidate()

2004-08-27 Thread Greg Beaver
Hi, I'm trying to design a new validation method for an xml parsing package that will be ported to PHP5. I've gotten schemaValidate() to work successfully, but the error messages are nearly useless. If an extra element is found inside another, I get a message like: Element channel content

[PHP] Re: Sessions session_start() my problem

2004-08-27 Thread Jasper Howard
that was a bit confusing, but it looks like you call session_start() more than once in a script. You only need to call it once, and you need to call it before any headers get sent, at the top of the script is a good place. If you're scripts are already setup like that just ignore me. Oh, also, if

Re: [PHP] Re: Sessions session_start() my problem

2004-08-27 Thread Pahlevanzadeh Mohsen
I have deleted session_start() at login.php Thus i have 1 session_start() But i receive them yet. Yours,Mohsen --- Jasper Howard [EMAIL PROTECTED] wrote: that was a bit confusing, but it looks like you call session_start() more than once in a script. You only need to call it once, and you

[PHP] Browser back button

2004-08-27 Thread Michael Gale
Hello, I am sure this has been asked more then a few times but ... I have a web site where almost every page is dynamically created. So if at some point in the site if you hit your browsers back button a popup window occurs and asks if you want to resubmit the data. Upon clicking yes

Re: [PHP] Re: Sessions session_start() my problem

2004-08-27 Thread Jasper Howard
is this php script at the top of the page, there is nothing before it? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ --

Re: [PHP] Browser back button

2004-08-27 Thread Greg Donald
On Fri, 2004-08-27 at 16:20, Michael Gale wrote: Hello, I am sure this has been asked more then a few times but ... So why not search the archives then? :) I have a web site where almost every page is dynamically created. So if at some point in the site if you hit your browsers

Re: [PHP] Browser back button

2004-08-27 Thread Matthew Sims
Hello, I am sure this has been asked more then a few times but ... I have a web site where almost every page is dynamically created. So if at some point in the site if you hit your browsers back button a popup window occurs and asks if you want to resubmit the data. Upon clicking yes

[PHP] Dynamic Function with return?

2004-08-27 Thread bskolb
Sample Code: // ?PHP // version 4.3.6 function testFunction($foo) { return $foo==TEST; } function wrapper($foofunc, $foovar) { return eval(return $foofunc($foovar);); } echo wrapper(testFunction, TEST); ? // This code

Re: [PHP] changed number_format function

2004-08-27 Thread Justin Patrin
On Fri, 27 Aug 2004 18:48:16 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: Justin Patrin wrote: number_format($number, 2); Does not work. Desired results: 1000 should return 1,000 1000.5 should return 1,000.5 1000.25 should return 1,000.25 so on. Actual results: 1000=

RE: [PHP] Browser back button

2004-08-27 Thread Vail, Warren
I struggled with this one as well and the solution is quite simple; 1. Every PHP module that is reached via the action field in a form where the method is POST (most of mine are) never outputs any html except a http redirect (it will edit values, update the database, save session data, then does

Re: [PHP] Dynamic Function with return?

2004-08-27 Thread Pahlevanzadeh Mohsen
1 way is here.You can use object OOP. --- bskolb [EMAIL PROTECTED] wrote: Sample Code: // ?PHP // version 4.3.6 function testFunction($foo) { return $foo==TEST; } function wrapper($foofunc, $foovar) { return eval(return $foofunc($foovar););

[PHP] SOLVED RE: [PHP] Dynamic Function with return?

2004-08-27 Thread bskolb
Thanks for the quick reply, I wasn't aware that passing a variable for the object would work. New code: class testClass { function testFunction($foo) { return $foo==TEST; } } $testObj = new testClass; $testFunc = testFunction; echo $testObj-$testFunc(TEST);

Re: [PHP] Dynamic Function with return?

2004-08-27 Thread Jennifer Goodie
-Original Message- From: bskolb [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 3:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Dynamic Function with return? Sample Code: // ?PHP // version 4.3.6 function testFunction($foo) { return

[PHP] an error before register a session

2004-08-27 Thread Pahlevanzadeh Mohsen
Dears,When i run rm -rf /tmp/sess_* ,It are meaning that i clean every session. When i want to my program,I receive following warning : Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not

[PHP] Re: Need Help for Session

2004-08-27 Thread S. Kang
Afzal Hussain ) wrote: Sir, I am afzal hussain from bangladesh. Acually i am getting some problem using session in php. This is the sample code that i have written, session_start(); //$vbl=This variable is registered; //session_register('vbl'); $_SESSION['vb1'] = This variable is registered;

Re: [PHP] Re: Need Help for Session

2004-08-27 Thread Pahlevanzadeh Mohsen
1.You must call session_start before making a HTML for client. 2.Please use if (!session_is_registered('vb1')) session_register('vb1'); --- S. Kang [EMAIL PROTECTED] wrote: Afzal Hussain ) wrote: Sir, I am afzal hussain from bangladesh. Acually i am getting

[PHP] PHP/MySQL fatal error

2004-08-27 Thread gc
Hi all, I'm Gene Candelaria and I'm a PHP and MySQL newbie. I have a feeling a lot of you have seen this before. I'm teaching myself PHP/MySQL trying to setup a guestbook. I'm running latest versions of Apache, PHP and MySql on my WIN2k machine. I have them working, except, I get the messages:

[PHP] attach an ICO file to a text file...then downloading to the user

2004-08-27 Thread grahama
is it possible to add a custom icon to a text file on the server side..and then download the completed file to the user's desktop would you put some type of AddType into the htacccess folder to do this ? like AddType image/x-icon .ico can php do something like this ? many thanks g

Re: [PHP] PHP Oficial Certification OT

2004-08-27 Thread Curt Zirzow
* Thus wrote John Nichel: John Holmes wrote: From: Jay Blanchard [EMAIL PROTECTED] Probably Holmes. Not officially. Might look into it, though, but this is really just a hobby for me. :) I think that if you've been on the list for over a year, you should be certified