Re: [PHP] Cleaning up my messy code

2003-09-30 Thread Cristian Lavaque
olinux wrote: Try out smarty (its quite simple). You will get some ideas on how to structure. I learned that its *ok* to have some *display logic* in your templates (i.e. repeating rows). (yes, some will adamantly disagree) Another thing i learned when using smarty is I like using arrays to

Re: [PHP] Initial Value for Input Box

2003-09-30 Thread Cristian Lavaque
Matt Palermo wrote: I have a form that a user can fill out. In the text input field I allow them to insert HTML tags with their input data. They can then submit the form for processing. The problem is that later on when they go to edit their inputs (I initialize the text input with their

RE: [PHP] Initial Value for Input Box

2003-09-30 Thread Martin Towell
Hiya, Replace with quot; Martin -Original Message- From: Cristian Lavaque [mailto:[EMAIL PROTECTED] Sent: Tuesday, 30 September 2003 5:09 PM To: [PHP] Subject: Re: [PHP] Initial Value for Input Box Matt Palermo wrote: I have a form that a user can fill out. In the text input field

[PHP] PNGs PHP feedback

2003-09-30 Thread Joe Harman
Hello, I am looking for some guidance... I am using PHP to make dynamic buttons... Is the PNG image format a pretty safe thing to go with... Standard wise? Thanks for your input. Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PNGs PHP feedback

2003-09-30 Thread Eugene Lee
On Tue, Sep 30, 2003 at 02:40:42AM -0400, Joe Harman wrote: : : I am looking for some guidance... I am using PHP to make dynamic : buttons... Is the PNG image format a pretty safe thing to go with... : Standard wise? PNG support in M$ IE is still shaky. -- PHP General Mailing List

Re: [PHP] captcha WAS Please visit my php program

2003-09-30 Thread Veniamin Goldin
Do somebody has any snipet for this stuff ? - Original Message - From: Ryan A [EMAIL PROTECTED] To: Chris W. Parker [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 1:46 AM Subject: Re: [PHP] captcha WAS Please visit my php program Hey, /* Exactly what is

[PHP] function mail()

2003-09-30 Thread hiaer
I use mail() function in php, but there's no living mail from my system. MUST be mail() function turn on in some special place (ini file, ...) ?? THANKS. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Form Actions

2003-09-30 Thread Shaun
Hi, I have a number of forms on my site, and each form can be accessed from a number of different pages. Can anyone suggest a way I can monitor this so that when the submit button is pressed the user is returned to the page they were on before. This is also complicated by the fact that I have a

RE: [PHP] How many Mondays in a month?

2003-09-30 Thread Greg Wiley
-Original Message- From: Cristian Lavaque [mailto:[EMAIL PROTECTED] You could also put the input values in dropdown menus, at least day and month. That way you make sure the input to the funtion is correct everytime. The code is just a function it's not a page in itself. I use

RE: [PHP] Form Actions

2003-09-30 Thread Greg Wiley
-Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Hi, I have a number of forms on my site, and each form can be accessed from a number of different pages. Can anyone suggest a way I can monitor this so that when the submit button is pressed the user is returned to the

Re: [PHP] date() is hours behind

2003-09-30 Thread PHP Webmaster
Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well I meant just putenv('TZ=US/Eastern'); But you get the idea. -- Jon Kriek http://phpfreaks.com Jon Kriek [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] See the putenv() function. For example to get

RE: [PHP] $_SESSION stuffs that come with php.ini

2003-09-30 Thread esctoday.com | Wouter van Vliet
Hmm .. I haven't been on the list for a while so it took me some time to answer ;).. Anyways, what I believe is a possible cause for your problem is that there simply ain't no session started. Maybe the always start session before the php page request setting was On if not configured, but is now

[PHP] Output data repeatedly more than once

2003-09-30 Thread irinchiang
Hi all, I am creating a simple receipt system whereby user will enter relevant info via a text form and using echo method to output and print the receipt data. I've used CSS as the front-end . My question is, is it possible to output the receipt information more than once on a single

RE: [PHP] Checking mail with `mail`

2003-09-30 Thread esctoday.com | Wouter van Vliet
By advising you something like this 2 ?php 3 exec('echo p 1 | mail', $Lines); 4 5 foreach($Lines as $Line) { 6 print ' '.$Line.\n; 7 }; 8 ? Would I apply for the bonus points? It would generate output similar to Mail version 8.1 6/6/93.

[PHP] Page cannot be displayed

2003-09-30 Thread Olivier Simah
Hi, I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under Windows XP. When I try to see a HTML pages, everything is ok but when it comes to PHP pages nothing works I have this message with IE : The page cannot be displayed with Opera 7, Mozilla : nothing HELP Thanks Olivier --

Re: [PHP] Page cannot be displayed

2003-09-30 Thread Martin Clarke
On Tue, Sep 30, 2003 at 11:56:23AM +0200, Olivier Simah wrote: Hi, I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under Windows XP. When I try to see a HTML pages, everything is ok but when it comes to PHP pages nothing works I have this message with IE : The page cannot be

Re: [PHP] captcha WAS Please visit my php program

2003-09-30 Thread David T-G
Hi, all -- ...and then Ryan A said... % % Hey, Hiya! % % /* % Exactly what is the purpose of this? Let me clarify. I know that it's ... % */ % Its more of a hassle and requires the entity who is submitting the form to A hassle is right. What about your visitors who use a text-only browser

Re: [PHP] Page cannot be displayed

2003-09-30 Thread Olivier Simah
The problem is that I do not have the log right now, I send you an answer tonight Thanks Martin Clarke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, Sep 30, 2003 at 11:56:23AM +0200, Olivier Simah wrote: Hi, I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a

[PHP] PHP Imagemagick

2003-09-30 Thread Cameron Metzke
i have a script where people upload an image it is then renamed and is supposed to be cripped according to the values they submit but i cant seem to get it to crop it uploads and is renamed fine though. also i wish to use a static name so when another picture is uploaded the old one is overwritten

Re: [PHP] PHP Imagemagick

2003-09-30 Thread David T-G
Cameron -- ...and then Cameron Metzke said... % ... % a static name so when another picture is uploaded the old one is overwritten % that is why the input path and output path is the same. % -Code-- % exec($path_imagemagick.convert -crop 0x100+0+0 $imagepath.$filename %

[PHP] Sending parameters

2003-09-30 Thread Shaun
Hi, I need to send the following link view_day.php?mysql_date=2003-09-23user_id=35set_form_actions=truenew_user =yesuser_name=Kate%20Dickielink_text=diarylink_action=availability.php?ne w_user=yesuser_name=Kate%20Dickie. This may seem strange that I have 2 ?'s in the link but the point here is

[PHP] Re: regexp: 'a correctly parenthesized substring advanced'

2003-09-30 Thread Jaaboo
I give an wrong example. Here is a better one ?php $txt = func1($par1, 100 (euro), func2($par2,(c) by nobody)); if (preg_match_all(' / ([a-zA-Z]\w*?) \s* ( \( ( (?.*?)| .*?(?R)* ) \) )+ /x ', $txt, $m)){ print_r($m); } else { echo no match; } echo \n; ? This must result in

Re: [PHP] download queue

2003-09-30 Thread Marek Kilimajer
I would do it this way. Output your files and update bandwith usage: while($out=fread($file, 4096)) { echo $out; UPDATE bandwith_usage SET bandwith_usage = bandwith_usage+1 WHERE second = UNIX_TIMESTAMP() LIMIT 1 if(mysql_affected_rows()==0) { // if this is the first output in this second

Re: [PHP] WebDAV help

2003-09-30 Thread Marek Kilimajer
http://sk.php.net/manual/en/features.file-upload.put-method.php Oscar F wrote: Hello all, I'm having a problem with PHP/WebDAV. Here's my problem: I am working on a system that keeps track of documents. The documents are stores based on document ids, and the filename is saved on the database

[PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
Hi All, I am having problems with fsockopen() and wondered if anyone else has encountered this behaviour. My problem is that when connecting to an invalid domain I cannot trap the errors. I have tried setting a variable then testing the value, which prints a warning to the screen... $sck_handle

Re: [PHP] newbie about passing value

2003-09-30 Thread Marek Kilimajer
register_globals off? What if you hardcode $id=$_GET['id']; ?? Ben Johnson wrote: Hi, Why is the product_details.php is not getting the id value properly. In the URL it is showing id=1 with along with the correction location and file name. But the page is not getting displayed. table

Re: [PHP] Sending parameters

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 18:20, Shaun wrote: I need to send the following link view_day.php?mysql_date=2003-09-23user_id=35set_form_actions=truenew_use r =yesuser_name=Kate%20Dickielink_text=diarylink_action=availability.php?n e w_user=yesuser_name=Kate%20Dickie. This may seem strange

Re: [PHP] download queue

2003-09-30 Thread Marek Kilimajer
25 queries a second? No problem. But you calculations are still wrong: 500 kb/s = 62.5 kB/s 62.5 kB/s * 100 users = 6 250 MB/s 6 250 MB/s / 4 kB (4096 B) = 1562.5 queries per second Well that's too much. At this load 4096 can be increased to 409600, the database load would be only 15.625

[PHP] Re: fsockopen()

2003-09-30 Thread Cameron Metzke
Ima having problems myself with this, i dont seem to get errors when entering an invalid .com or .net name i put it down to verisign hijacking invalid somains?? could this be your problem? Phil Ewington - 43 Plc [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All, I am having

Re: [PHP] Output data repeatedly more than once

2003-09-30 Thread Marek Kilimajer
Yes, you can. But would not it be smarter to increase the number of copies in the print dialog? [EMAIL PROTECTED] wrote: Hi all, I am creating a simple receipt system whereby user will enter relevant info via a text form and using echo method to output and print the receipt data.

Re: [PHP] fsockopen()

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 18:46, Phil Ewington - 43 Plc wrote: I am having problems with fsockopen() and wondered if anyone else has encountered this behaviour. My problem is that when connecting to an invalid domain I cannot trap the errors. Have you checked that it is really an invalid

[PHP] file_exists on different server...

2003-09-30 Thread Tristan . Pretty
I'm referencing an image on a different server, and it keeps changing URL's Very odd, but t get round that, I tried... if (file_exists(http://www.othersite.com/image_1.gif;)) { $image_show=http://www.othersite.com/image_1.gif;; } else {

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi all, I would like to create a dynamic kinda Timetable whereby I can add, del, and modify the data contained in each cell. Besides that, each cell in the table should have its unique colour in which this unique colour can be modified anytime to a different

RE: [PHP] Output data repeatedly more than once

2003-09-30 Thread Jay Blanchard
[snip] My question is, is it possible to output the receipt information more than once on a single page (Browser) as I would need to print out the receipt thrice for the different department as required. [/snip] wrap the output in a for loop for($i = 0; $i 3; $i++){ output receipt }

RE: [PHP] Page cannot be displayed

2003-09-30 Thread Jay Blanchard
[snip] I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under Windows XP. When I try to see a HTML pages, everything is ok but when it comes to PHP pages nothing works I have this message with IE : The page cannot be displayed with Opera 7, Mozilla : nothing [/snip] Did you add

Re: [PHP] Output data repeatedly more than once

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 18:59, Marek Kilimajer wrote: Yes, you can. But would not it be smarter to increase the number of copies in the print dialog? But that would be environmentally unfriendly because it uses more paper ;-) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

Re: [PHP] file_exists on different server...

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 19:00, [EMAIL PROTECTED] wrote: I'm referencing an image on a different server, and it keeps changing URL's Very odd, but t get round that, I tried... if (file_exists(http://www.othersite.com/image_1.gif;)) {

Re: [PHP] file_exists on different server...

2003-09-30 Thread Tristan . Pretty
RTFM? (Sorry, very newbie question) Jason Wong [EMAIL PROTECTED] 30/09/2003 12:26 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Re: [PHP] file_exists on different server... On Tuesday 30 September 2003 19:00, [EMAIL PROTECTED] wrote: I'm referencing an image on

Re: [PHP] Page cannot be displayed

2003-09-30 Thread Burhan Khalid
Olivier Simah wrote: Hi, I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under Windows XP. When I try to see a HTML pages, everything is ok but when it comes to PHP pages nothing works I have this message with IE : The page cannot be displayed with Opera 7, Mozilla : nothing Try

Re: [PHP] Re: regexp: 'a correctly parenthesized substring advanced'

2003-09-30 Thread Marek Kilimajer
Forget regexp and try this function: http://sk.php.net/manual/en/function.token-get-all.php Jaaboo wrote: I give an wrong example. Here is a better one ?php $txt = func1($par1, 100 (euro), func2($par2,(c) by nobody)); if (preg_match_all(' / ([a-zA-Z]\w*?) \s* ( \( ( (?.*?)| .*?(?R)* )

Re: [PHP] function mail()

2003-09-30 Thread Marek Kilimajer
Set SMTP setting in php.ini to the smtp server of your provider (and don't forget to restart web server). [EMAIL PROTECTED] wrote: I use mail() function in php, but there's no living mail from my system. MUST be mail() function turn on in some special place (ini file, ...) ?? THANKS. -- PHP

[PHP] PHP 4.3.3 and IIS

2003-09-30 Thread Michael Kochendoerfer
Hi, does anyone know how to handle file and directory paths on a IIS 5.0 server? Problem is that the server has multi-domain and each domain has an associated 'root' dir below e:\webspaces. So if one uses relative path strings, an opendir() for example will fail. One has to use

Re: [PHP] PHP Imagemagick

2003-09-30 Thread Blue Prawn
% a static name so when another picture is uploaded the old one is overwritten % that is why the input path and output path is the same. % -Code-- % exec($path_imagemagick.convert -crop 0x100+0+0 $imagepath.$filename % $imagepath.$filename); % -End Code--

Re: [PHP] Re: regexp: 'a correctly parenthesized substring advanced'

2003-09-30 Thread Jaaboo
hi marek, thanx for your suggestion. i have tried out the tokenizer but 1. i think its not realy final and can change in the future 2. the tokenizer can only find real php code but i need to find my simplified php code without an ; on the end of an statement for example. so the tokenizer

RE: [PHP] PHP coders spare time [OT}

2003-09-30 Thread Jay Blanchard
[snip] http://zirzow.dyndns.org/html/mlists/php_general/ [/snip] Hey Chris! nice job. Quick question (I tried viewing your source and locating the CSS, but for some reason can't get to it this morning...brain dead). How do you get that nifty sunken box effect in the CSS, and can I borrow that? I

Re: [PHP] Page cannot be displayed

2003-09-30 Thread Olivier Simah
Yes this is done, PHP is installed as a module of Apache Olivier Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under Windows XP. When I try to see a HTML pages, everything is ok but when it comes to

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
Positive, I am deliberately using invalid domains to test how to catch errors when users misspell their domain. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 30 September 2003 12:01 To: [EMAIL PROTECTED] Subject: Re: [PHP] fsockopen() On Tuesday 30 September 2003

[PHP] arrays and php

2003-09-30 Thread Angelo Zanetti
hi I have a table with rows and each row contains a checkbox ( array) and a record. TD of the checkbox: echo(td width=15 bgcolor=#9FD9FFinput type=checkbox name=chkR[] value=. $chkSessionF[$i] ./td); as you can see the array of checkboxes is called chkR. When the user clicks a submit button it

[PHP] An Error Tracking System

2003-09-30 Thread Daryl Meese
Hi all, I have a series of library files written in PHP that other developers use by including them into their code. I have also written an error handling system that emails me if certain kinds of problems arise. The problem, I only want to receive an email if the problem occurred in one of my

[PHP] Re: arrays and php

2003-09-30 Thread pete M
echo td width=\15\ bgcolor=\#9FD9FF\ input type=\checkbox\ name=\chkR[$i]\ value=\$chkSessionF[$i]\/td); might solve the problem pete hi I have a table with rows and each row contains a checkbox ( array) and a record. TD of the checkbox: echo(td width=15 bgcolor=#9FD9FFinput type=checkbox

Re: [PHP] An Error Tracking System

2003-09-30 Thread Burhan Khalid
Daryl Meese wrote: [ snip ] The problem, I only want to receive an email if the problem occurred in one of my library files and want the other developer to see the error if it is in their file. You can use some php constants, such as __FILE__ and __FUNCTION__ to narrow down when an email is

Re: [PHP] An Error Tracking System

2003-09-30 Thread Marek Kilimajer
debug_backtrace() generates a PHP backtrace and returns this information as an associative array. You can use it to find out where the error ocured. Daryl Meese wrote: Hi all, I have a series of library files written in PHP that other developers use by including them into their code. I have

Re: [PHP] file_exists on different server...

2003-09-30 Thread David T-G
Tristan -- ...and then [EMAIL PROTECTED] said... % % RTFM? % (Sorry, very newbie question) Sort of, yes :-) See The Jargon File at http://catb.org/esr/jargon/ or jump straight to How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html for not only a

[PHP] Re: Cleaning up my messy code

2003-09-30 Thread rush
Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm not looking for an IDE or code generator so much as some practical advice for organization and framework when developing a larger app. I know of PHP Fusebox, having programmed with Cold Fusion fusebox for a while, but it seems

[PHP] Avoiding Warning - Page Expired

2003-09-30 Thread Ed Curtis
Is there any way to avoid having this happen using php if someone sits on a page too long and clicks the back button to go back to a form they have filled out and not having the values in a session? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread David T-G
Marek, et al -- Please excuse this off-topic post. I've tried to ask with a fresh message but it never seems to appear... ...and then Marek Kilimajer said... % ... % If you don't want your users to wait for server responce each time they % touch something, use javascript. % % select

Re: [PHP] Avoiding Warning - Page Expired

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 12:10:10 AM, you wrote: EC Is there any way to avoid having this happen using php if someone sits EC on a page too long and clicks the back button to go back to a form they EC have filled out and not having the values in a session? EC Thanks, EC Ed To avoid

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Ray Hunter
I am putting together a web site with graphics from the artist and I need to learn how to change the image when I hover over it. Can you recommend a good javascript list or resource, particularly for someone who doesn't want to learn a lot of javascript? I have not found a great website

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Marek Kilimajer
If both images have the same size you don't even need javascript: style #mydiv { background-image : url(http://domain.org/image1.jpg); background-repeat : no-repeat; width : 200px; height : 120px; } #mydiv:hover { background-image :

[PHP] pdf question

2003-09-30 Thread Floyd Baker
Hello... I have created a routine which outputs a pdf file of 'data only'. It is to be printed onto a pdf form which I obtain elsewhere. At present we are printing the blank form. Then placing it into the paper tray in order to print the data file to it. I would like to cause the data and

Re: [PHP] fsockopen()

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 20:39, Phil Ewington - 43 Plc wrote: Positive, I am deliberately using invalid domains to test how to catch errors when users misspell their domain. Did you read that article (or are you aware of what it is about)? And what invalid domains have you tried? --

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread David T-G
Marek, et al -- ...and then Marek Kilimajer said... % % If both images have the same size you don't even need javascript: Ooooh! Yay! That's what I *really* wanted, but I was told it couldn't be done! % style % #mydiv { ... % #mydiv:hover { % background-image :

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread David T-G
Ray, et al -- ...and then Ray Hunter said... % % a good javascript list or resource, particularly for someone who doesn't % want to learn a lot of javascript? % % I have not found a great website however, i have tons of success with % group comp.lang.javascript. They have anwser all of my

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Marek Kilimajer
David T-G wrote: Hmmm... Sounds like I'll have to have a div definition for each of my tabs (about nine), right? Still, it might be worth it if I managed to avoid javascript :-) It does not have to be a div, it can be almost any element. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Q on setlocale...

2003-09-30 Thread jsWalter
Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Sunday, September 28, 2003, 5:39:53 PM, you wrote: j I found this function, setlocale... j now, is there a way to GET the LOCALE setting of a machine? j Walter call setlocale with 0 (zero or NULL) as the second

Re: [PHP] captcha WAS Please visit my php program

2003-09-30 Thread Chris Shiflett
--- David T-G [EMAIL PROTECTED] wrote: A hassle is right. What about your visitors who use a text-only browser (or surf with images turned off) or who depend on text-to-speech readers? This sort of thing is, IMNSHO, unnecessary and the wrong approach; it makes the web harder to use without

RE: [PHP] Cleaning up my messy code

2003-09-30 Thread Didier McGillis
I can understand that. When I was a young coder, just fresh out of high school going to school for Sport Management, btw I believe and have stress to the education board that I sit on for high school and trade school tech programs that they not teach specifics about a certain language but that

Re[2]: [PHP] Q on setlocale...

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 1:25:09 AM, you wrote: j returns the current setting j Thanks Tom... j Now, if I understand this properly, j This should return French_France... jsetlocale (LC_ALL, 'fr_FR'); jecho setlocale (LC_ALL, ''); j and this English_ Great Britain j

Re: [PHP] captcha WAS Please visit my php program

2003-09-30 Thread David T-G
Chris, et al -- ...and then Chris Shiflett said... % % --- David T-G [EMAIL PROTECTED] wrote: % A hassle is right. What about your visitors who use a text-only ... % The form should be designed correctly and safely in the first % place. % % That's a valid complaint, but I fail to see how a

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
Sorry Jason, I did read the article but must have been away with the fairies for a moment. I was testing domains that are complete rubbish but they were all .com and .net so yes you were right and I am a complete fool ;o). Now getting an error message 'No such file or directory' when testing on

Re: [PHP] PHP coders spare time [OT}

2003-09-30 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: I'm on message 163194 and counting down to zero at this point :) Added a little person- month summary too. Awesome. I think this is the best aggregation of this mailing list anyone has bothered to make. Nice job. I've posted more than the two

[PHP] Session data is lost

2003-09-30 Thread Harald Kürsten
Hi. In my script I start a session, register certain variables and redirect to the next page. The session file is written to /tmp, but contains no data ! Any idea ? Thanx for help, Harald -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS,

[PHP] Re: Session data is lost

2003-09-30 Thread Gal
please paste an example of the 2 pages Harald Kürsten wrote: Hi. In my script I start a session, register certain variables and redirect to the next page. The session file is written to /tmp, but contains no data ! Any idea ? Thanx for help, Harald -- PHP General Mailing List

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Angelo Zanetti mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 5:43 AM said: hi I have a table with rows and each row contains a checkbox ( array) and a record. TD of the checkbox: echo(td width=15 bgcolor=#9FD9FFinput type=checkbox name=chkR[] value=. $chkSessionF[$i] ./td);

Re: Re[2]: [PHP] Q on setlocale...

2003-09-30 Thread jsWalter
Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Those locales actually have to be available or they will be ignored and that will depend on what type of system your running on. OK, I'm on Windows 2k, and after reading Microsofts docs, I thought it was all there. Maybe

[PHP] if statement

2003-09-30 Thread Steve Buehler
I have an if statement that I would like to make a little bit more generic. This is how the statement looks now. if($k2b==/etc/bind/options.conf.wp || $k2b==/etc/bind/rndc.conf.wp || $k2b==/etc/bind/keys.conf.wp){ do this1 }else{ do this2 } What I would like to do is to have an array

[PHP] storing japanese in mysql (or pgsql)

2003-09-30 Thread Chris W. Parker
(I posted this to another list yesterday without response, so if it looks familiar, that's why.) Hi. I'm working on a small study aid for myself (and anyone else that wants to use it) and I could really use the ability to store Japanese characters in a MySQL or pgsql db. Right now I've created a

[PHP] Php snmp Version

2003-09-30 Thread Lucas Lain
Hi everybody, i was googled a long time looking how to pass the snmp version to the snmpget or snmpwalk functions. The only response was from a guy who proposed to change the source code. I don't fully understand, the code is ready to do snmp v2c querys but it doesn't exists the parameters...

Re: [PHP] captcha WAS Please visit my php program

2003-09-30 Thread Chris Shiflett
--- David T-G [EMAIL PROTECTED] wrote: 1) No, not right now. 2) Let's clarify the example we're considering, since I don't think that the approach will necessarily be the same for all forms. 3) Once that's done, let me think about it :-) The challenge is to create a form that cannot be

Re: [PHP] if statement

2003-09-30 Thread Brad Pauly
Steve Buehler wrote: [snip] $array=(/etc/bind/options.conf.wp,/etc/bind/rndc.conf.wp,/etc/bind/keys.conf.wp); if($k2b==$array){ do this1 }else{ do this2 } You are close. Check out in_array(). http://us4.php.net/in_array if (in_array($kb2, $array)) - Brad -- PHP General Mailing List

Re: [PHP] if statement

2003-09-30 Thread Marek Kilimajer
if(in_array($k2b, $array)) { ... Steve Buehler wrote: I have an if statement that I would like to make a little bit more generic. This is how the statement looks now. if($k2b==/etc/bind/options.conf.wp || $k2b==/etc/bind/rndc.conf.wp || $k2b==/etc/bind/keys.conf.wp){ do this1 }else{

Re: [PHP] if statement

2003-09-30 Thread Curt Zirzow
* Thus wrote Steve Buehler ([EMAIL PROTECTED]): What I would like to do is to have an array earlier in the script of just the items that it is checking for so that it can be more easily changed if I put this out as free or shareware software. Here is what it might look like, but I know

Re[4]: [PHP] Q on setlocale...

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 2:15:10 AM, you wrote: j Tom Rogers [EMAIL PROTECTED] wrote in message j news:[EMAIL PROTECTED] Those locales actually have to be available or they will be ignored and j that will depend on what type of system your running on. j OK, I'm on Windows 2k, and after

Re: [PHP] if statement

2003-09-30 Thread Steve Buehler
To Brad, Marek and Curt (and anybody who responds after this) Thank you so much for your help. This is going to help me out so much in a lot of my scripts. It will sure make them a little.Noa LOT more portable now. Thanks Steve At 11:26 AM 9/30/2003, you wrote: Steve Buehler

[PHP] Setting cookies

2003-09-30 Thread Chris Boget
We have 2 servers, one for development and one for production. The development server is dev.change.wild.net while the production server is change.wild.net. We are using the following code to set the cookie $expire_time = time()+60*60*24*30; // 30 days setcookie( 'this', $this, $expire_time,

Re: [PHP] Session data is lost

2003-09-30 Thread CPT John W. Holmes
From: Harald Kürsten [EMAIL PROTECTED] In my script I start a session, register certain variables and redirect to the next page. The session file is written to /tmp, but contains no data ! Does a simple session example from the Manual work? Some actual code would help here, but try using

Re: [PHP] Setting cookies

2003-09-30 Thread Brad Pauly
Chris Boget wrote: We are accessing the cookie values using $_COOKIE. What appears to be happening is that when we echo the values of the above cookies on dev.change.wild.net, it is displaying the values set for on change.wild.net. Why is that? Because change.wild.net is the primary domain with

Re: [PHP] storing japanese in mysql (or pgsql)

2003-09-30 Thread Gerard Samuel
Not sure about mysql, but with pgsql, if you create your database with utf-8 or equivalent japanese encoding, you should be able to store japanese characters in the db... Chris W. Parker wrote: (I posted this to another list yesterday without response, so if it looks familiar, that's why.) Hi.

Re: [PHP] Setting cookies

2003-09-30 Thread Chris Shiflett
--- Chris Boget [EMAIL PROTECTED] wrote: We have 2 servers, one for development and one for production. The development server is dev.change.wild.net while the production server is change.wild.net. We are using the following code to set the cookie $expire_time = time()+60*60*24*30; // 30

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 00:10, Chris W. Parker wrote: [snip] If you're not sure what a value is use print_r() to determine it. echo pre; print_r($chk); echo /pre; Quick side note on the above code: You cannot write it like: echo pre.print_r($chk)./pre; It will not work. You

Re: [PHP] Session data is lost

2003-09-30 Thread Chris Shiflett
--- CPT John W. Holmes [EMAIL PROTECTED] wrote: From: Harald Kürsten [EMAIL PROTECTED] In my script I start a session, register certain variables and redirect to the next page. The session file is written to /tmp, but contains no data ! Does a simple session example from the Manual work?

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:06 AM said: echo pre.print_r($chk)./pre; It will not work. You can do this though: echo pre, print_r($chk), /pre; Well heck, that makes things easier! What's the difference between using , or . for

Re: Re: [PHP] __clone() questions ???

2003-09-30 Thread --
Forwarded Message Date: Wed, 24 Sep 2003 07:17:05 -0700 (PDT) From: -- [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: __clone() questions ??? Plain Text Attachment [ Save to my Yahoo! Briefcase | Download File ] Hello srs, Q 1. Will the methode __clone() have the posibility of

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 02:14, Chris W. Parker wrote: Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:06 AM said: echo pre.print_r($chk)./pre; It will not work. Actually, the above *does* work! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: Chris W. Parker [EMAIL PROTECTED] echo pre.print_r($chk)./pre; It will not work. You can do this though: echo pre, print_r($chk), /pre; Well heck, that makes things easier! What's the difference between using , or . for concatenation? (I thought they were the same.) Using a

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: Jason Wong [EMAIL PROTECTED] On Wednesday 01 October 2003 02:14, Chris W. Parker wrote: Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:06 AM said: echo pre.print_r($chk)./pre; It will not work. Actually, the above *does* work! It depends on how

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:27 AM said: echo pre.print_r($chk)./pre; It will not work. Actually, the above *does* work! Not for me. (Although we may be testing different things.) ? $pageTitle = Checkout Step One; echo

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
CPT John W. Holmes mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:32 AM said: Note that print_r() will (by default) return a 1 (TRUE) upon success, so you end up with a 1 being printed at the end of your data. [snip] That answers it! c. -- PHP General Mailing List

RE: [PHP] arrays and php

2003-09-30 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: What's the difference between using , or . for concatenation? (I thought they were the same.) The comma isn't concatenation; echo can take multiple arguments. I've heard statements about passing multiple arguments to echo being faster than using

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: Chris W. Parker [EMAIL PROTECTED] CPT John W. Holmes mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:32 AM said: Note that print_r() will (by default) return a 1 (TRUE) upon success, so you end up with a 1 being printed at the end of your data. [snip] That answers

  1   2   >