[PHP] Help needed

2003-06-30 Thread Nirmala P
Hi All, I am new to PHP world. Could any body tell me how to call any function(written in PHP) from Java script. Actually my PHP function return a string value which i need to access in my java script code. Thanks in Advance.. Nirmala ___

[PHP] Help needed

2003-06-30 Thread Nirmala P
Hi All, I am new to PHP world. Could any body tell me how to call any function(written in PHP) from Java script. Actually my PHP function return a string value which i need to access in my java script code. Thanks in Advance.. Nirmala ___

Re: [PHP] Help needed

2003-06-30 Thread Haseeb
hi, here is how you do it ? $strJavaScriptValue=Hello; ? script language=JavaScript alert('? echo $strJavaScriptValue?'); /script this will alert Hello!. i think you get the point. Haseeb - Original Message - From: Nirmala P [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

Re: [PHP] php.net's custom 404 scripts

2003-06-30 Thread olinux
here's a couple: Custom Error 404 Documents with PHP http://www.phpfreaks.com/tutorials/21/0.php Creating Custom PHP 404 Error Pages http://www.phpbeginner.com/columns/ray/404/1 depending what you are doing this might help too ... Building Dynamic Pages With Search Engines in Mind

[PHP] UPS

2003-06-30 Thread Daryl Meese
If anybody has implemented UPS's shipping registration software using PHP Curl and found away around the error the xml document is poorly formed when it was not please let me know how. Sorry for the lack of detail but UPS is FULL OF Lawyers and I don't want to violate the license agreement.

[PHP] Curl

2003-06-30 Thread Daryl Meese
Is there any good way to see exactly what Curl is sending as a request? Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Passing form value into another form value?

2003-06-30 Thread Miranda, Joel Louie M
Hello, My script is working now. I tried a different approach -- Louie -Original Message- From: Miranda, Joel Louie M Sent: Monday, June 30, 2003 1:49 PM To: 'Leif K-Brooks' Cc: 'Tom Rogers'; '[EMAIL PROTECTED]' Subject: RE: [PHP] Passing form value into another form value? Dude,

[PHP] Using Different Fonts on Web Via generated Image

2003-06-30 Thread Miranda, Joel Louie M
Hello, Can I generate an image using a different font? For example my font will be Anonymous and we all know that on the client side if you don't have the anonymous font it will display another font. But can we generate an image using that font via php? Thanks -- Louie -- PHP General

RE: [PHP] Using Different Fonts on Web Via generated Image

2003-06-30 Thread Sævar Öfjörð
Try this: http://is2.php.net/manual/en/function.imagettftext.php -Original Message- From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED] Sent: 30. júní 2003 07:41 To: '[EMAIL PROTECTED]' Subject: [PHP] Using Different Fonts on Web Via generated Image Hello, Can I generate an image

Re: Re[2]: [PHP] File Uploads!

2003-06-30 Thread Jason Wong
On Monday 30 June 2003 07:06, Catalin Trifu wrote: I used MAX_FILE_SIZE too in the form which uploads the file (the input field is before the file field) and I am using IE6 for testing and still the file pass through to the server. *IF* the browser supports it then IT would stop the

[PHP] which GD

2003-06-30 Thread Andrew McCombe
Hi My hosting company has disabled phpinfo(). How can I find out which version of GD they have installed? Regards Andrew McCombe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] which GD

2003-06-30 Thread - Edwin -
Hi, Andrew McCombe [EMAIL PROTECTED] wrote: Hi My hosting company has disabled phpinfo(). How can I find out which version of GD they have installed? http://www.php.net/manual/en/function.gd-info.php ? Or, you could just ask them ;) - E -

[PHP] Licenses -- was Re: [PHP][PHP-DEV][PHP-QA] PHP 5.0.0 Beta 1

2003-06-30 Thread Joel Rees
Hello, On 06/29/2003 04:16 PM, Sascha Schumann wrote: - Due to issues surrounding the MySQL 4.0 license, the MySQL libraries are no longer bundled with PHP. For more information on these licensing changes please see the MySQL licensing policy [1] [1]

[PHP] Re: [PEAR-DEV] Re: [PHP] PHP 5.0.0 Beta 1

2003-06-30 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-06-29 14:53:40 -0400: On Sun, 2003-06-29 at 14:19, Sterling Hughes wrote: - Due to issues surrounding the MySQL 4.0 license, the MySQL libraries are no longer bundled with PHP. For more information on these licensing changes please see the MySQL

[PHP] PHP Sessions and Cookies

2003-06-30 Thread Matt MacLeod
Guys/Gals, I've built a registration page on a site that stores a unique id for a user when they register. That id is then stored in a database and set as a session variable and as a cookie and is used to register personal user preferences. The reason I use both is that I don't really want to

[PHP] How do I use $HTTP_*_VARS[]

2003-06-30 Thread Ivan Carey
Hello, I would like to be able to use $HTTP_*_VARS[]. When I was using PHP 4.0.4PL1 I had no provlems sending form variables or any other type of variables such as url variables from one page to another. Now with PHP 4.2.3 I am unable to send variables from one page to another unless I turn on

[PHP] Re: How do I use $HTTP_*_VARS[]

2003-06-30 Thread Catalin Trifu
Hi, I presume in the previous version you used register_globals=On the trick is that you will have to chenge most of the scripts now. Now that you have moved to 4.2.3 version, you should use the $_SERVER, $_REQUEST, $_POST, etc... variables instead of $HTTP_*_VARS Btw. It's

[PHP] Help needed

2003-06-30 Thread Nirmala P
Hi list, This time i am pasting my code could any body tell where wrong I am ? ? function LangItem($field,$lang) { $db = mysql_connect(localhost, root); /*Check For Connection to local host*/ if(!$db) echo(Connect to localhost mysql database failed);

[PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Nirmala P wrote: Hi list, This time i am pasting my code could any body tell where wrong I am ? ? function LangItem($field,$lang) { $db = mysql_connect(localhost, root); /*Check For Connection to local host*/ if(!$db) echo(Connect to localhost mysql database failed);

[PHP] please help

2003-06-30 Thread Nabil
I have a form like: select size=1 name=area . . while($row = mysql_fetch_array($result)) { ? option value=?=$row['area']??=$row['area']?/option ? . . 1- if the fetched is only one word, i have no problem BUT 2- When i have $row=['area'] ecual to happy day that came form MySQL (as two word with

[PHP] Re: please help

2003-06-30 Thread Shivanischal A
option value=?=$row['area']??=$row['area']?/option is the culprit. instead use option value=?=$row['area']??=$row['area']?/option what u missed were the double quotes around the value. u HAVE TO do that for values with space in between . regards, -shiva Nabil [EMAIL PROTECTED] wrote in

[PHP] Re: File Uploads!

2003-06-30 Thread Catalin Trifu
Hi, In case someone is interested I found the workaround. 1. IE6 does not take into consideration MAX_FILE_SIZE, so one can not rely on it on client side. 2. If the uploaded file exceeds the post_max_size, the PHP engine (4.3.1 in my case) does not give you any error in the PHP

Re: [PHP] Re: Help needed

2003-06-30 Thread Nirmala P
Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = ?php LangItem(FieldName,LangName)?'); document.write(test); } and moreover the

Re: [PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Where does thejavascript fit ? Nirmala P wrote: Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = ?php

[PHP] preg_match?

2003-06-30 Thread Brian S. Drexler
Ok, here is my problem. I have a Postscript file that looks something like this: %!PS-Adobe-3.0 %%Title: Q-111BSD %%Creator: Windows NT 4.0 %%CreationDate: 8:31 6/30/2003 %%Pages: (atend) . And I want to get the Q-111BSD into a variable but I can't figure out how to keep it from grabbing

RE: [PHP] preg_match? [SOLVED]

2003-06-30 Thread Brian S. Drexler
Sorry. Must be Monday or something :-) preg_match('/%%Title:(.*?)%%/i',$contents,$matches); -Original Message- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 8:35 AM To: [EMAIL PROTECTED] Subject: [PHP] preg_match? Ok, here is my problem. I have a

RE: [PHP] preg_match? [SOLVED]

2003-06-30 Thread Adam Voigt
Sounds like someone has a case of the Monday's. On Mon, 2003-06-30 at 08:40, Brian S. Drexler wrote: Sorry. Must be Monday or something :-) preg_match('/%%Title:(.*?)%%/i',$contents,$matches); -Original Message- From: Brian S. Drexler [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: [PHP] time calcs

2003-06-30 Thread Wendell Brown
On Mon, 30 Jun 2003 07:31:59 -0500, Wendell Brown wrote: On Sun, 29 Jun 2003 15:19:56 -0400, Larry R. Sieting wrote: I want to output the difference as a difference expressed in time format: 10:05:23 - 09:45:32 = 00:39:51 Try this: ?PHP $tot_time = ($data['end_time'] -

[PHP] Else If/Elseif

2003-06-30 Thread Stevie Peele
What is the difference between else if and elseif? Thanks _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Else If/Elseif

2003-06-30 Thread Mario Oberrauch
What is the difference between else if and elseif? Thanks quote of http://www.php.net/manual/en/control-structures.elseif.php In PHP, you can also write 'else if' (in two words) and the behavior would be identical to the one of 'elseif' (in a single word). The syntactic meaning is slightly

Re: [PHP] Else If/Elseif

2003-06-30 Thread Reuben D. Budiardja
On Monday 30 June 2003 09:30 am, Stevie Peele wrote: What is the difference between else if and elseif? none -RDB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Else If/Elseif

2003-06-30 Thread Tularis
Stevie Peele wrote: What is the difference between else if and elseif? Thanks _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail else if shouldn't be used, use elseif, and the

Re: [PHP] Else If/Elseif

2003-06-30 Thread Brian V Bonini
On Mon, 2003-06-30 at 09:30, Stevie Peele wrote: What is the difference between else if and elseif? chr(32).. bwahahahah!!! Sorry. couldn't resist -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Forms

2003-06-30 Thread Simon Chappell
Hi can anyone help me with this? I have been failing to get any forms working with PHP now I have run out of ideas? Having bought 3 books the latest one being php mysql for dummies(which might be appropriate for me) I am still failing at this hurdle. the following script is a classic example

Re: [PHP] Re: Else If/Elseif

2003-06-30 Thread Reuben D. Budiardja
On Monday 30 June 2003 09:41 am, Tularis wrote: Stevie Peele wrote: What is the difference between else if and elseif? Thanks _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE*

Re: [PHP] Forms

2003-06-30 Thread Petre Agenbag
Have you checked register_globals = on/off in your php.ini? If register_globals=off, then you must access your POST variables by: $_POST['whatever']; and your get (the stuff you put at the end of your URL's): $_GET['whatever']; On Mon, 2003-06-30 at 15:48, Simon Chappell wrote: Hi can anyone

[PHP] Re: IsSet() and $_SESSION

2003-06-30 Thread John Manko
None of these worked for me. ok, if you look at the code, the part where echo $_SESSION['uid']; is actually works. I get a print out of the variable. if i call session_start() before anything, set variables in $_SESSION, and check it on another page, the session variables do not exist. in

RE: [PHP] Re: IsSet() and $_SESSION

2003-06-30 Thread Ford, Mike [LSS]
-Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: 30 June 2003 15:14 To: [EMAIL PROTECTED] Subject: [PHP] Re: IsSet() and $_SESSION None of these worked for me. ok, if you look at the code, the part where echo $_SESSION['uid']; is actually works. I get a

RE: [PHP] Curl

2003-06-30 Thread Daryl Meese
Well, I have printed the variable but, I thinks some character in my post may be messing things up. So, while I know the variable I need to see if that is actually what is sent. Daryl -Original Message- From: Suhas Pharkute [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 8:29 AM

Re: [PHP] web site security: how to hide login info for mysql-connection

2003-06-30 Thread Mark
How do you handle storing the login info then? Do you encrypt the file and decrypt it on the fly? Where would you store the key? I'm in the process of setting up a new application, and I've always used the login info outside the webroot method but if there's something more I can do, I'd like to

php-general Digest 30 Jun 2003 14:34:21 -0000 Issue 2148

2003-06-30 Thread php-general-digest-help
php-general Digest 30 Jun 2003 14:34:21 - Issue 2148 Topics (messages 153356 through 153411): Re: A simpler question involving http_user_agent 153356 by: Mike Migurski 153357 by: - Edwin - Re: File Uploads! 153358 by: Tom Rogers 153382 by: Jason Wong

[PHP] MapPoint and PHP

2003-06-30 Thread Stephane Desmarquest
Hello, Is it possible to use Microsoft MapPoint Webservice with PHP. If so, any hint (or tutorial) on how to use it ? Thanks Stephane Desmarquest Vcube Inc.

Re: [PHP] Re: Why Can't I get this to work

2003-06-30 Thread Jeff Harris
On Jun 28, 2003, Ron Clark claimed that: |OK, normally I do not respond to my own posts, but I have been shown that I |did not get the whole script. So here it is: | |for ($i=0; $i$number_of_alerts; $i++) { | |// Split each line | |$line = explode( , $ipfwlog[$i]); | |$line[1] = intval($line[1]);

[PHP]inheritance

2003-06-30 Thread Yury B .
Hi I'm with PHP for 4 years now but have feeling that my code doesn't have much order. I only started to use functions, it helped me a lot but I believe if I would learn to wirk with classes that would be what I need. The question: I have class A, class B, and class C now class C extends B

Re: [PHP] Re: Weird comparison error.

2003-06-30 Thread Rob Adams
Lars Torben Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, 2003-06-28 at 11:28, Bobby Patel wrote: In PHP there are two operators for comparisons, the double and triple equivalance. Double equivalance just check's the boolean type so if (0 == 'n') is

[PHP] enable/disable per directory

2003-06-30 Thread Micha Silver
Using apache 1.3.20 and php 4.0.2 Can I enable / disable posting of php scripts per directory? i.e. no php allowd from /home/username/public_html TIA Micha Silver Arava Development Co. tel: (972) 8-6592270 cellular: (972) 5-3665918 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] enable/disable per directory

2003-06-30 Thread Jason Wong
On Tuesday 01 July 2003 00:12, Micha Silver wrote: Using apache 1.3.20 and php 4.0.2 Can I enable / disable posting of php scripts per directory? Not sure what you mean by 'posting'. If you really meant execution of php scripts then yes. i.e. no php allowd from /home/username/public_html

[PHP] PHP and Apache

2003-06-30 Thread Mike At Spy
Recently, I had Apache upgraded on my linux redhat 7.3 server from 1.2.3 to 1.3.27. PHP stopped working when trying to process html files with php in them. In the httpd.conf file, I have AllowOverride set to All. In the Virtual Host settings I have 'AddType application/x-httpd-php .html'.

[PHP] disabling functions

2003-06-30 Thread Daryl Meese
Can I edit the disabled_functions setting on a per directory bases. If the answer is yes, what will be the impact on scripts that: 1. are in another directory where the functions are allowed. and 2. are included into a script in the directory where it is not allowed will those functions operate

Re: [PHP] disabling functions

2003-06-30 Thread Derick Rethans
On Mon, 30 Jun 2003, Daryl Meese wrote: Can I edit the disabled_functions setting on a per directory bases. No, you can not do that. Due to performance reasons it won't be implemented either. Derick -- Interpreting what the GPL actually means is a job best left to those

[PHP] Concatenate

2003-06-30 Thread Ryan Vennell
how can i concatenate two strings? i cant seem to find the function... thanks :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Concatenate

2003-06-30 Thread Derick Rethans
On Mon, 30 Jun 2003, Ryan Vennell wrote: how can i concatenate two strings? i cant seem to find the function... thanks :) With . Derick -- Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails.

Re: [PHP] Concatenate

2003-06-30 Thread Chris Sherwood
you can do it by assigning them to a single string or by adding the second to the firsst $youroriginalfirststring .= $thestringyouwanttoadd; please note the . Chris - Original Message - From: Derick Rethans [EMAIL PROTECTED] To: Ryan Vennell [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

RE: [PHP] disabling functions

2003-06-30 Thread Daryl Meese
Ok, that being said how can I keep some functions available for use with my scripts and disable their use by others. Even while allowing the others to include my scripts into their own and still have the functions operate? For example, I write a script that calls exec(), my script needs to be

[PHP] Small Error in Login Script

2003-06-30 Thread Pushpinder Singh Garcha
Hello All, I am trying to setup a simple login script on my development server running Mac OS Jaguar. I keep getting an error Parse error: parse error in /Users/psgarcha/Sites/CRM/ADMIN-LOGIN.php on line 2. I am at a complete loss ! Here is the source code. Please help.

Re: [PHP] Concatenate

2003-06-30 Thread Philip Olson
how can i concatenate two strings? i cant seem to find the function... thanks :) Read this: http://www.php.net/manual/en/language.operators.string.php And then this: http://www.php.net/manual/en/language.types.string.php Regards, Philip -- PHP General Mailing List

[PHP] Timezone functions?

2003-06-30 Thread Mark McCulligh
I am working on a project that I have to convert the date/time to different timezone include daylight saving time (DST). This project will be on a Windows server for a lot of the functions I have found on PHP.net don't work right. I am storing all the dates on the database in GMT time, thus I

RE: [PHP] enable/disable per directory

2003-06-30 Thread Micha Silver
Hello Jason: Thanks for the quick reply... -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 5:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] enable/disable per directory On Tuesday 01 July 2003 00:12, Micha Silver wrote: Using apache

[PHP] Re: Concatenate

2003-06-30 Thread Ryan Vennell
lol, thanks guys. i'm a complete idiot. i've already used .= and such like 5 times in this very script. i honestly have no idea what i was thinking. a total brainfart (excuse the expression) -Ryan Ryan Vennell[EMAIL PROTECTED] 06/30/03 10:31AM how can i concatenate two strings? i cant

Re: [PHP] Small Error in Login Script ~~SOLVED

2003-06-30 Thread Pushpinder Singh Garcha
Thanks ...I figured out something myself --Pushpinder On Monday, June 30, 2003, at 11:41 AM, Pushpinder Singh Garcha wrote: Hello All, I am trying to setup a simple login script on my development server running Mac OS Jaguar. I keep getting an error Parse error: parse error in

[PHP] Variable from the form

2003-06-30 Thread Gladk
Hi! I'm getting result from the form. Are there any differences between using these 2 forms: $_POST['my_variable'] or just $my_variable Is it more safety to use the first one? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Variable from the form

2003-06-30 Thread Dan Joseph
Hi, I'm getting result from the form. Are there any differences between using these 2 forms: $_POST['my_variable'] or just $my_variable Is it more safety to use the first one? You have to use the first one if you have register_globals set to off. If you have it on, you can

[PHP] php5 and mysql licences

2003-06-30 Thread Christopher Speer
Hello, i just read the news on php.net and wondered what it says about php5 and MySQL. They say that the libs for using a mysql server are not implemented any more,... so my question is: does that mean i (we) have to buy the licences to be allowed to use the mysql libs for php? kind regards

Re: [PHP] php5 and mysql licences

2003-06-30 Thread Derick Rethans
On Mon, 30 Jun 2003, Christopher Speer wrote: i just read the news on php.net and wondered what it says about php5 and MySQL. They say that the libs for using a mysql server are not implemented any more,... so my question is: does that mean i (we) have to buy the licences to be allowed to

RE: [PHP] php5 and mysql licences

2003-06-30 Thread Dan Joseph
Hi, Is the mysql client library going to be put back in for future betas? Or are we mis-reading the change log and its still there? -Dan Joseph -Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 1:05 PM To: Christopher Speer Cc:

[PHP] PHP 5 and 4 Incompatibilities?

2003-06-30 Thread Reuben D. Budiardja
Hello, I tried to find this on the website but didn't find it. So, is there any known backward incompatibilities with PHP 4? If yes, anyone knows where we can find the list? or PHP 4 code will mainly just work with PHP 5 ? Thanks. RDB -- - /\

[PHP] SQLyog 3.51 Released

2003-06-30 Thread Karam Chand
SQLyog v3.51 - The definitive Windows Front End for MySQL, has been released. SQLyog is a superfast, compact and easy to use Front End for MySQL. Some of the new features added in SQLyog 3.51 are - -- Complete support for MySQL 4.1. -- Improved SQL Editor. -- Improved ODBC Import Tool. --

RE: [PHP] php5 and mysql licences

2003-06-30 Thread Derick Rethans
On Mon, 30 Jun 2003, Dan Joseph wrote: Is the mysql client library going to be put back in for future betas? Or are we mis-reading the change log and its still there? No, we will not bundle the library with PHP 5 anymore. Derick -- Interpreting what the GPL actually means is a job best

RE: [PHP] php5 and mysql licences

2003-06-30 Thread Rasmus Lerdorf
On Mon, 30 Jun 2003, Dan Joseph wrote: Is the mysql client library going to be put back in for future betas? Or are we mis-reading the change log and its still there? There will always be MySQL support in PHP of one kind or another. The only change in PHP5 is that we are no longer

[PHP] Refreshing

2003-06-30 Thread Stephen
Hello, I have a chat script. I want it to refresh the chat display area whenever there is a new message posted, but not every 10 seconds or so. How could I get the script to refresh only when there is a new entry into the database table? Also, this may not be PHP but...does anyone know how to

[PHP] Re: Refreshing

2003-06-30 Thread Alberto Ferrer
use pconnect? -- -- Alberto Ferrer [EMAIL PROTECTED] http://www.barrahome.org -- Syntax Error in KITCHEN.H: COFFEE not found. Stephen [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL

RE: [PHP] Refreshing

2003-06-30 Thread Jay Blanchard
[snip] I have a chat script. I want it to refresh the chat display area whenever there is a new message posted, but not every 10 seconds or so. How could I get the script to refresh only when there is a new entry into the database table? Also, this may not be PHP but...does anyone know how to

Re: [PHP] Refreshing

2003-06-30 Thread Stephen
1. This way would probably end up sending out 500 little clicks every minute...so... Could any client side script do this like JavaScript? I doubt it could but just a question. With bubblegum in my shoe, Stephen Craton Senior Executive Web Developer Mophus.com, Inc. - Original Message -

Re: [PHP] Refreshing

2003-06-30 Thread Marco Tabini
Try using Javascript to reload an image instead of an HTML file. Images don't click, and you can check whether new data is available by the size of the returned image (e.g.: 1 pixel, no new data, 2pixels, new data). You will need a small PHP script on the backend that generates the image based on

Re: [PHP] Refreshing

2003-06-30 Thread Stephen
Thank you for this method. I just have a few questions. 1. How could javascript reload the image? I'm not 100% familiar with JavaScript really... 2. How could I use PHP to find the width of the image? I was reading up on image manipulation last night but only got as far as creating an image.

[PHP] Geting information from XML

2003-06-30 Thread Denis C(ahuk
Can someone tell how to get information from an XML file, without the F* commands, in PHP? e.g.: ? xml version=1.0 ? messages subjectHello/subject /messages -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Geting information from XML

2003-06-30 Thread Stephen
There are a lot of classes that parse XML files. I can send you a few functions I made myself to parse a paticular type of XML file. It should help you get started. With bubblegum in my shoe, Stephen Craton Senior Executive Web Developer Mophus.com, Inc. - Original Message - From:

Re: [PHP] Refreshing

2003-06-30 Thread Marco Tabini
On Mon, 2003-06-30 at 13:57, Stephen wrote: Thank you for this method. I just have a few questions. 1. How could javascript reload the image? I'm not 100% familiar with JavaScript really... Set a timeout to x seconds (where x is the time you want to wait between checks--say one or two

Re: [PHP] Refreshing

2003-06-30 Thread Jeremy Thibeaux
[snip] I have a chat script. I want it to refresh the chat display area whenever there is a new message posted, but not every 10 seconds or so. How could I get the script to refresh only when there is a new entry into the database table? [/snip] I have implemented something along these

[PHP] MySQL Query

2003-06-30 Thread Pushpinder Singh Garcha
Hello , Can someone tell me what is wrong with the following querys ? I am pretty sure its got something to do with the quotes around $_POST[] variables. $sql1 = SELECT * from `admin` where `admin`.user = '$_POST['validuser']' AND `admin`.pwd = '$_POST['password']'; $sql1 = SELECT * from

RE: [PHP] MySQL Query

2003-06-30 Thread Jay Blanchard
[snip] $sql1 = SELECT * from `admin` where `admin`.user = '$_POST['validuser']' AND `admin`.pwd = '$_POST['password']'; $sql1 = SELECT * from `admin` where user = $_POST['validuser'] AND pwd = $_POST['pass']; [/snip] subtle differences $sql1 = SELECT * from `admin` where `admin`.user =

Re: [PHP] Geting information from XML

2003-06-30 Thread Jeremy Thibeaux
Have you tried using the DOM XML functions? http://us3.php.net/manual/en/ref.domxml.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Query

2003-06-30 Thread Ford, Mike [LSS]
-Original Message- From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED] Sent: 30 June 2003 19:10 Can someone tell me what is wrong with the following querys ? I am pretty sure its got something to do with the quotes around $_POST[] variables. $sql1 = SELECT * from `admin`

Re: [PHP] Refreshing

2003-06-30 Thread Marco Tabini
The image should take care of the click, and also reduce the amount of information transmitted somewhat (although not necessarily, depending on what you send to your iframe). Cheers, Marco On Mon, 2003-06-30 at 14:09, Jeremy Thibeaux wrote: [snip] I have a chat script. I want it to refresh

Re: [PHP] MySQL Query

2003-06-30 Thread Thorsten Körner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Am Montag, 30. Juni 2003 20:10 schrieb Pushpinder Singh Garcha: Hello , Can someone tell me what is wrong with the following querys ? I am pretty sure its got something to do with the quotes around $_POST[] variables. $sql1 = SELECT * from

RE: [PHP] Forms

2003-06-30 Thread Petre Agenbag
Most books, specially the older ones will use this type of coding. It relies completely on register_globals (and some other settings) to be enabled in your php.ini. However, many possible security risks has been identified with having register_globals=on, so newer versions come with that feature

[PHP] Query for MySQL

2003-06-30 Thread Didier McGillis
Question. I am looking to try and pull the last modified date out and display it. So lets say I have 1000 records. I want to only display the date of the last modified time, I dont care about the id or the name or anything. How do I query for that?

RE: [PHP] Query for MySQL

2003-06-30 Thread Jay Blanchard
[snip] I am looking to try and pull the last modified date out and display it. So lets say I have 1000 records. I want to only display the date of the last modified time, I dont care about the id or the name or anything. How do I query for that? [/snip] If you have a lst modified date column

Re: [PHP] Refreshing

2003-06-30 Thread Jeremy Thibeaux
The only problem I have with the image idea is that it is not particularly generic and a bit unusual (i.e. kindof a hack). The IFRAME would need only contain a simple JavaScript function call, so it would be pretty small (the data would probably be less than the HTTP header information), and

[PHP] php-general as REPLY TO

2003-06-30 Thread John Manko
Hello, I'm wondering why the listed Reply To address is not [EMAIL PROTECTED] Thing would be so much easier to just reply than cut-n-paste when reply to the entire list on a subject (which is the norm). Can the maintainer set this up? John -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] php-general as REPLY TO

2003-06-30 Thread Matt Matijevich
John Manko [EMAIL PROTECTED] 06/30/03 02:08PM Hello, I'm wondering why the listed Reply To address is not [EMAIL PROTECTED] Thing would be so much easier to just reply than cut-n-paste when reply to the entire list on a subject (which is the norm). Can the maintainer set this up? John

[PHP] Nothing to do with PHP

2003-06-30 Thread Cesar Cordovez
But, I'm sure someone in this list have the answer to my question: I have written a lot of statements using the LIMIT clause in MySQL, like for example: SELECT * FROM system_users WHERE lastname like C% LIMIT 0,10 ...and I love it. specially when you are doing next page, previous page kind of

Re: [PHP] php-general as REPLY TO

2003-06-30 Thread Derick Rethans
On Mon, 30 Jun 2003, John Manko wrote: I'm wondering why the listed Reply To address is not [EMAIL PROTECTED] Thing would be so much easier to just reply than cut-n-paste when reply to the entire list on a subject (which is the norm). That's an evil thing, and misusing e-mail. E-mail

RE: [PHP] Nothing to do with PHP

2003-06-30 Thread Edward Peloke
I believe you would achieve the same results by saying select top 10 * from system_users where lastnamelike C% Eddie -Original Message- From: Cesar Cordovez [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 3:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Nothing to do with PHP But,

[PHP] Piping print_r output to a variable

2003-06-30 Thread Mike Mannakee
Hi all, Is there a way I can pipe the output of print_r() into a variable for further processing? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Piping print_r output to a variable

2003-06-30 Thread Jay Blanchard
[snip] Is there a way I can pipe the output of print_r() into a variable for further processing? [/snip] $variable = print_r(); Then use $variable? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Piping print_r output to a variable

2003-06-30 Thread Derick Rethans
On Mon, 30 Jun 2003, Mike Mannakee wrote: Hi all, Is there a way I can pipe the output of print_r() into a variable for further processing? Use var_Export and set the 2nd parameter to TRUE Derick -- Interpreting what the GPL actually means is a job best left to those

Re: [PHP] Piping print_r output to a variable

2003-06-30 Thread Jason Wong
On Tuesday 01 July 2003 03:35, Jay Blanchard wrote: [snip] Is there a way I can pipe the output of print_r() into a variable for further processing? [/snip] $variable = print_r(); Then use $variable? With newer versions of php (check manual) you can specify an extra parameter like so:

Re: [PHP] MySQL Query ~~ SOLVED

2003-06-30 Thread Pushpinder Singh Garcha
Thanks to all you great ppl out there !!! have a great weekend ;-) for those in north america FYI : mine has just started ! cheers --Pushpinder On Monday, June 30, 2003, at 02:36 PM, Thorsten Körner wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Am Montag, 30. Juni 2003 20:10

Re: [PHP] ftp_ssl_connect() Problem

2003-06-30 Thread Dean E. Weimer
I too am having problems getting ftp_ssl_connect() enabled, any help is very appreciated. What I am using is as follows, please let me know what it is I am missing.. PHP 4.3.0 installed as a Static Module with Apache 1.3.24 This is a re-configuration of an existing installation of PHP 4.3.0 I

  1   2   >