php-general Digest 15 Aug 2007 17:48:49 -0000 Issue 4963

2007-08-15 Thread php-general-digest-help
php-general Digest 15 Aug 2007 17:48:49 - Issue 4963 Topics (messages 260832 through 260863): Re: About UTF-8 / ANSI 260832 by: Anders Norrbring problem with require_once 260833 by: Vanessa Vega 260835 by: Tijnema 260836 by: Chris 260840 by: Sanjeev

[PHP] problem with require_once

2007-08-15 Thread Vanessa Vega
Good day to all... I would like to ask for some help.. I have a form created in javascript codes. The page is a pop up window. I am passing the values of the form using the method post. The PHP file that handles the form displays the values from that and had the following code in the

Re: [PHP] Forwarding $_POST[]...

2007-08-15 Thread Eddie Dunckley
On Thu 09 Aug 07 20:11, Simon wrote: The dumbest (but still correct) way to do it is a for() loop that creates a hidden input with the name/value pair for each variables you want. Might not be as dumb as one thinks: hidden vars are useful when some misconfigured proxy or round-robin proxy or

Re: [PHP] problem with require_once

2007-08-15 Thread Tijnema
On 8/15/07, Vanessa Vega [EMAIL PROTECTED] wrote: Good day to all... I would like to ask for some help.. I have a form created in javascript codes. The page is a pop up window. I am passing the values of the form using the method post. The PHP file that handles the form displays the values

Re: [PHP] problem with require_once

2007-08-15 Thread Chris
Vanessa Vega wrote: Good day to all... I would like to ask for some help.. I have a form created in javascript codes. The page is a pop up window. I am passing the values of the form using the method post. The PHP file that handles the form displays the values from that and had the following

[PHP] Parsing Variables Inside a String

2007-08-15 Thread heavyccasey
Hi, is there a function that can parse variables within a string? For example: $good_day = 'The'; $fr['iop'] = y're crazy!; $new = '$good_day$fr['iop']'; echo TheFunctionIRequest($new); // They're crazy! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Parsing Variables Inside a String

2007-08-15 Thread Chris
[EMAIL PROTECTED] wrote: Hi, is there a function that can parse variables within a string? For example: $good_day = 'The'; $fr['iop'] = y're crazy!; $new = '$good_day$fr['iop']'; echo TheFunctionIRequest($new); // They're crazy! Well this: echo $good_day . $fr['iop']; will do what you

Re: [PHP] Parsing Variables Inside a String

2007-08-15 Thread heavyccasey
I need to get the variable names from a database. On 8/15/07, Chris [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, is there a function that can parse variables within a string? For example: $good_day = 'The'; $fr['iop'] = y're crazy!; $new = '$good_day$fr['iop']'; echo

RE: [PHP] problem with require_once

2007-08-15 Thread Sanjeev N
Hi, The problem is simple... Either the file myclass.php path is wrong (may be your calling file is in some folder and myclass.php is in another folder) or if path is correct and file may have some syntax errors or some function may not exist.. Please check the path if wrong and check the file

RE: [PHP] www.soongy.com

2007-08-15 Thread Sanjeev N
Hi Gevorg, Great work.. But few things. Scroller is not working even at bottom content is there... I tried in both mozila and IE... In IE when I selected text and moved down then it scrolled down. But where in Mozila no use... Warm Regards, Sanjeev http://www.sanchanworld.com/

RE: [PHP] Parsing Variables Inside a String

2007-08-15 Thread Sanjeev N
$new = '$good_day$fr['iop']'; This will give you error... Instead if you try in this way as follows $new = $good_day$fr['iop']; or $new = $good_day.$fr['iop']; It will include the They're carzy! in the $new variable.. Warm Regards, Sanjeev http://www.sanchanworld.com/

RE: [PHP] Parsing Variables Inside a String

2007-08-15 Thread Sanjeev N
Consider the variable name inside database is 'emp_name' and now you want to use this as $emp_name.. This variable will be stored in as follows $variable1 = $resultfromdatabase['variable1']; Then next step is store anything in this variable as follows $$variable1 = John; I hope this may not

[PHP] Re: PHP Books - A poll of sorts

2007-08-15 Thread David Powers
Jay Blanchard wrote: If there was a best practices book would you buy it? I write books on PHP aimed at the beginner/intermediate level, and have a considerable collection of PHP books written by others. Two relatively recent books that struck me as being important are Pro PHP Security by

[PHP] Re: PHP Books - A poll of sorts

2007-08-15 Thread Man-wai Chang To Die
We all have our favorite PHP books and resources but there is one tome that seems to be missing from the group...a best practices book. We PHP, being server-side, is not difficult. I think the client-side stuff deserves some books (DOM, Javascript, CSS, XHTML, XML, ) if you want to save

Re: [PHP] zip freezes - how to handle corrupt CRC in zip-file

2007-08-15 Thread ecc
Ah, fine. How do i use this ZIPARCHIVE::CHECKCONS flag? Something like that should work, i think? $zip = new ZipArchive; $res = $zip-open ( $filename ZIPARCHIVE::CHECKCONS ); if (TRUE === $res) { # all looks fine } elseif { switch($res){ case ZIPARCHIVE::ER_INCONS:

[PHP] Re: cant get if logic correct..

2007-08-15 Thread Per Jessen
Gregory Machin wrote: Hi i have a piece of code that gets info from a comma delimited file, then gets each value that is to be insterted into the database The variabls must only contain numbers and must not be null .. but the logic i have is iether not working or there are some

[PHP] cant get if logic correct..

2007-08-15 Thread Gregory Machin
Hi i have a piece of code that gets info from a comma delimited file, then gets each value that is to be insterted into the database The variabls must only contain numbers and must not be null .. but the logic i have is iether not working or there are some hidden characters creeping in

Re: [PHP] cant get if logic correct..

2007-08-15 Thread Michael Preslar
This will be of help. http://us2.php.net/manual/en/function.is-numeric.php On 8/15/07, Gregory Machin [EMAIL PROTECTED] wrote: Hi i have a piece of code that gets info from a comma delimited file, then gets each value that is to be insterted into the database The variabls must only

Re: [PHP] Parsing Variables Inside a String

2007-08-15 Thread heavyccasey
Thank you so much! :D On 8/15/07, Sanjeev N [EMAIL PROTECTED] wrote: Consider the variable name inside database is 'emp_name' and now you want to use this as $emp_name.. This variable will be stored in as follows $variable1 = $resultfromdatabase['variable1']; Then next step is store

[PHP] QuickTime question

2007-08-15 Thread tedd
Hi gang: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source = 'ice-fishing.mov'; $size = filesize($file_source,,);

Re: [PHP] QuickTime question

2007-08-15 Thread Eric Butera
On 8/15/07, tedd [EMAIL PROTECTED] wrote: Hi gang: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source =

[PHP] OOP in PHP

2007-08-15 Thread Patrik Hasibuan
Dear my friends, This is the first time for me to use OOP concept of PHP. I wrote still a very simple codes but it doesn't work as my manual book taught. the book titled MySQL/PHP Database Application by Jay Greenspan say these lines should work but in fact it don't work as expected. Here is

Re: [PHP] QuickTime question

2007-08-15 Thread Stut
tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source = 'ice-fishing.mov'; $size = filesize($file_source,,);

Re: [PHP] OOP in PHP

2007-08-15 Thread Nathan Nobbe
what sort of error are you encountering ? -nathan On 8/15/07, Patrik Hasibuan [EMAIL PROTECTED] wrote: Dear my friends, This is the first time for me to use OOP concept of PHP. I wrote still a very simple codes but it doesn't work as my manual book taught. the book titled MySQL/PHP

Re: [PHP] Parsing Variables Inside a String

2007-08-15 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Hi, is there a function that can parse variables within a string? For example: $good_day = 'The'; $fr['iop'] = y're crazy!; $new = '$good_day$fr['iop']'; echo TheFunctionIRequest($new); // They're crazy! Thanks! One thing to add to what everybody else is saying,

Re: [PHP] OOP in PHP

2007-08-15 Thread Robert . Degen
Theoritically if Class koneksi is being initialized than it prints koneksi berhasil (connection succeeded) but it doesn't. What does it? Just nothing? No warnings at all? Possibly disabled? so far rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] cant get if logic correct..

2007-08-15 Thread Jim Lucas
Gregory Machin wrote: Hi i have a piece of code that gets info from a comma delimited file, then gets each value that is to be insterted into the database The variabls must only contain numbers and must not be null .. but the logic i have is iether not working or there are some hidden

Re: [PHP] OOP in PHP

2007-08-15 Thread Jim Lucas
A few missing pieces in your code. Take a look below within your class. I corrected it. try also using include_once instead of require and make sure that your error level and reporting are turned on so you can see what is happening. Patrik Hasibuan wrote: Dear my friends, This is the

Re: [PHP] QuickTime question

2007-08-15 Thread brian
tedd wrote: Hi gang: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source = 'ice-fishing.mov'; $size =

Re: [PHP] QuickTime question

2007-08-15 Thread tedd
At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source =

[PHP] Problem downloading files in IE

2007-08-15 Thread Richard S. Crawford
My users are having problems downloading .doc or .xls files linked to from PHP pages; when they click on the link, IE returns an error stating that the file cannot be found. Firefox, however, seems to be able to find the file and open it just fine. From what I can tell, this is related to a

Re: [PHP] QuickTime question

2007-08-15 Thread Michael Preslar
I'm not sure if this would be of help or not, but have you tried setting 'Content-disposition: inline' in the header? On 8/15/07, tedd [EMAIL PROTECTED] wrote: At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the

[PHP] XML editors

2007-08-15 Thread Al
What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] adding Back to Search results link

2007-08-15 Thread Derek Moon
I am trying to imporve a web application that my group uses. Basically there are 3 forms that work together Form 1 form 2 Form 1 - searchs for enterend values Form 2 - returns search results, letting you individually select any item Form 3 - lets you edit a specific individual item I want to

Re: [PHP] OOP in PHP

2007-08-15 Thread Patrik Hasibuan
Dear Jim, You've solved my problem, Jim. Thank you very much. Now, my code give the output as my expectation: superclass koneksi dipanggil koneksi berhasil negara- . But come another problem, namely: the $negara is empty. I tried to read the documentation on

Re: [PHP] adding Back to Search results link

2007-08-15 Thread Brad Bonkoski
Something like this might work: a href=javascript:history.go(-1) (To go back 1 page) Of course if this is a form post, it would repost the data resulting in that annoying pop-up on most browsers indicating the page is being re-posted. Maybe you could write out the post variables to the

Re: [PHP] QuickTime question

2007-08-15 Thread Stut
tedd wrote: At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source =

Re: [PHP] XML editors

2007-08-15 Thread Stut
Al wrote: What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... I tend to use Visual Studio for this sort of thing since I usually have it open anyway. -Stut -- http://stut.net/ -- PHP General

Re: [PHP] QuickTime question

2007-08-15 Thread tedd
At 8:54 PM +0100 8/15/07, Stut wrote: tedd wrote: At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think

Re: [PHP] XML editors

2007-08-15 Thread Stut
I assume this comment was aimed at the list and not just me. Kelvin Park wrote: Stut wrote: Al wrote: What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... I tend to use Visual Studio for this sort

Re: [PHP] OOP in PHP

2007-08-15 Thread Jim Lucas
Patrik Hasibuan wrote: Dear Jim, You've solved my problem, Jim. Thank you very much. Now, my code give the output as my expectation: superclass koneksi dipanggil koneksi berhasil negara- . But come another problem, namely: the $negara is empty. I tried to read the documentation on

[PHP] RE:www.soongy.com

2007-08-15 Thread Gevorg Harutyunyan
Hi, Thank you very much for all emails. I was trying to make it work in Opera, IE and FF and forgot such a simple thing as screen resolutions. I just fixed all. Thanks once more, Gevorg

Re: [PHP] OOP in PHP

2007-08-15 Thread Patrik Hasibuan
Dear Jim, thanks for your help. I've modified my codes as you adviced. But than the output is: superclass koneksi dipanggil koneksi berhasil No results found The column 'country' of table 'countries' already really contents complete all contry name from all over the earth. How come the query

Re: [PHP] adding Back to Search results link

2007-08-15 Thread Jim Lucas
Derek Moon wrote: I am trying to imporve a web application that my group uses. Basically there are 3 forms that work together Form 1 form 2 Form 1 - searchs for enterend values Form 2 - returns search results, letting you individually select any item Form 3 - lets you edit a specific

Re: [PHP] adding Back to Search results link

2007-08-15 Thread Derek
Jim and Brad. Thanks for the feedback. I was thinking it was something simple like a back button. But the problem that arises when I use this method is on Form 3. If I go through the steps, and make a change to an item on Form 3. Then use the a href=javascript:history.go(-2);Return to search

RE: [PHP] QuickTime question

2007-08-15 Thread Bastien Koert
Can't you just embed embed the file in the page? object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B codebase=http://www.apple.com/qtactivex/qtplugin.cab; height=256 width=320 param name=src value=?php echo ./vids/$file ? param

Re: [PHP] OOP in PHP

2007-08-15 Thread Jim Lucas
Patrik Hasibuan wrote: Dear Jim, thanks for your help. I've modified my codes as you adviced. But than the output is: superclass koneksi dipanggil koneksi berhasil No results found The column 'country' of table 'countries' already really contents complete all contry name from all over the

Re: [PHP] Re: PHP Books - A poll of sorts

2007-08-15 Thread jekillen
On Aug 15, 2007, at 4:28 AM, David Powers wrote: Jay Blanchard wrote: If there was a best practices book would you buy it? I write books on PHP aimed at the beginner/intermediate level, and have a considerable collection of PHP books written by others. Two relatively recent books that

RE: [PHP] adding Back to Search results link

2007-08-15 Thread Bastien Koert
what about hadding the search form elements to the results page and letting the users search right from there bastien To: php-general@lists.php.net From: [EMAIL PROTECTED] Date: Wed, 15 Aug 2007 15:44:46 -0500 Subject: Re: [PHP] adding Back to Search results link Jim and Brad. Thanks for

Re: [PHP] OOP in PHP

2007-08-15 Thread Jim Lucas
Jim Lucas wrote: Patrik Hasibuan wrote: Dear Jim, thanks for your help. I've modified my codes as you adviced. But than the output is: superclass koneksi dipanggil koneksi berhasil No results found The column 'country' of table 'countries' already really contents complete all contry name

Re: [PHP] adding Back to Search results link

2007-08-15 Thread Kirk Friggstad
Derek: Does form 1 use POST or GET to call form 2? If it uses GET, you could store the search page URL in a $_SESSION variable - something like this in your search results (form 2): $_SESSION['search_results_querystring'] = $_SERVER['QUERY_STRING']; and in your editing page (form 3): a

Re: [PHP] OOP in PHP

2007-08-15 Thread Patrik Hasibuan
Dear my friend, Jim Lucas. Thank you very much for your help. You've solved my problem one more time. I really appreciate your help. === On Wed, 15 Aug 2007 14:17:02 -0700 Jim Lucas [EMAIL PROTECTED] wrote: Jim Lucas wrote: Patrik Hasibuan wrote: Dear Jim, thanks for your help. I've

Re: [PHP] About Buggy SQL Query

2007-08-15 Thread Kelvin Park
Chris wrote: Kelvin Park wrote: mySQL database becomes inaccessible after a buggy sql string gets queried. The SQL server runs fine, however it seems like just the database is being looped infinitely so to say. Here is an example: (PHP) $sql = SELECT * FROM DB_TABLE WHERE PR_NUMBER =

Re: [PHP] About Buggy SQL Query

2007-08-15 Thread Chris
Kelvin Park wrote: Chris wrote: Kelvin Park wrote: mySQL database becomes inaccessible after a buggy sql string gets queried. The SQL server runs fine, however it seems like just the database is being looped infinitely so to say. Here is an example: (PHP) $sql = SELECT * FROM DB_TABLE WHERE