[PHP] Is it possible to pass arguements when using PHP before 4.3.n?[SOLVED]

2004-05-13 Thread Jay Blanchard
Is it possible to pass arguements when using PHP before 4.3.n when doing command line stuff? I have built a small script that opens a file, reads from it, and returns some results. Instead of changing the fopen line each time I would just like to pass the name of the file to be tested. I tried

[PHP] a passion to perform ;)

2004-05-13 Thread Matthias H. Risse
Hi, i just benchmarked some of my applications with PEAR::Benchmark and would like to know if any of you have good literature regarding PHP and performance in generall? I am not talking about precompiled scripts (ioncube, zend, ..) Basically I am trying to find out how good a standard HTML

RE: [PHP] a passion to perform ;)

2004-05-13 Thread Robert Sossomon
I still stick with the old rule: If it takes more then 2 seconds to load anything, 5 seconds to do a complete page with lots of images on dial-up then you have to go back to the drawing board. 2-5 seconds has always been your window to get a page to load and keep the visitor. On top of that stay

Re: [PHP] Is it possible to pass arguements when using PHP before 4.3.n?[SOLVED]

2004-05-13 Thread Marek Kilimajer
Jay Blanchard wrote: Is it possible to pass arguements when using PHP before 4.3.n when doing command line stuff? I have built a small script that opens a file, reads from it, and returns some results. Instead of changing the fopen line each time I would just like to pass the name of the file to

[PHP] php-mysql problem

2004-05-13 Thread Jianping Zhu
I have redhat 9.0 and Server version: Apache/2.0.40. i have installed rpms php-4.2.2-17.2.i386.rpm php-mysql-4.2.2-17.2.i386.rpm After i create a database called mydb and serveral tables in mysql, I tried to run following testdb.php script

Re: [PHP] site search engine.. not dynamic

2004-05-13 Thread Marek Kilimajer
Aaron Wolski wrote: Hi all, Can anyone point me in the direction of a site search engine that reads files in a directory find relevant results for an search term that a person might enter on a site? I need to build a site search engine but the problem is. the site isn't dynamic (yet) so I need

[PHP] dinamic hashes

2004-05-13 Thread Yivi
Hello everyone. I am having a stupid problem with a couple of arrays, tried a couple of things but I am feeling disconcerted. The thing is, I thought it was possible to create arrays in a dynamic fashion, as in: $newarray['newkey'] = new_value; And the array would be incremented accordingly.

[PHP] Webcapture to PDF

2004-05-13 Thread Ashley M. Kirchner
Looking for a (open source) solution here: is there some way that I can convert an already existing HTML page to a PDF file, by means of a script (on a unix box)? What I'd like to do is have a button on all of our pages that, when clicked on, will perform a capture of that page, including

Re: [PHP] dinamic hashes

2004-05-13 Thread Tom Rogers
Hi, Thursday, May 13, 2004, 9:59:23 PM, you wrote: Y Hello everyone. Y I am having a stupid problem with a couple of arrays, tried a couple of Y things but I am feeling disconcerted. Y The thing is, I thought it was possible to create arrays in a dynamic Y fashion, as in: Y $newarray['newkey'] =

Re: [PHP] php-mysql problem

2004-05-13 Thread Oliver Hankeln
Hello, [snip] but i got error message with: http://coopunit.forestry.uga.edu:8080/testdb.php the error is: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/testdb.php on line 13 How can Fix this problem? Thanks [/snip] Your PHP is compiled without

Re: [PHP] Webcapture to PDF

2004-05-13 Thread Matt Matijevich
[snip] Looking for a (open source) solution here: is there some way that I can convert an already existing HTML page to a PDF file, by means of a script (on a unix box)? [/snip] You could try http://www.easysw.com/htmldoc/ I have not used it but there is php examples on the site -- PHP

[PHP] Saving and mailing remote file

2004-05-13 Thread Sascha Meyer
Hi there! I need to email linked files (URLs are retrieved from a database) with PHP but after I downloaded the remote file through my script the downloaded file headers are always damaged ( I tried to download pdf and zip files). Could one of you help me in saving the remote file to the local

php-general Digest 13 May 2004 08:26:03 -0000 Issue 2760

2004-05-13 Thread php-general-digest-help
php-general Digest 13 May 2004 08:26:03 - Issue 2760 Topics (messages 186042 through 186076): SuExec and PHP 186042 by: Travis Low Re: include (or require) doesn't seem to work 186043 by: Torsten Roehr Re: User/Group rights system? 186044 by: Torsten Roehr mcrypt

[PHP] Re: Ordering alphabetical in secondary select string

2004-05-13 Thread Dennis Biletsky
R.G. Vervoort [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:[EMAIL PROTECTED] Does anyone have a suggestion how I can order a list with names in a secondary select string. The first string selects a number of locations where people work From this string I get several

[PHP] php and bugport problem

2004-05-13 Thread Heba Mushtaha
Hello, I have installed bugport (it is a bug tracking tool (web based interface), for developers , testers , QA to report bugs and track them through out the whole development life cycle, it uses php as its language , the link is http://www.incogen.com/index.php?type=Generalparam=bugport )

RE: [PHP] FIXED: Max file size for uploads?

2004-05-13 Thread Ford, Mike [LSS]
On 12 May 2004 16:48, Robert Sossomon wrote: It's fixed now.. If using Apache on RedHat here is everything to fix at once: FIRST AND FOREMOST DECIDE THE MAX SIZE YOU WANT IN MB, ADD A COUPLE MORE TO IT, AND THEN CONVERT TO BYTES (MB * 1024 * 1024) 1. httpd/conf.d/php.conf

[PHP] Re: PHP5 and static attributes

2004-05-13 Thread Rudy Metzger
On Thu, 2004-05-13 at 11:41, Gregory wrote: Rudy Metzger wrote: Although you are correct with your explanations to better use methods and private/protected attributes, this is not the core of the problem. The problem is that self:: always refers to the current class (A or B or C), so if you

Re: [PHP] PHP /\ UML

2004-05-13 Thread Martin Hjort Eriksen
Matthias H. Risse wrote: thanks. i just dislike the idea of usingdesktop apps bound to a single gui. why the hell we need this in times of java/awt/swing, .net, xul and other funky technologies? any more ideas? /m A late reply, but I just discovered that Dia also supports PHP, or rather, a

[PHP] Common Functions

2004-05-13 Thread Shaun
Hi, I have designed my site such that all my common functions are stored in one file which is included in all other files. So if ever someone presses a submit button or a link with a special $_GET variable that matches a variable in the common file the function is performed. e.g. //common.php

[PHP] Re: Common Functions

2004-05-13 Thread Aidan Lister
This doesn't sound like a very secure method of doing things at all. Also, managing a file that big sounds like quite a nightmare. Have you looked at using OOP stuff? Use a couple of standard pear classes like Auth, MDB2, and you're well on your way to having a very maintainable site. Shaun

Re: [PHP] a good user directory application...

2004-05-13 Thread Aidan Lister
Nothing this big will be solid, if you're looking for a complete PHP website system, try postnuke/phpnuke whatever. Bruce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ryan... we've seen apps that have had some of the functions we're looking for... ie dating apps, cms systems,

[PHP] Re: Ordering alphabetical in secondary select string

2004-05-13 Thread Joe Parish
Can you combine the queries? Take the following example, given that there is a table post and there is a table sprite. The post table contains several fields including a SPRITEID field whos value corresponds directly the unique identifier of the same name (SPRITEID) in the sprite table. The

[PHP] updating pdf

2004-05-13 Thread mserra
hi, I'm working on a project and i need to modify some pdf files before printing them. In fact, i got some pdf models, and a database which contains informations to print. I want to add this informations in pdf files and then start printing. My problem at this time is that i don't find any free

RE: [PHP] updating pdf

2004-05-13 Thread Jay Blanchard
[snip] I'm working on a project and i need to modify some pdf files before printing them. In fact, i got some pdf models, and a database which contains informations to print. I want to add this informations in pdf files and then start printing. My problem at this time is that i don't find any

RE: [PHP] php and bugport problem

2004-05-13 Thread Jay Blanchard
[snip] Hello, I have installed bugport (it is a bug tracking tool (web based interface), for developers , testers , QA to report bugs and track them through out the whole development life cycle, it uses php as its language , the link is http://www.incogen.com/index.php?type=Generalparam=bugport

RE: [PHP] Saving and mailing remote file

2004-05-13 Thread Jay Blanchard
[snip] Could one of you help me in saving the remote file to the local webserver? [/snip] Can you be more clear here? There is a file on a remote server that you want to save locally? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] updating pdf

2004-05-13 Thread Chris Hayes
At 14:48 13-5-04, you wrote: [snip] Can you please tell me if you know something that could be used in php to do it freely. [/snip] http://us2.php.net/pdf Is everyone familiar with the search function on php.net? #Jay: ain't that the one that you have to pay for for commercial use? #Marc:

Re: [PHP] updating pdf

2004-05-13 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: hi, I'm working on a project and i need to modify some pdf files before printing them. In fact, i got some pdf models, and a database which contains informations to print. I want to add this informations in pdf files and then start printing. My problem at this time is

[PHP] Trouble with using isset and form posting

2004-05-13 Thread Tom Chubb
I think I'm missing something here really obvious! I am using a script where you get a variable from one page and post to another. I've just realised that some people are jumping straight to the second page (it rates higher in search engines) so the variable (yourname) remains unset. I want to use

RE: [PHP] Trouble with using isset and form posting

2004-05-13 Thread Jay Blanchard
[snip] A simplified version of the code is shown below and is posting to itself. Any idea what I'm doing wrong? ?PHP if(!isset($_GET['realname'])) { $realname = 'Your Name'; } ? html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Marek Kilimajer
Michal Migurski wrote: Isn't this potentially a DoS attack vector anyway? I don't need a server to accept or read my obscenely long POST requests to clog the pipes with them. Would the proper way to handle this risk be to disallow POST at the webserver level, or does turning

[PHP] Antwort: RE: [PHP] Saving and mailing remote file

2004-05-13 Thread Sascha Meyer
Hi again, I need to download a remote file (e.g. some linked pdf document on another server) and send this file to a defined user. I don't know if there is a way to attach a remote file to an email (I don't want to send a link to the above mentioned file, but the file itself...) Sascha --

[PHP] RE: Antwort: RE: [PHP] Saving and mailing remote file

2004-05-13 Thread Jay Blanchard
[snip] I need to download a remote file (e.g. some linked pdf document on another server) and send this file to a defined user. I don't know if there is a way to attach a remote file to an email (I don't want to send a link to the above mentioned file, but the file itself...) [/snip] You

Re: [PHP] Antwort: RE: [PHP] Saving and mailing remote file

2004-05-13 Thread Burhan Khalid
Sascha Meyer wrote: Hi again, I need to download a remote file (e.g. some linked pdf document on another server) and send this file to a defined user. I don't know if there is a way to attach a remote file to an email (I don't want to send a link to the above mentioned file, but the file

[PHP] Re: Antwort: RE: [PHP] Saving and mailing remote file

2004-05-13 Thread AcZ
Sascha Meyer wrote: Hi again, I need to download a remote file (e.g. some linked pdf document on another server) and send this file to a defined user. I don't know if there is a way to attach a remote file to an email (I don't want to send a link to the above mentioned file, but the file

[PHP] Antwort: RE: Antwort: RE: [PHP] Saving and mailing remote file

2004-05-13 Thread Sascha Meyer
Hi Jay, that's exactly what I need to accomplish (as I mentioned: I wanted to download the file to the webserver - which means saving the file locally, cause that's where the script resides - and then send it to the email recipient). I need to find a way to download the file itself, the rest

[PHP] Re: PHP5 - instanceof

2004-05-13 Thread Greg Beaver
Martin Towell wrote: I have been playing with PHP5 and am liking it more and more. But I have one question about instanceof If you have something like this: ? class A { } class B extends A { } $x = new B; if ($x instanceof B) echo B; if ($x instanceof A) echo A; ? This would echo BA. That's

Re: [PHP] ADS authentication

2004-05-13 Thread Kuldeep Singh Tomar
Hi Ray, Finally I am able to authenticate my user to ADS using php. Thanks for your suggestions. My bind_dn was not correct. After that I have searched and found that using anonymous user we can not search in subtree of directory server. So first I used my credential to bind to directory

Re: [PHP] ADS authentication

2004-05-13 Thread Ray Hunter
On Thu, 2004-05-13 at 08:36, Kuldeep Singh Tomar wrote: Finally I am able to authenticate my user to ADS using php. Thanks for your suggestions. My bind_dn was not correct. After that I have searched and found that using anonymous user we can not search in subtree of directory server. So

RE: [PHP] Saving and mailing remote file

2004-05-13 Thread Oliver Hankeln
Sascha Meyer wrote: Hi Jay, that's exactly what I need to accomplish (as I mentioned: I wanted to download the file to the webserver - which means saving the file locally, cause that's where the script resides - and then send it to the email recipient). I need to find a way to download

[PHP] MySQL backup

2004-05-13 Thread Matthew Oatham
Hi, I am using MySQL database accessed via myphp admin - there is an export option which allows me to export the structure and data to an sql file but this is a manual procedure is there anyway to automate this via myphp admin i.e. using a cron job? Thanks

Re: [PHP] Variables Help

2004-05-13 Thread John W. Holmes
From: Steve Douville [EMAIL PROTECTED] ? $a = yes; $b = no; ? Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like something that

Re: [PHP] MySQL backup

2004-05-13 Thread John W. Holmes
From: Matthew Oatham [EMAIL PROTECTED] I am using MySQL database accessed via myphp admin - there is an export option which allows me to export the structure and data to an sql file but this is a manual procedure is there anyway to automate this via myphp admin i.e. using a cron job? The

[PHP] Re: [PHP-DB] php-mysql problem

2004-05-13 Thread Jianping Zhu
Hi, thank you for your respinse. It the /etc/php.ini i have something like: ; ; extension=modulename.extension ; ; For example: ; extension=mysql.so if you go to http://coopunit.forestry.uga.edu:8080/test.php you will find mysql is not installed as an extension. but i do not know how to

Re: [PHP] php-mysql problem

2004-05-13 Thread Jianping Zhu
Thank you for your response. I get the php rpm distributed with redhat 9.0. Do I have to recompile phd instead from source code with mysql support? Thanks On Thu, May 13, 2004 at 06:15:23PM +0200, Oliver Hankeln wrote: Hello, [snip] but i got error message with:

[PHP] Variables Help

2004-05-13 Thread Steve Douville
? $a = yes; $b = no; ? Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. TIA

Re: [PHP] Variables Help

2004-05-13 Thread Adrian
$GLOBALS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables Help

2004-05-13 Thread Richard Davey
Hello Steve, Thursday, May 13, 2004, 6:19:07 PM, you wrote: SD Is there a variable that I can call that will return an array with any SD variables I have set? I'd want to call it and then parse and display current SD values of, in this case, a and b. Hope that makes sense. get_defined_vars();

RE: [PHP] site search engine.. not dynamic

2004-05-13 Thread James Tusini
you could try php dig as well as htdig -Original Message- From: Aaron Wolski [mailto:[EMAIL PROTECTED] Sent: 13 May 2004 01:25 To: 'PHP-General' Subject: [PHP] site search engine.. not dynamic Hi all, Can anyone point me in the direction of a site search engine that reads files in a

Re: [PHP] MySQL backup

2004-05-13 Thread Matthew Oatham
Mmmm my provider doesn't give me access to this area ! - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: Matthew Oatham [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 13, 2004 6:40 PM Subject: Re: [PHP] MySQL backup From: Matthew Oatham [EMAIL PROTECTED] I

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
John W. Holmes wrote: From: Steve Douville [EMAIL PROTECTED] ? $a = yes; $b = no; ? Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like

Re: [PHP] MySQL backup

2004-05-13 Thread John Nichel
Matthew Oatham wrote: Hi, I am using MySQL database accessed via myphp admin - there is an export option which allows me to export the structure and data to an sql file but this is a manual procedure is there anyway to automate this via myphp admin i.e. using a cron job? Thanks Use a cron and

Re: [PHP] php-mysql problem

2004-05-13 Thread John Nichel
Jianping Zhu wrote: Thank you for your response. I get the php rpm distributed with redhat 9.0. Do I have to recompile phd instead from source code with mysql support? Thanks You need to install the php-mysql rpm. It will be on one of your Red Hat Discs. -- John C. Nichel KegWorks.com

Re: [PHP] MySQL backup

2004-05-13 Thread John Nichel
Matthew Oatham wrote: Mmmm my provider doesn't give me access to this area ! To what area? mysqldump, or cron? -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL backup

2004-05-13 Thread John W. Holmes
From: Matthew Oatham [EMAIL PROTECTED] I am using MySQL database accessed via myphp admin - there is an export option which allows me to export the structure and data to an sql file but this is a manual procedure is there anyway to automate this via myphp admin i.e. using a cron job?

Re: [PHP] Webcapture to PDF

2004-05-13 Thread James E Hicks III
On Thursday 13 May 2004 11:59 am, Ashley M. Kirchner wrote: Looking for a (open source) solution here: is there some way that I can convert an already existing HTML page to a PDF file, by means of a script (on a unix box)? What I'd like to do is have a button on all of our pages that,

[PHP] PHPSESSID Being Stubbornly Persistent

2004-05-13 Thread Monty
I have the following lines in a PHP script: ini_set('session.save handler','user'); ini_set('session.use_cookies', '1'); ini_set('session.use_only_cookies', '1'); ini_set('session.cookie_lifetime', '0'); ini_set('session.use_trans_sid', '0'); I do not want the Session ID to be passed via the

Re: [PHP] Variables Help

2004-05-13 Thread Monty
Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like something that Returns an array of all defined variables??

[PHP] Error Passing Command in URL

2004-05-13 Thread Dragon
Hi, I have a Calendar Script for my Clan, but I didn't getting it to work. You can See my Script under www.knallepuff.de/calendar If I/You try to open the Admin-Sektion ?open=admin Nothing happens, you will only reload the main view. This Script ist working on many other Server, but not on

Re: [PHP] PHPSESSID Being Stubbornly Persistent

2004-05-13 Thread Matt Matijevich
[snip] ini_set('session.use_trans_sid', '0'); [/snip] I think, at least according to the manual session.use_trans_sid can only be set in php.ini, .htaccess or httpd.conf http://www.php.net/ini_set look at session.use_trans_sid -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Error Passing Command in URL

2004-05-13 Thread Jason Barnett
We'll probably need source code to help you out with this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
Monty wrote: Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of the array created by get_defined_vars. Monty

Re: [PHP] Variables Help

2004-05-13 Thread Jason Barnett
Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of the array created by get_defined_vars. Monty Why not just unset

Re: [PHP] Variables Help

2004-05-13 Thread John W. Holmes
From: Monty [EMAIL PROTECTED] Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. Like something that Returns an array of all defined

[PHP] Re: PHPSESSID Being Stubbornly Persistent

2004-05-13 Thread Jason Barnett
Out of curiosity, how were you planning on passing session id's? Through POST variables? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables Help

2004-05-13 Thread John Nichel
John W. Holmes wrote: ?php $starting_vars = get_defined_vars(); //bunch of PHP code... $current_vars = get_defined_vars(); $user_defined_vars = array_diff($current_vars,$starting_vars); ... ---John Holmes... This cat is skinned. :) -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL

[PHP] Re: PHPSESSID Being Stubbornly Persistent

2004-05-13 Thread Matt Matijevich
[snip] Out of curiosity, how were you planning on passing session id's? Through POST variables? [/snip] I would guess cookie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
Currently, I have a Link to show a PDF file ? print('Click a href=' . $url . $sfyc_race_schd_send . ' Name=Race Schedule Target=_blankhere/a to open the Race Schedule'); ? I want to replace it with a button and an OnClick() ? print('input type=button name = View Schedule OnClick='); ? I

Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread John Nichel
Todd Cary wrote: Currently, I have a Link to show a PDF file ? print('Click a href=' . $url . $sfyc_race_schd_send . ' Name=Race Schedule Target=_blankhere/a to open the Race Schedule'); ? I want to replace it with a button and an OnClick() ? print('input type=button name = View Schedule

Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread John Nichel
John Nichel wrote: Todd Cary wrote: Currently, I have a Link to show a PDF file ? print('Click a href=' . $url . $sfyc_race_schd_send . ' Name=Race Schedule Target=_blankhere/a to open the Race Schedule'); ? I want to replace it with a button and an OnClick() ? print('input type=button

[PHP] references

2004-05-13 Thread Vladislav Shulgin
Hi! I found that when I try to call class method addchild from reference of object - php change not original object. New copy of object will created. Very strange Example: ? class pages { var $childs; var $absnum; function pages($absnum) { $this-absnum = $absnum; } function

[PHP] Socket looping challenge

2004-05-13 Thread René Fournier
Hi all, Still encountering some challenges with my socket loop. Basically, I need this socket client to wait to read incoming data, but if nothing happens for more than three seconds, I want it to do something, then return to waiting (for another three seconds). I've got some good help

RE: [PHP] dinamic hashes

2004-05-13 Thread Ford, Mike [LSS]
On 13 May 2004 12:59, Yivi wrote: Hello everyone. I am having a stupid problem with a couple of arrays, tried a couple of things but I am feeling disconcerted. The thing is, I thought it was possible to create arrays in a dynamic fashion, as in: $newarray['newkey'] = new_value; And the

Re: [PHP] Variables Help

2004-05-13 Thread Jason Barnett
?php $starting_vars = get_defined_vars(); //bunch of PHP code... $current_vars = get_defined_vars(); $user_defined_vars = array_diff($current_vars,$starting_vars); ... ---John Holmes... Oh I like that... wish I would have suggested that one! -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] OnClick handler to show PDF

2004-05-13 Thread Todd Cary
You were close enough...this works: input type=button value=View Schedule onClick=JavaScript:document.location='?php echo ( $url . $sfyc_race_schd_send ); ?' The next challenge is to create a new window and display the file. Todd John Nichel wrote: Todd Cary wrote: Currently, I have a

[PHP] accessing $_POST from another page.

2004-05-13 Thread Edward Peloke
I have a page class which controls what happens within a given page. For example, the code in my index page is this: $page=new AdminPage(); $page-action($action); $page-paint($paint); The paint and action methods simply set include files Function action($action){

[PHP] Re: PHPSESSID Being Stubbornly Persistent

2004-05-13 Thread Monty
From: [EMAIL PROTECTED] (Jason Barnett) Out of curiosity, how were you planning on passing session id's? Through POST variables? In cookies only. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Variables Help

2004-05-13 Thread Ford, Mike [LSS]
On 13 May 2004 19:52, John Nichel wrote: Monty wrote: Is there any way to get JUST the user-defined variables in PHP? Problem with get_defined_vars() is that it contains everything, including server and environment vars, and there's no easy way to keep just the user-defined vars part of

[PHP] Reversing a string?

2004-05-13 Thread Kristian Rasmussen
Hi all, I need a script for reversing a string (hello world becomes dlrow olleh). I have tried the following: --- $length = strlen($i); $g = ; while ($length 0) { $g = $i[$length] . $g; $length--; } echo $g; --- With, obviously, no success. Is this the way or could array_reverse()

[PHP] Reversing a string?

2004-05-13 Thread Kristian Rasmussen
Hi all, I need a script for reversing a string (hello world becomes dlrow olleh). I have tried the following: --- $length = strlen($i); $g = ; while ($length 0) { $g = $i[$length] . $g; $length--; } echo $g; --- With, obviously, no success. Is this the way or could array_reverse()

[PHP] Re: Zip-code Form Validation Scripts and Zipcode Program

2004-05-13 Thread Torsten Roehr
Ryan Munevar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey Guys, Question 1: Does anyone have a really good php form validation script for Zip-codes? Question 2: Does anyone know of a great depository of form validation scripts for all kinds of form inputs? Take a look at

[PHP] Load Data infile

2004-05-13 Thread Juan Pablo Herrera
Hi! I need do load data infile in mysql: $query_string2 = LOAD DATA INFILE '/var/www/xls/test' REPLACE INTO TABLE `test` FIELDS TERMINATED BY ',' ENCLOSED BY '\' ESCAPED BY '\\' LINES TERMINATED BY '\n';$query_db_string2 = mysql_query($query_string2); But not realize nothing with execution the

[PHP] Re: problem install pws and php

2004-05-13 Thread Torsten Roehr
Lee 03 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i am a beginner for php programming, my OS is win98 while my webserver is PWS, all is in the same machine,when i try to run my internet explorer( type in http://localhost/phpinfo.php), phpinfo.php cannot be display. i try to

Re: [PHP] Reversing a string?

2004-05-13 Thread Robert Cummings
On Thu, 2004-05-13 at 17:27, Kristian Rasmussen wrote: Hi all, I need a script for reversing a string (hello world becomes dlrow olleh). I have tried the following: --- $length = strlen($i); $g = ; while ($length 0) { $g = $i[$length] . $g; $length--; } echo $g; The

[PHP] Re: Reversing a string?

2004-05-13 Thread Kim Steinhaug
Hehe, managed to do it on first try. This should do it : ?php $string = hello world; $length = strlen($string); if($length1){ $reversed = ; for($i=0;$i$length;$i++){ $reversed .= substr($string,$length-$i,1); echo substr($string,$length-$i,1) . br; } $reversed .=

Re: [PHP] Load Data infile

2004-05-13 Thread Matt Matijevich
[snip] I need do load data infile in mysql: $query_string2 = LOAD DATA INFILE '/var/www/xls/test' REPLACE INTO TABLE `test` FIELDS TERMINATED BY ',' ENCLOSED BY '\' ESCAPED BY '\\' LINES TERMINATED BY '\n';$query_db_string2 = mysql_query($query_string2); But not realize nothing with execution the

Re: [PHP] Load Data infile

2004-05-13 Thread Juan Pablo Herrera
[snip] I need do load data infile in mysql: $query_string2 = LOAD DATA INFILE '/var/www/xls/test' REPLACE INTO TABLE `test` FIELDS TERMINATED BY ',' ENCLOSED BY '\' ESCAPED BY '\\' LINES TERMINATED BY '\n';$query_db_string2 = mysql_query($query_string2); But not realize nothing with

[PHP] mysql blob and phpmysqladmin

2004-05-13 Thread Jianping Zhu
I have mysql table call com. One colum of table com will store user's comments. Because user-provided comment might be too big to fit in char(255), i use blob. but when i try to see it by use phpmysqladmin, i can only see something like [BLOB 345 byes] i can not read the text of the comment. Is

[PHP] Re: mysql blob and phpmysqladmin

2004-05-13 Thread Torsten Roehr
Jianping Zhu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have mysql table call com. One colum of table com will store user's comments. Because user-provided comment might be too big to fit in char(255), i use blob. but when i try to see it by use phpmysqladmin, i can only see

[PHP] Making Printer Friendly files

2004-05-13 Thread Todd Cary
I have a news letter produced by PageMaker that is normally put into PDF format so the user can download it. However, I would like to have a Printer Friendly version (no graphics). Is there a PHP program that can take an HTML version and remove the graphics or is there a better way with

RE: [PHP] Making Printer Friendly files

2004-05-13 Thread Chris W. Parker
Todd Cary mailto:[EMAIL PROTECTED] on Thursday, May 13, 2004 3:15 PM said: I have a news letter produced by PageMaker that is normally put into PDF format so the user can download it. However, I would like to have a Printer Friendly version (no graphics). Is there a PHP program that can

[PHP] Why would a socket be unavailable?

2004-05-13 Thread René Fournier
I get this output: PHP Warning: socket_read() unable to read from socket [35]: Resource temporarily unavailable in /Users/rene/Sites/gpspolice/titan/cr.php on line 63 From this code: do { socket_set_block($socket); socket_set_option($socket,SOL_SOCKET,SO_RCVTIMEO,$timeout);

Re: [PHP] Socket looping challenge

2004-05-13 Thread Tom Rogers
Hi, Friday, May 14, 2004, 5:21:10 AM, you wrote: RF Hi all, RF Still encountering some challenges with my socket loop. Basically, I RF need this socket client to wait to read incoming data, but if nothing RF happens for more than three seconds, I want it to do something, then RF return to

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Daniel Clark
I just read something about sock warnings this morning. It said sometimes they drop off, and to ignore the warnings, but capture the errors. I get this output: PHP Warning: socket_read() unable to read from socket [35]: Resource temporarily unavailable in

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread raditha dissanayake
#1 cause for socket failures happen to be firewalls. René Fournier wrote: I get this output: PHP Warning: socket_read() unable to read from socket [35]: Resource temporarily unavailable in /Users/rene/Sites/gpspolice/titan/cr.php on line 63 From this code: do {

Re: [PHP] references

2004-05-13 Thread Tom Rogers
Hi, Friday, May 14, 2004, 5:10:49 AM, you wrote: VS Hi! VS I found that when I try to call class method addchild from reference of VS object - php change not original object. New copy of object will created. VS Very strange VS Example: VS ? VS class pages { VS var $childs; VS var

Re: [PHP] Socket looping challenge

2004-05-13 Thread René Fournier
The script doesn't even get that first while condition line. It loops a few times (while receiving messages), then when no more messages are coming from the server, and it times-out, it breaks out of the while, then returns to the top again, where it that while condition returns the error

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread René Fournier
There is no firewall. I'm running this locally. On Thursday, May 13, 2004, at 05:00 PM, raditha dissanayake wrote: #1 cause for socket failures happen to be firewalls. René Fournier wrote: I get this output: PHP Warning: socket_read() unable to read from socket [35]: Resource temporarily

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Daniel Clark
http://www.php.net/manual/en/ref.sockets.ph I just read something about sock warnings this morning. It said sometimes they drop off, and to ignore the warnings, but capture the errors. I get this output: PHP Warning: socket_read() unable to read from socket [35]: Resource temporarily

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread René Fournier
On Thursday, May 13, 2004, at 05:13 PM, Daniel Clark wrote: http://www.php.net/manual/en/ref.sockets.ph Yes, I've read that page... many times. It has not helped me. That is why I am posting my problem here, in that hopes that someone can help. (I don't mean to be completely helpless, but I

  1   2   >