[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
What I mean is: you shouldn't need to use sockets to read in a file from Flash unless you're trying to do something more complicated, but from the way it sounds, you just want to pull data from MySQL with a PHP script and output it to Flash. The PHP script could just echo plain text and Flash

[PHP] info.php something missing (REMOTE_USER)

2004-01-20 Thread Ian C roberts
I have a problem with login fields. Whenever I get to my horde/imp login screen php dumps into the username field, USE_SESSION_ID I cannot seem to find an answer as how to prevent this. I am using, OS X 10.3 Apache 1.3.28 Horde 2.2.4 IMP 3.2.2 PHP 4.3.3 (with imap2002e) Here is the config

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Eric Bolikowski
Hey Ben I know it may sound nuts, but I really want to make a socket connection between a Flash and a PHP file. Normally I would simply read in a text file/read XML/send data with GET or POST, but I'm looking for a socket connections of following reasons: 1) I want a fast connection 2) I'm

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
I guess that's good enough reason for me. As far as connecting with sockets, though: you should connect from Flash to the PHP file, not from PHP to the Flash file, I think. And, in order to do that, you would need to ask some people who specialize in Flash and ActionScript, so the boards at

[PHP] Downloading Question

2004-01-20 Thread Rogelio J. Samour
OK, I'm at my wits' ends with this problem. I have a download page that sends the correct headers to the browser and downloads a blob file from a MySQL table. Everything works great on Mozilla, Netscape, and IE until I try to download a Zip file. What's puzzling is that the SAME EXACT file

Re: [PHP] inserting info from a query string into sql

2004-01-20 Thread Jason Wong
On Wednesday 21 January 2004 05:29, mayo wrote: [snip] However I can't seem to insert the query string variables into the sql. [snip] What am I missing here? 1) Assign your query to a string (eg $query), and echo() it so you know what your query is. 2) Make good use of mysql_error().

Re: [PHP] authentication problems!

2004-01-20 Thread Jason Wong
On Wednesday 21 January 2004 05:49, Scott Taylor wrote: Please trim your posts! Of course there is not problem if the user is entering the information him or her self. But just using this code: $file = 'http://miningstocks.com/protected/Dec03PostPress.pdf'; //now view the

Re: [PHP] info.php something missing (REMOTE_USER)

2004-01-20 Thread Jason Wong
On Wednesday 21 January 2004 05:51, Ian C roberts wrote: I have a problem with login fields. Whenever I get to my horde/imp login screen php dumps into the username field, USE_SESSION_ID Have you tried asking on the horde/imp list? I'm sure they would be in a better position to help.

Re: [PHP] generate drop down list from DB and display info on new page base d on selection

2004-01-20 Thread Jason Wong
On Wednesday 21 January 2004 05:43, Montagna, Dan wrote: I'm new to php/mysql and have been looking for help on this for a little while. I've searched around a bit but can't find anything close enough to what I'm talking about here. I want to create a drop down list from a mysql db table (I

[PHP] Extended characters passed in URL

2004-01-20 Thread Alex
Hi people, I've installed Apache2, php 3.0.17 on Windows 2000 machine. Everything works fine except when I call my script with some extended characters (from Central European charset - ones with diacritics which should be encoded) in variable values in URL, I get Internal Server Error message. If

RE: [PHP] Extended characters passed in URL

2004-01-20 Thread Jay Blanchard
[snip] Hi people, I've installed Apache2, php 3.0.17 on Windows 2000 machine. Everything works fine except when I call my script with some extended characters (from Central European charset - ones with diacritics which should be encoded) in variable values in URL, I get Internal Server Error

[PHP] Odd Code Error.

2004-01-20 Thread Jonathan Pitcher
I am so frustrated at the moment with coding. I had an odd error with some PHP coding. And in the process I came across this error. Please try this out!! Because for me on my machine it does the first part of the if statement. I can make a work around in my code to fix the error. BUT I

Re: [PHP] php running as user apache

2004-01-20 Thread Nirnimesh
Yeah, I tried turning safe mode on, but I'm not able to accomplish what I set forth to. Suppose I want to upload files to a directory called repository. Now what should be the ownership and access permission of this directory be such that: 1. php (running as user apache) is able to upload files,

Re: [PHP] Unsubscribe (mailign lsits in general) question...

2004-01-20 Thread Justin French
On Wednesday, January 21, 2004, at 01:11 AM, [EMAIL PROTECTED] wrote: I've been told by my boss, that the law has changed in relation to 'Opt out' options on mailing lists etc... she tells me that I have to now change all my forms to conform. She claims that now, each time the user must click

[PHP] drop down list of years puzzles me

2004-01-20 Thread Bill Green
This works to create a drop down select box of numbers 1-12: for($i=1; $i 13; $i++) { echo option value={$i}.$i./option\n; } This doesn't to create a drop down box of years: $curr_year = intval(date('Y')); $range = 10; for ($y=$curr_year; $y $range; $y++) { echo option

Re: [PHP] Odd Code Error.

2004-01-20 Thread Jason Wong
On Wednesday 21 January 2004 06:55, Jonathan Pitcher wrote: if ($EA == NFH) When comparing strings either use '===' or one of the string comparison functions. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting *

RE: [PHP] Odd Code Error.

2004-01-20 Thread Martin Towell
I've come across this recently too. I think what's happening is that PHP is converting NFH to an integer, which would be zero in this case. Thus zero == zero is true... Try doing type checking too: if ($EA === NFH) Martin I am so frustrated at the moment with coding. I had an odd

[PHP] Specifying file paths in Windows

2004-01-20 Thread Todd Cary
I moved an application from Linux to my Client's NT system and is_file cannot file the file on the NT system. My directory structure is as follows: c:\webroot \application \php_code \filedir The code is if (is_file(./filedir/test.txt)) echo Found it!; else echo Not found; This is

[PHP] Re: Odd Code Error.

2004-01-20 Thread Eric Bolikowski
Extremely odd what's happening here :s I just doesn't make sense why the if condition should do this... Maybe you could search in the PHP Manual for more info on this. However, i did one thing that made that not work. ?php $EA = 0; //using strict comparison operator if ($EA === 'NFH'){

[PHP] Re: Specifying file paths in Windows

2004-01-20 Thread Eric Bolikowski
Todd Cary [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I moved an application from Linux to my Client's NT system and is_file cannot file the file on the NT system. My directory structure is as follows: c:\webroot \application \php_code \filedir The code is

RE: [PHP] Odd Code Error.

2004-01-20 Thread daniel
i've never had a problem doing if ($var==test) ?? I've come across this recently too. I think what's happening is that PHP is converting NFH to an integer, which would be zero in this case. Thus zero == zero is true... Try doing type checking too: if ($EA === NFH) Martin -- PHP

Re: [PHP] drop down list of years puzzles me

2004-01-20 Thread Jason Wong
On Wednesday 21 January 2004 07:10, Bill Green wrote: for ($y=$curr_year; $y $range; $y++) { echo option value={$y}.$y./option\n; } When I check for errors: $curr_year = 2004 $curr_year is an integer $range = 10 $curr_year + $range = 2014 $y = 2004 $y $range Do the

Re: [PHP] Odd Code Error.

2004-01-20 Thread Brad Pauly
On Tue, 2004-01-20 at 15:55, Jonathan Pitcher wrote: I am so frustrated at the moment with coding. I had an odd error with some PHP coding. And in the process I came across this error. Please try this out!! Because for me on my machine it does the first part of the if statement. I can

Re: [PHP] include working....but confusion

2004-01-20 Thread Justin French
On Wednesday, January 21, 2004, at 05:11 AM, Ryan A wrote: Do I have to start and end the included files with ?php ? ? Did you try it? Then you'd have your answer :) Did you read http://www.php.net/include/ ? Because all the examples show what you need to know too. Read the manual, and

[PHP] Re: drop down list of years puzzles me

2004-01-20 Thread Eric Bolikowski
This should help: ?php $curr_year = intval(date('Y')); $range = 10+$curr_year; for ($y=$curr_year; $y $range; $y++) { echo option value={$y}.$y./option\n; } ? What you forgot is that $range must be the current year plus how many loops you want. Eric Bill Green [EMAIL PROTECTED] wrote

Re: [PHP] Odd Code Error.

2004-01-20 Thread daniel
Interesting. I wouldn't have expected that. However, that is how it should work. Check out table K-2 on this page: http://us4.php.net/manual/en/types.comparisons.php '==' is a loose comparison. You can use '===' instead which will give you the results you are looking for. if ($EA ===

[PHP] thumbnail

2004-01-20 Thread Rafael Alex Cremer
How I can create thumbnail with php? using the GD libray? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] thumbnail

2004-01-20 Thread Matt Matijevich
[snip] How I can create thumbnail with php? using the GD libray? [/snip] yes. Also I hear imagemagick works well. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unsubscribe (mailign lsits in general) question...

2004-01-20 Thread Chris Shiflett
--- Justin French [EMAIL PROTECTED] wrote: as long as the laws themselves are based on common sense. Maybe that works out in Australia, but we can't make such assumptions in the US. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP

Re: [PHP] drop down list of years puzzles me

2004-01-20 Thread Justin French
On Wednesday, January 21, 2004, at 10:10 AM, Bill Green wrote: This doesn't to create a drop down box of years: $curr_year = intval(date('Y')); $range = 10; for ($y=$curr_year; $y $range; $y++) { echo option value={$y}.$y./option\n; } Stop and read the for loop. You're saying starting

Re: [PHP] thumbnail

2004-01-20 Thread daniel
How I can create thumbnail with php? using the GD libray? Of course u answered your own question, http://us4.php.net/manual/en/function.imagecopyresampled.php Make sure you have GD2 though you dont want crappy pixelated images. If you want a class already made up check out

Re: [PHP] thumbnail

2004-01-20 Thread daniel
[snip] How I can create thumbnail with php? using the GD libray? [/snip] yes. Also I hear imagemagick works well. I included a imagemagick rotate feature into my photo gallery application as gd just cant seem to do it well ?? -- PHP General Mailing List (http://www.php.net/) To

[PHP] Now try this...

2004-01-20 Thread Todd Cary
../tiff/demo.tif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Specifying file paths in Windows

2004-01-20 Thread Todd Cary
The \filedir is under the phpcode directory c:\webroot | |--\application | |--\php_code | |--\filedir Eric Bolikowski wrote: Todd Cary [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I moved an application from Linux to my Client's NT system and is_file

[PHP] Re: Now try this...

2004-01-20 Thread Todd Cary
Whooops...mis-sent!! Todd Cary wrote: ../tiff/demo.tif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Odd Code Error.

2004-01-20 Thread Brad Pauly
On Tue, 2004-01-20 at 16:13, [EMAIL PROTECTED] wrote: Interesting. I wouldn't have expected that. However, that is how it should work. Check out table K-2 on this page: http://us4.php.net/manual/en/types.comparisons.php '==' is a loose comparison. You can use '===' instead which will

[PHP] thumbnail???

2004-01-20 Thread Rafael Alex Cremer
OK, but how? I already use GD, I need to now how to create a thumbnail, somebody now how to use the GD functions to create a thumbnail??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Create PDF FIle

2004-01-20 Thread Mike Mapsnac
Hello I want to create PDF file from PHP output. So instead of sending output to the browser, I need to insert PHP output into PDF FILE. How that's can be done? Looking for some short example or some documentation. Thanks _ Let

Re: [PHP] thumbnail

2004-01-20 Thread Matt Matijevich
[snip] OK, but how? I already use GD, I need to now how to create a thumbnail, somebody now how to use the GD functions to create a thumbnail??? [/snip] http://www.php.net/GD I think you want to look at: imagecopyresampled -- Copy and resize part of an image with resampling imagecopyresized --

Re: [PHP] Odd Code Error.

2004-01-20 Thread daniel
Hmm after all this time, are you saying its best to use === instead of == in any application ? I would recommend using it whenever you can. It may require a few extra lines of code here and there, but you know for sure what 'type' you are dealing with. This is especially good when dealing

[PHP] Re: Create PDF FIle

2004-01-20 Thread Todd Cary
I use the pdf class from http://www.potentialtech.com Todd Mike Mapsnac wrote: Hello I want to create PDF file from PHP output. So instead of sending output to the browser, I need to insert PHP output into PDF FILE. How that's can be done? Looking for some short example or some

Re: [PHP] include working....but confusion

2004-01-20 Thread Robert Cummings
On Tue, 2004-01-20 at 18:07, Justin French wrote: On Wednesday, January 21, 2004, at 05:11 AM, Ryan A wrote: Do I have to start and end the included files with ?php ? ? Did you try it? Then you'd have your answer :) Did you read http://www.php.net/include/ ? Because all the

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Marc Greenstock
I am doing the same thing at the moment, I'm building a Flash/PHP/MySQL chat system capable of handling over 1000 users online at one time. GET and POST just doesn't cut it, so I began to explore other avenues, and XML Socket's seem like the best and only option. But I expect to burn the

Re: [PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread daniel
check out http://www.php.net/manual/en/ref.ircg.php and http://www.schumann.cx/ircg/ I am doing the same thing at the moment, I'm building a Flash/PHP/MySQL chat system capable of handling over 1000 users online at one time. GET and POST just doesn't cut it, so I began to explore other

[PHP] PHPSESSIONID altering each time the page is loaded in IE

2004-01-20 Thread Tarrant Costelloe
As the subject says, I posted this bug report on the official php bugs page http://bugs.php.net/bug.php?id=26950 and have now changed my storing of user information to use cookies as such: setcookie(cookie_auth_memberID, $row['id'], time()+604800,'/'); setcookie(cookie_auth_Username,

Re: [PHP] PHPSESSIONID altering each time the page is loaded in IE

2004-01-20 Thread daniel
As the subject says, I posted this bug report on the official php bugs page http://bugs.php.net/bug.php?id=26950 and have now changed my storing of user information to use cookies as such: setcookie(cookie_auth_memberID, $row['id'], time()+604800,'/'); setcookie(cookie_auth_Username,

RE: [PHP] PHPSESSIONID altering each time the page is loaded in IE

2004-01-20 Thread Tarrant Costelloe
Nope, calling it once. For some odd reason as I have detailed here http://bugs.php.net/bug.php?id=26950 IE is loosing all it's cookie data on different clicks around the website. A piece at a time, however MOZ and Opera are fine. In Fellowship, Tarrant -Original Message- From: [EMAIL

Re: [PHP] hello to making the php pages

2004-01-20 Thread John Nichel
Chris W. Parker wrote: hello you, Hello me. i am here to ask of help from the mailing list. I think the mailing list is gone for the day. Try back tomorrow. i have PHP Codes like this kind: What's PHP? echo Welcome to my homepage Mom. See my brand new wife!: You must echo out what happened to

Re: [PHP] hello to making the php pages

2004-01-20 Thread Raditha Dissanayake
Hi, I think mr chris w parker you have not read the manual or the list newbie guide. I couldn't resist either :-) Chris W. Parker wrote: hello you, i am here to ask of help from the mailing list. i have PHP Codes like this kind: echo Welcome to my homepage Mom. See my brand new wife!: I

[PHP] Re: Specifying file paths in Windows

2004-01-20 Thread Luke
try removing the dot and / so if (is_file(filedir/test.txt)) echo Found it!; else echo Not found; that should work on windows and unix platforms, i dont think windows likes the single dot, but you can use relative referencing, by just using the directory name. -- Luke Todd Cary [EMAIL

Re: [PHP] Odd Code Error.

2004-01-20 Thread Tom Rogers
Hi, Wednesday, January 21, 2004, 8:55:01 AM, you wrote: JP I am so frustrated at the moment with coding. I had an odd error with JP some PHP coding. And in the process I came across this error. JP Please try this out!! Because for me on my machine it does the first JP part of the if statement.

[PHP] Search Script????

2004-01-20 Thread Student
I have my web site with file extensions .php .php3 .html .htm .shtml Now i (am looking for a script or) would like to write a php script so that users can search my web site for information Can anyone help me get started. I want to include a search in my web site.. -- PHP General Mailing

Re: [PHP] Search Script????

2004-01-20 Thread John Nichel
Student wrote: I have my web site with file extensions .php .php3 .html .htm .shtml Now i (am looking for a script or) would like to write a php script so that users can search my web site for information Can anyone help me get started. I want to include a search in my web site.. Cross post

Re: [PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Miles Thompson
Use xmlReceiver to trigger the back end PHP script. Have that script generate XML which you parse in Flash. Plain text will work, but a single quotation mark in the text sends you off to never never land. Here's an example: xmlReceiver.load( http://; + host + feed_xml_article.php); I know

Re: [PHP] thumbnail

2004-01-20 Thread Chris Edwards
This works like a charm on JPG, haven't tried it on other files types. This came from the www.php.net function image_createThumb($src,$dest,$maxWidth,$maxHeight,$quality=100) { if (file_exists($src) isset($dest)) { // path info $destInfo = pathInfo($dest); // image

[PHP] IRCG - php windows extension HELP!

2004-01-20 Thread Marc Greenstock
I'm trying to install IRCG as an extension to my Apache 2 PHP server running on Windows XP. Trouble is IRCG for windows comes as a standalone package, that doesn't seem to load in as an extension to php declaired in php.ini. I've typed in all the extensions but i continue to get an error for each

Re: [PHP] authentication problems!

2004-01-20 Thread Luke
Yeah, i think i mentioned the same thing(or was going to :/ ) you should be able to use the local filesystem, and reffer to it relatively! and then you can stream it and you wont need any authentication, and noone will be able to directly link to the file -- Luke Jason Wong [EMAIL PROTECTED]

Re: [PHP] Odd Code Error.

2004-01-20 Thread Luke
yeah its strange, $test is equal to $test2, $test is equal to $test3 but $test2 is not equal to $test3, $test = string; $test2 = true; $test3 = 0; if($test == $test2){ echo hi; } somone tell me im wrong please? else thats seriously weird -- Luke [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Odd Code Error.

2004-01-20 Thread Robert Cummings
On Tue, 2004-01-20 at 22:39, Luke wrote: yeah its strange, $test is equal to $test2, $test is equal to $test3 but $test2 is not equal to $test3, $test = string; $test2 = true; $test3 = 0; if($test == $test2){ echo hi; } Looks fine to me... $test == $test2: $test is not an empty

[PHP] Email results

2004-01-20 Thread BigMark
A: How can i send an email with the contents of a table B: can it be sent automatically when a certain field has data. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Odd Code Error.

2004-01-20 Thread Luke
ok, i read the section, but even so if $a == $b and $a == $c then $b should be equal to $c but php is saying otherwise? this sounds confusing i want to try n get my head round it a string equals a integer of zero, and a string equals true, but the reason the bool doesnt equal the int is

Re: [PHP] Email results

2004-01-20 Thread Jason Wong
On Wednesday 21 January 2004 11:46, BigMark wrote: A: How can i send an email with the contents of a table Assuming a database table: 1) query database 2) format results into a nice string 3) mail() it B: can it be sent automatically when a certain field has data. Yes. -- Jason Wong -

Re: [PHP] Odd Code Error.

2004-01-20 Thread Robert Cummings
On Tue, 2004-01-20 at 23:00, Luke wrote: ok, i read the section, but even so if $a == $b and $a == $c then $b should be equal to $c No this is not true, since types conversions can be different between a and b, a and c or between b and c. If you want the above logic to be true then you must

Re: [PHP] Odd Code Error.

2004-01-20 Thread Luke
i think i got it now :) i wont bother trying to explain my understanding, i think that will confuse the matter hehe but i think mainly the usual rule, that if an apple and a banana are fruit, and a pear is the same as a banana, then a pear must be fruit too (AND I think im fruit loops) bah

Re: [PHP] Odd Code Error.

2004-01-20 Thread Jason Wong
On Wednesday 21 January 2004 12:27, Luke wrote: but i think mainly the usual rule, that if an apple and a banana are fruit, and a pear is the same as a banana, then a pear must be fruit too (AND I think im fruit loops) bah im goin bananas, its time to go to band practise anyways, All

[PHP] PHP5: XML to PDF with XSL

2004-01-20 Thread Aidan Lister
Is this possible? I'm purely interested in PHP5 examples of transforming an XML file into PDF using an XSL stylesheet. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hello to making the php pages

2004-01-20 Thread Dagfinn Reiersøl
echo Welcome to my homepage Mom. See my brand new wife!: You must echo out what happened to your old wife before you send new wife to the brower. If he kept the old wife, he needs to talk to both wives. If not, replacing the colon with a semicolon might help. I have problem with PHP Codes

[PHP] Re: Search Script????

2004-01-20 Thread Manuel Lemos
Hello, On 01/20/2004 11:22 PM, Student wrote: I have my web site with file extensions .php .php3 .html .htm .shtml Now i (am looking for a script or) would like to write a php script so that users can search my web site for information Can anyone help me get started. I want to include a

<    1   2