[PHP] problem with gd

2003-09-17 Thread Harry Wiens
Hi, i got a problem with the gd library at my isp's server. I've got the following script, to put a string on a image: On my localhost, everything works fine, but on the internetserver, the created image is very ugly! On the internet-server i got gd-version 2.0 or higher, so i tried to change

Re: [PHP] PHP and Palm

2003-09-17 Thread Raditha Dissanayake
this is not really about PHP and palm but writing a client for the palm. You are better off asking this quesition in a palm list. Charles Kline wrote: I have a project in mind where I would like to be able to Sync my Palm with the calendar in my CRM. Anyone have info on doing this? Thanks, Cha

[PHP] Ways to connect to Access DB without using ODBC?

2003-09-17 Thread chris . neale
Has anyone got any idea how I might be able to connect to an access database without using the ODBC drivers? I logged a bug with the PHP developers (#25472) about a problem I've been having with memory leaks when using them for looping through hundreds of queries in sequence. Does anyone have any

[PHP] ignore_user_abort not working

2003-09-17 Thread Sid
Hello, I am calling ignore_user_abort(true) in one of my scripts, but the script stops just like it would if I did not call it. Any idea why it is not working? Thanks - Sid

RE: [PHP] multiple FORMS on same page problem.

2003-09-17 Thread Ruessel, Jan
You could also redirect with javascript: echo ""; echo "window.location.href = 'page5.php'"; echo ""; Grtz Jan -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Dienstag, 16. September 2003 18:06 To: Golawala, Moiz M (IndSys, GE Interlogix) Cc: [EMAIL PROTECTED] Sub

RE: [PHP] Session data getting lost

2003-09-17 Thread Ruessel, Jan
You have to put session_start(); at the VERY TOP of your code. even before alle the tags. Hope that helps! Jan -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Dienstag, 16. September 2003 20:17 To: Rich Gray; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] Session

Re: [PHP] Control Structure problem

2003-09-17 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > yeah, i really like using cases they work well and especially if you want to > do something different for different values, i forgot about that, its a good > way to do it, > > does php have case else? cuz that is a really handy thing in

[PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
I'm working on a project, and up until recently was using my hosting account to do projects, but decided to update PHP on my comp to be able to work on projects locally. I'm running WindowsXP, PHP 4.3.2, Apache 1.3, and MySQL 3.23.53. The validation page is called on each page, but if I go to a pag

Re: [PHP] ignore_user_abort not working

2003-09-17 Thread Sid
Sorry, a mistake on my part. The script continues to work, but connection_aborted() does not detect if the host disconnected. It is all acting very funny. I also kept witing the return from connection_status () to a file and it keeps witing 0 to the file even after the user disconnects. - Sid ---

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Larry_Li
I believe all pages in your site are protected by session variables. Try to login first, then go where you want to go. Or try to remark codes which check your login status. "Jami" <[EMAIL PROTECTED]> 09/17/2003 03:52 PM Please respond to listmail To: "PHP General" <[EMAIL PRO

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Larry_Li
Did you open register_globals = On in php.ini? Larry Li/CNTR/APPLIED [EMAIL PROTECTED] 09/17/2003 04:04 PM To: <[EMAIL PROTECTED]> cc: "PHP General" <[EMAIL PROTECTED]> Subject:Re: [PHP] SESSION variables losing data on WinXP? I believe all pages

[PHP] OCIBindByName & pass-by-reference

2003-09-17 Thread Laurent Drouet
Hi, My Php Version is 4.3.1 When I use ocibindbyname like below OCIBindByName($stmt,":nb_lines_matched", $nblignes, 32) I receive the following message : [Tue Sep 16 13:43:01 2003] [error] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would l

[PHP] Zip library

2003-09-17 Thread Stéphane Paquay
Hi all, I need to unzip a file on a linux server automatically. I found the ZZiplib being able to do this but I don't know how to configure PHP to handle it. I use PHP 4.2.2. Thanks in advance, Stephane. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

RE: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
Knew I forgot to mention something. No, register_globals are off. Using $_SESSION[] variables. I am logging in first. I log in fine, its when I try to go to another page via a link on the entry page that I get booted back to the login page. My scripts work fine on a Unix server, which is what I rel

Re: [PHP] problem with gd

2003-09-17 Thread Jason Wong
On Wednesday 17 September 2003 15:25, Harry Wiens wrote: > i got a problem with the gd library at my isp's server. What version of PHP? [snip] > but when I use ImageCreateTrueColor the transparency is gone and the image > is still ugly! > > Phpinfo shows: > gd support

[PHP] Headers, outputting a file ..

2003-09-17 Thread Wouter van Vliet
Hi All, I feel almost ashamed for having to ask this question. Mostlly because I know it's been asked so many tmes but I just don't seem to be able to get it working. I want to secure some files from viewing by putting them in a different folder than the document root. Then, through a simple Cont

Re: [PHP] problem with gd

2003-09-17 Thread Miroslaw Milewski
Harry Wiens wrote: > ImageCopyResized($im, $im2, 0, 0, 0, 0, 281, 173, ImageSX($im2), You may try imageCopyResampled(); instead. -- mm. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zip library

2003-09-17 Thread Jason Wong
On Wednesday 17 September 2003 16:38, St�hane Paquay wrote: > I need to unzip a file on a linux server automatically. > > I found the ZZiplib being able to do this but I don't know how to configure > PHP to handle it. You need to recompile php adding --with-zip[=DIR] If you don't know how to

Re: [PHP] problem with gd

2003-09-17 Thread Harry Wiens
I have PHP-Version 4.2.2 "Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > On Wednesday 17 September 2003 15:25, Harry Wiens wrote: > > > i got a problem with the gd library at my isp's server. > > What version of PHP? > > [snip] > > > but when I use ImageCreateTrueC

[PHP] sessions

2003-09-17 Thread phpu
I have a little problem whit this script ... $sql="INSERT INTO tranzactii (name, email) values ('".$_POST['name']."','".$_POST['email']."')"; $result=mysql_query($sql); $id_transaction=mysql_insert_id(); for ($i=0; $i < count($_SESSION['id_product']); $i++) { if ($_SESSION['nr']

[PHP] Object in session and include

2003-09-17 Thread Marco Schuler
Hi I have to serialize an object in a session. Generally there is no problem with this if the class-definition file(s) are included _before_ starting the session, as explained in the php-manual: It is strongly recommended that you include the class definitions of all such registered objects on

[PHP] consistent PHP function names?

2003-09-17 Thread Eugene Lee
One thing that's always bothered me about PHP is that the function names are not terribly consistent. For example, when are underscores okay? strip_tags() has an underscore but stripslashes() does not. Also, should inverse functions be named appropriately? htmlentities() and html_entity_decode()

RE: [PHP] Getting part of a string...Was protecting a file via php

2003-09-17 Thread Steve Jackson
Thanks to all so far. However I am still having problems I have directory outside the root with PDF's in it. The links to the PDF files are called successfully by this function in a page I call getlinks.php function do_non_root_links() { define('FILEDIR', '/home/.sites/144/site281/downloads/'); /

RE: [PHP] Object in session and include

2003-09-17 Thread chris . neale
I was under the impression that if you used include_once then the script would only include the class definition if it was required within the script. You might want to check the manaul or get a second opinion on that, but that's what I've always done. Regards Chris -Original Message- F

Re: [PHP] consistent PHP function names?

2003-09-17 Thread Justin French
I posted a similar topic a few months back. I guess the answer is that the collaborative nature of open source, and the fact that PHP has grown from very humble beginnings has meant that naming standards and conventions are a little lacking. It would've been nice if these issues were rectified

RE: [PHP] consistent PHP function names?

2003-09-17 Thread chris . neale
The English language can be just as confusing at times, and is full of exceptions to rules - people just get used to them. The same can apply to a programming language. I'm not of why PHP's naming conventions are like this, but I can only assume it's to do with the way the language has evolved, per

RE: [PHP] consistent PHP function names?

2003-09-17 Thread Marco Schuler
Am Mit, 2003-09-17 um 14.26 schrieb [EMAIL PROTECTED]: > In practice, I find that all my code is wrapped up in custom functions and > objects anyway - I name those quite carefully to avoid confusing myself and > others, but don't need to worry too much about the naming conventions of the > functi

Re: [PHP] Object in session and include

2003-09-17 Thread Marek Kilimajer
Look at http://sk.php.net/unserialize Example 1. unserialize_callback_func example Marco Schuler wrote: Hi I have to serialize an object in a session. Generally there is no problem with this if the class-definition file(s) are included _before_ starting the session, as explained in the php-manual

RE: [PHP] Getting part of a string...Was protecting a file via php

2003-09-17 Thread Steve Jackson
I can now download the file as application/octet-stream but it won't allow me to open the file inline as a PDF. The only way I managed to be able to download the file at all was by stripping the URL from the front of the filename (I think). What am I doing wrong?? $pfile = str_replace('get.php?file

Re: [PHP] Zip library

2003-09-17 Thread Marek Kilimajer
There are also pure php classes that can handle zip files, for example http://www.phpconcept.net/pclzip/index.en.php Stéphane Paquay wrote: Hi all, I need to unzip a file on a linux server automatically. I found the ZZiplib being able to do this but I don't know how to configure PHP to handle

Re: [PHP] Headers, outputting a file ..

2003-09-17 Thread Adam i Agnieszka Gasiorowski FNORD
Wouter van Vliet wrote: > 110 $File = $this->Get($User); > 111 > 112 foreach($File['Headers'] as $H) header($H);; > 113 readfile($File['Path']); Do I see TWO ; here or it's just a typo? -- Seks, seksić, seksolatki... news:pl.

Re: [PHP] Problem sending HTML formated mail

2003-09-17 Thread David T-G
Juan -- ...and then Juan Carlos Borrero said... % % Hi People Hi! % % I'm using the mail() function in order to send HTML formated e-mails to my % customers in an automatic process, witha aPHP program. Some times the OK. HTML mail is evil, but continue on ;-) % e-mails where produced with

Re: [PHP] webhost --0T-->

2003-09-17 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hiya everyone, Hi! % % We are creating a voteing/rateing script for BestWebHosters.com (a ... % % Voteing will be allowed only to clients who register and confirm their email % addresses, plus only 1 vote per IP and we will be using cookies + other % se

Re: [PHP] Whats wrong with my code?

2003-09-17 Thread David T-G
Stevie -- You've already been beaten up about posting tons of code, so I won't add to that (much, anyway; DON'T, and ABSOLUTELY DON'T 'TOFU' POST!). And you've heard that you needed the ; on the last line and to correct your occasional $includes problems, so that's done. Yes, you should work on

[PHP] Using system

2003-09-17 Thread Uros
Hello! I'm pulling my hair. What is the right syntax to set output of some system call to variable. I tried everything (system, shell_exec,exec) and always get output to screen. Please help. PHP version 4.3.3 CLI -- Best regards, Uros -- PHP General Mailing List (http://www.php.net/) To un

[PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Scott Fletcher
Hi Fellas! Here's the clipping of an article about putting HTML variables into a PHP Array upon submission. Right now, I'm having trouble getting Javascript to do the error checking of each of the HTML variable if it's variable name is treated as an array. Anyone know of a workaround to it w

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Scott Fletcher
Speaking of your problem, you're using the header() function to exit the webpage to the login page. So, it all come down to the either one of these two or both of these two if(!isset($uname)) { if (mysql_num_rows($result) == 0) { Upon closer inspection on the script, it look like either th

Re: [PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Marek Kilimajer
if f = your form then f.elements['MyArray[]'] is a javascript array of input elements. Scott Fletcher wrote: Hi Fellas! Here's the clipping of an article about putting HTML variables into a PHP Array upon submission. Right now, I'm having trouble getting Javascript to do the error checking

RE: [PHP] Using system

2003-09-17 Thread esctoday.com | Wouter van Vliet
Don't think there's one function for it .. Though, you may want to try the output buffers. ob_start(); ( .. Exec here ..) $Var = ob_end_clean(); , Wouter -Original Message- From: Uros [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:18 PM To: PHP General list Subject: [

Re: [PHP] Headers, outputting a file ..

2003-09-17 Thread Curt Zirzow
* Thus wrote Adam i Agnieszka Gasiorowski FNORD ([EMAIL PROTECTED]): > Wouter van Vliet wrote: > > > 110 $File = $this->Get($User); > > 111 > > 112 foreach($File['Headers'] as $H) header($H);; > > 113 readfile($File['Path']); > >

Re: [PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Scott Fletcher
Ah! So I do this to make it work where count can be any number... f.elements['MyArray[]'][count].value That does work now. It's been mind boggling to do the conversion between JavaScript, HTML and PHP when it come to an array but I'm learning. :-) Thanks a million... Scott F. "Marek Kilimaj

[PHP] Edit a String

2003-09-17 Thread Shaun
Hi, I have addresses stored in my database. I am trying to create a page that generates a letter automatically for the user to print. Given a string of format ', x, x, xxx' how can I edit it so that the comma's are replaced with line breaks i.e. /n. This will enable me to display the a

RE: [PHP] Edit a String

2003-09-17 Thread Jay Blanchard
[snip] I have addresses stored in my database. I am trying to create a page that generates a letter automatically for the user to print. Given a string of format ', x, x, xxx' how can I edit it so that the comma's are replaced with line breaks i.e. /n. This will enable me to display the

[PHP] Re: Edit a String

2003-09-17 Thread Chris Kranz
> format ', x, x, xxx' how can I edit it so that the comma's are > replaced with line breaks i.e. /n. This will enable me to display the str_replace ( ",", "\n", $address ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Using system

2003-09-17 Thread Robert Cummings
Backtick style gets you the output... $passwords = `cat /etc/passwd`; Cheers, Rob. On Wed, 2003-09-17 at 09:55, esctoday.com | Wouter van Vliet wrote: > Don't think there's one function for it .. Though, you may want to try the > output buffers. > > ob_start(); > ( .. Exec here ..) > $Var = o

[PHP] 'while' not picking up on first DB record

2003-09-17 Thread Roger Spears
Hello, Can anyone from the lists please tell me why this bit of code is not picking up on the first record in the database? If the 'id' I'm looking for is '1' it doesn't populate the _SESSION variables. Any 'id' greater then '1' will populate the _SESSION variables. $q = "SELECT * FROM emplo

Re: [PHP] 'while' not picking up on first DB record

2003-09-17 Thread Miles Thompson
Please don't cross-post. See below - M. At 10:17 AM 9/17/2003 -0400, Roger Spears wrote: Hello, Can anyone from the lists please tell me why this bit of code is not picking up on the first record in the database? If the 'id' I'm looking for is '1' it doesn't populate the _SESSION variables. An

[PHP] SOLVED=> 'while' not picking up on first DB record

2003-09-17 Thread Roger Spears
I'm sorry for the double post. Other then letting both lists know this was solved, it won't happen again. Sorry. Thank you for the solution! I new it was simple. I've been staring at it too long. Fresh eyes always helps! Thanks again, Roger You are making the fetch twice, and not using the

[PHP] PHP Worldwide Stats

2003-09-17 Thread Chris Blake
Greetings learned PHP(eople); Where can I find stats, if any, on the number of sites using PHP as a server side language ? I been googling around using "PHP global statistics" and other combinations but can`t find anything. Regards -- Chris Blake Support Consultant Office : (011) 782-0840 Fax

Re[2]: [PHP] Using system

2003-09-17 Thread Uros
Hello Robert, I think not here is my code #!/usr/local/bin/php -q I always get automaticaly output. I also try to set implicit_flush to off, use ob ob_... nothing works. best regards Wednesday, September 17, 2003, 4:16:10 PM, you wrote: RC> Backtick style gets you the output... RC> $passw

Re: [PHP] PHP Worldwide Stats

2003-09-17 Thread Jason Wong
On Wednesday 17 September 2003 22:44, Chris Blake wrote: > Where can I find stats, if any, on the number of sites using PHP as a > server side language ? > > I been googling around using "PHP global statistics" and other > combinations but can`t find anything. www.netcraft.com -- Jason Wong ->

Re: Re[2]: [PHP] Using system

2003-09-17 Thread Robert Cummings
Uros, Run the command from the shell prompt and check your grep against the output. Cheers, Rob. On Wed, 2003-09-17 at 10:49, Uros wrote: > Hello Robert, > > I think not > > here is my code > > #!/usr/local/bin/php -q > $ret = `nslookup -timeout=3 www.myhost.com |grep "Non-existent host/doma

Re: [PHP] ignore_user_abort not working

2003-09-17 Thread Curt Zirzow
* Thus wrote Sid ([EMAIL PROTECTED]): > Sorry, a mistake on my part. The script continues to work, but > connection_aborted() does not detect if the host disconnected. It is all > acting very funny. I also kept witing the return from connection_status () > to a file and it keeps witing 0 to the fil

Re: [PHP] PHP and Palm

2003-09-17 Thread Mark
--- Charles Kline <[EMAIL PROTECTED]> wrote: > I have a project in mind where I would like to be able to Sync my > Palm > with the calendar in my CRM. Anyone have info on doing this? > > Thanks, > Charles You might want to look into the Horde Project (http://www.horde.org). There's been on-agai

Re: [PHP] PHP Worldwide Stats

2003-09-17 Thread Curt Zirzow
* Thus wrote Chris Blake ([EMAIL PROTECTED]): > Greetings learned PHP(eople); > > Where can I find stats, if any, on the number of sites using PHP as a > server side language ? > > I been googling around using "PHP global statistics" and other > combinations but can`t find anything. netcraft.com

Re: [PHP] Using system

2003-09-17 Thread Gal Gur-Arie
Hello, try this: &1'); echo "\n".$sMyHostname."\n"; ?> Uros wrote: Hello Robert, I think not here is my code #!/usr/local/bin/php -q I always get automaticaly output. I also try to set implicit_flush to off, use ob ob_... nothing works. best regards Wednesday, September 17, 2003, 4:16:10 PM,

Re: [PHP] PHP Worldwide Stats

2003-09-17 Thread Chris Blake
On Wed, 2003-09-17 at 16:55, Jason Wong wrote: > On Wednesday 17 September 2003 22:44, Chris Blake wrote: > > > Where can I find stats, if any, on the number of sites using PHP as a > > server side language ? > > > > I been googling around using "PHP global statistics" and other > > combinations b

Re: [PHP] How do I do this PERL in PHP?

2003-09-17 Thread Don Read
On 16-Sep-2003 Susan Ator wrote: > I have a text file with the following format: > > name > stuff > > message text > message text > message text > If you're sure the format is exactly that, then ... $pat=array( '', '', ); $marker=''; $data=file_get_contents('dafile.txt'); $msgblks=

Re: [PHP] PHP Worldwide Stats

2003-09-17 Thread Chris Blake
On Wed, 2003-09-17 at 17:11, Curt Zirzow wrote: > [snip] > > Flame on! > -- Johnny Storm > > > Is this an invite :) > I have no idea who Johnny Storm is...but best he stay away from starting a flame war on my behalf...I`m a lover, not a fighter :) -- Chris Blake Support

[PHP] Re: Using system

2003-09-17 Thread Gal
try this: &1'); echo "\n".$sMyHostname."\n"; ?> Uros wrote: Hello! I'm pulling my hair. What is the right syntax to set output of some system call to variable. I tried everything (system, shell_exec,exec) and always get output to screen. Please help. PHP version 4.3.3 CLI -- PHP General Mailing

RE: [PHP] Edit a String

2003-09-17 Thread Mark
--- Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I have addresses stored in my database. I am trying to create a > page > that > generates a letter automatically for the user to print. Given a > string > of > format ', x, x, xxx' how can I edit it so that the > comma's > are > r

Re: Re[2]: [PHP] Using system

2003-09-17 Thread Jason Wong
On Wednesday 17 September 2003 22:49, Uros wrote: > I think not Believe it or not, Robert's answer is correct. > here is my code > > #!/usr/local/bin/php -q > $ret = `nslookup -timeout=3 www.myhost.com |grep "Non-existent > host/domain"`; ?> > I always get automaticaly output. I also try to se

[PHP] Code check please

2003-09-17 Thread James Johnson
Hi, Can anyone see why this code isn't working $SID = $_SESSION['svUserID']; $AdID = $_GET['AdID']; // get the campuses assigned $qCampusID = "SELECT inst_id FROM ads_campuses WHERE ad_id = $AdID"; $CampusIDList = mysql_query($qCampusID, $CCB) or die(mysql_error()); $row_CampusIDList = mysql

RE: [PHP] Code check please

2003-09-17 Thread James Johnson
Hmm, ok I took out the $row_CampusIDList = mysql_fetch_assoc($CampusIDList); and it works But how come? J -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Code check please H

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Chris Thanks for your answer which I'm sorry to say makes no sense to me given the code example I supplied ... can you explain to me why you think register globals being set to on for the Linux server will cause the $_SESSION superglobal array to lose data? Am I missing something obvious here? Th

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Jan Sorry - no that doesn't help - as you can see from the code snippet I posted the session_start() is at the very top of the code... Thx anyway. Rich > > You have to put session_start(); at the VERY TOP of your code. > even before alle the tags. > Hope that helps! > > Jan > > --- Rich Gray <[EMA

RE: [PHP] Session data getting lost

2003-09-17 Thread Jay Blanchard
[snip] http://us3.php.net/session_register HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sdfs

2003-09-17 Thread Simon
sdfsdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] template problems

2003-09-17 Thread Simon
hi, I've got this problem when using templates on my localhost. The code works on my web server which i rent so the code is fine. I have ran php code for mysql functions and other for testing purposes. Below is the code i used in index.php. INDEX.PHP When i type say www.myrentedwebsite.com/

[PHP] template problems

2003-09-17 Thread Simon
hi, I've got this problem when using templates on my localhost. The code works on my web server which i rent so the code is fine. I have ran php code for mysql functions and other for testing purposes. Below is the code i used in index.php. INDEX.PHP When i type say www.myrentedwebsite.com/

[PHP] value contained within a variable contained within another variable

2003-09-17 Thread DougD
I may be way off track with what I am trying to do, but here is my scenario and I sure appreciate any insights. There is a string stored in $kk1_current and I want to pull from the array the variable name, add the "$" and then retreive the string with the varialbe $kk1_current. This will allow to

RE: [PHP] template problems

2003-09-17 Thread Jay Blanchard
[snip] INDEX.PHP When i type say www.myrentedwebsite.com/index.php?page=main it will display the page main.txt When i try this on my localhost it displays the error.txt file instead. It doesn't recognize the index.php?>?PAGE=MAIN i think !. [/snip] Try this and report back -- PHP Genera

RE: [PHP] template problems

2003-09-17 Thread Jay Blanchard
[snip] default : include "error.txt"; break; case "screenshots" : include "news.txt"; break; [/snip] And always put default case last -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Jay Thanks, but no I don't think so ... session_register() is deprecated ... Quote PHP manual: Caution: If you want your script to work regardless of register_globals, you need to instead use the $_SESSION array as $_SESSION entries are automatically registered. If your script uses session_regis

RE: [PHP] Session data getting lost

2003-09-17 Thread Jay Blanchard
[snip] Thanks, but no I don't think so ... session_register() is deprecated ... [/snip] Not depricated, just doesn't work when register_globals is off in the .ini Have you done a print_r($_SESSION) to see if in fact the $test variable is contained? -- PHP General Mailing List (http://www.php.net

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Well a functon that doesn't work under certain conditions should be deprecated IMO ... I haven't used it for a long time now... To answer your question ... yep I've used print_r() and after the 1st form submission the entry is set to -1 however at no time do I ever set $_SESSION['test'] to -1 in m

Re: [PHP] webhost --0T-->

2003-09-17 Thread Ryan A
Hey David, Thanks for replying. % Voteing will be allowed only to clients who register and confirm their email % addresses, plus only 1 vote per IP and we will be using cookies... /* That would be terrible for anyone behind a firewall. Leave it at once per email address and just live with the f

RE: [PHP] Session data getting lost

2003-09-17 Thread Jay Blanchard
[snip] Well a functon that doesn't work under certain conditions should be deprecated IMO ... I haven't used it for a long time now... To answer your question ... yep I've used print_r() and after the 1st form submission the entry is set to -1 however at no time do I ever set $_SESSION['test'] to

Re: [PHP] Code check please

2003-09-17 Thread CPT John W. Holmes
From: "James Johnson" <[EMAIL PROTECTED]> > Can anyone see why this code isn't working > > $SID = $_SESSION['svUserID']; > $AdID = $_GET['AdID']; > > // get the campuses assigned > $qCampusID = "SELECT inst_id FROM ads_campuses WHERE ad_id = $AdID"; You say down below that this query only sel

[PHP] How to use file() function with an "HTTPS:\\www.example.com"

2003-09-17 Thread Rodrigo Nakahodo
How to use file() function with an "HTTPS:\\www.example.com" https://www.example.com/'); foreach ($lines as $line_num => $line) { echo "Line #{$line_num} : " . htmlspecialchars($line) . "\n"; } ?> Thanks a million! Rodrigo Nakahodo --- Outgoing mail is certified Virus Free. Checked by AV

RE: [PHP] value contained within a variable contained within another variable

2003-09-17 Thread esctoday.com | Wouter van Vliet
You should be able to do something like this: $kk1_current = "something"; $data = array ("kk1_current","kk2_current","mk_current"); $data_post = $$data[0]; . "\n"; // I want, $data_post = whatever is inside $kk1_current in this example -- strval obviously doesn't work in the case echo

RE: [PHP] How to use file() function with an "HTTPS:\\www.example.com"

2003-09-17 Thread Jennifer Goodie
> How to use file() function with an "HTTPS:\\www.example.com" > > > $lines = file ('https://www.example.com/'); > > foreach ($lines as $line_num => $line) { > echo "Line #{$line_num} : " . htmlspecialchars($line) > . "\n"; > } My interpretation of the manual page (http://us3.php.net/manua

RE: [PHP] How to use file() function with an "HTTPS:\\www.example.com"

2003-09-17 Thread Jay Blanchard
[snip] How to use file() function with an "HTTPS:\\www.example.com" [/snip] Use cURL http://www.php.net/curl because you will have to login to the https: location first, before you can use file() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php and apache...single sign on

2003-09-17 Thread Mike Klein
I would like to piggyback on an Apache realm/dialog authentication and feed these credentials to a mysql connection (or connection to anything else) in my php scripts. Is there a way using the php Apache apis (seems like no) or via apache itself to make these credentials available/visible to a

RE: [PHP] php and apache...single sign on

2003-09-17 Thread Jay Blanchard
[snip] I would like to piggyback on an Apache realm/dialog authentication and feed these credentials to a mysql connection (or connection to anything else) in my php scripts. Is there a way using the php Apache apis (seems like no) or via apache itself to make these credentials available/visibl

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
So your telling me that all variables defined in the global scope are automatically added to the $_SESSION array...? Not true I think > [snip] > Well a functon that doesn't work under certain conditions should be > deprecated IMO ... I haven't used it for a long time now... > > To answer your

[PHP] CURL - SSL

2003-09-17 Thread Rodrigo Nakahodo
Anyone knows how to get a simple(HTML) https response using CURL session. Thanks a million!! Rodrigo Nakahodo --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003 -- PHP General Ma

RE: [PHP] Japanese on a page

2003-09-17 Thread Chris W. Parker
- Edwin - on Tuesday, September 16, 2003 5:53 PM said: This japanese page thing was a project I started at home so now that I'm at work I'll do my best to respond using my memory (good luck, me!). > Did you check if the Japanese characters are readable inside > html

Re: [PHP] Session data getting lost

2003-09-17 Thread Curt Zirzow
* Thus wrote Rich Gray ([EMAIL PROTECTED]): > Chris > > Thanks for your answer which I'm sorry to say makes no sense to me given the > code example I supplied ... can you explain to me why you think register > globals being set to on for the Linux server will cause the $_SESSION > superglobal arra

RE: [PHP] Session data getting lost

2003-09-17 Thread Jay Blanchard
[snip] So your telling me that all variables defined in the global scope are automatically added to the $_SESSION array...? Not true I think [/snip] You're right of course. I went back to your original code and stripped it back some The logic is incorrect, when you reload the page $test gets

Re: [PHP] Session data getting lost

2003-09-17 Thread Curt Zirzow
* Thus wrote Rich Gray ([EMAIL PROTECTED]): > So your telling me that all variables defined in the global scope are > automatically added to the $_SESSION array...? > Not true I think > no. read the documentation, in full. The soluction to your problem was resolved from the first reply (by C

Re: [PHP] Session data getting lost

2003-09-17 Thread Curt Zirzow
* Thus wrote Rich Gray ([EMAIL PROTECTED]): > Well a functon that doesn't work under certain conditions should be > deprecated IMO ... I haven't used it for a long time now... this makes absolutly no sense. So if I use a function improperly, it should become deprecated? session_register() is used

[PHP] multilanguage site: performance question: included file with cases?

2003-09-17 Thread daniel hahler
Hello listmembers, I'm building up a site which should be german and english. So I have a site object which remembers this choice during the session and do a include('lang_'.$site->lang.'.php'); in my topmost.php. This works good, but this file is growing and I thought about how to handle this

Re: [PHP] webhost --0T-->

2003-09-17 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hey David, > Thanks for replying. > > > % Voteing will be allowed only to clients who register and confirm their > email > % addresses, plus only 1 vote per IP and we will be using cookies... > > /* > That would be terrible for anyone behind a firewall.

[PHP] Basic Framework

2003-09-17 Thread Lee Herron QCS
I'm not fond of the phrase "framework," but for lack of any other term, this is what I use .. Without going to a bloated framework such as fusebox or MVP, have any of you put together a simple structure to allow very basic template and module inclusion with menuing? -- PHP General Mailing List (

Re: [PHP] webhost --0T-->

2003-09-17 Thread Ryan A
Hey, /* >hmm.. whats with the weird quoting style? only david is allowed to > use weird characters :) */ Whatdayamean? as far as I know he has not copyrighted the right to be weird ok? there are a lot of weirdos on this list and why should i be left out!!!??? :-D Cheers, -Ryan P.SDavi

[PHP] Q on Regular Expressions

2003-09-17 Thread jsWalter
I have a fairly complicated regular expression that was written for perl. I've spent the last 4 days trying to convert it to PHP. I guess I'm just that bright. I can't even get the sub parts (between the || to work, much less the conditionals Would someone mind showing me how I can make this wo

Re: [PHP] multilanguage site: performance question: included file with cases?

2003-09-17 Thread Curt Zirzow
* Thus wrote daniel hahler ([EMAIL PROTECTED]): > Hello listmembers, > > I'm building up a site which should be german and english. So I have a > site object which remembers this choice during the session and do a >include('lang_'.$site->lang.'.php'); > in my topmost.php. > > This works good,

Re: [PHP] Q on Regular Expressions

2003-09-17 Thread Curt Zirzow
* Thus wrote jsWalter ([EMAIL PROTECTED]): > I have a fairly complicated regular expression that was written for perl. > > I've spent the last 4 days trying to convert it to PHP. have you looked at strtotime()? http://php.net/strtotime The Date formats it can find are defined here: http://ww

[PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Ryan A
Hey, Been working a bit too much i guess so am feeling braindead... I have a couple of records in the database, i am doing a: "select age,salTotal from blah where section=3" this is getting me a list of records, how do i calculate the average age and salary total (salTotal) to display in my php p

  1   2   >