[PHP] Re: Read file and get what i want

2003-02-06 Thread Bobby Patel
Check out explode() $file // say this variable has your file contents $lines = explode (\n, $file); // lines contains each line of the file foreach ($lines as $line - $content) { if (strrpos($line, ':')) { $values = explode (':', $content); echo The first value is :

[PHP] Max Limit of post variables

2003-02-06 Thread Stuart Donald
I am trying to generate an html form with approximately 3000 post variables (1500 input type text and 1500 hidden, I am mimicing a grid control). The page will handle several hundred but it crashes with more. Is there a limit to the number of variables that can be sent post. Or is it possible I

[PHP] Php security

2003-02-06 Thread Pushpinder Singh Garcha
Hi all i wanted to check with if it is possible to see the contents of a .php file. I have heard of the Zend Encoder, but I was wondering how could a person see my php script ? Any information in this direction would be useful? TIA --Pushpinder Singh Garcha _

Re: Re: RE: [PHP] Variable Problem

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 22:50, Sunfire wrote: no that doesnt work either what you get when you do that one in the edit box is: using: input type=text name=sent value=?php echo \$sent\;? or any different with echo in the value field gives me in the box: ?php \\;?} ...rest of the script

[PHP] Webyog Releases SQLyog 3.02

2003-02-06 Thread Insanely Great
SQLyog v3.02 - The definitive Windows Front End for MySQL, has been released. It is a superfast, compact and easy to use Front End for MySQL. A must for MySQL PHP developers. SQLyog is FREE! Some of the new features added in SQLyog 3.02 are - -- ODBC Import. The simplest and the most powerful

[PHP] Reading input stream of incoming request

2003-02-06 Thread Reuben D. Budiardja
Hi, How do I read an input stream from incoming request in PHP? The incoming input stream is actually an name=value pair of a POST request method from a client. The reason I ask: I am using Apache + PHP as the backend for creating client-server scheme. The client is a MIDlet apps (J2ME:

Re: [PHP] Php security

2003-02-06 Thread Chris Shiflett
--- Pushpinder Singh Garcha [EMAIL PROTECTED] wrote: i wanted to check with if it is possible to see the contents of a .php file. You can open any normal PHP script in a text editor. I have heard of the Zend Encoder, but I was wondering how could a person see my php script? If you use Zend

Re: [PHP] Max Limit of post variables

2003-02-06 Thread Jonathan Pitcher
Stuart, The limitations you are running into are browser related. The older browsers definitely won't handle that load. And the newer ones can handle more but no where near that load. Have you thought about splitting your form into steps?? Also, you could join all your hidden variables into a

[PHP] Re: Max Limit of post variables

2003-02-06 Thread Seraphim
Stuart Donald wrote: I am trying to generate an html form with approximately 3000 post variables (1500 input type text and 1500 hidden, I am mimicing a grid control). The page will handle several hundred but it crashes with more. Is there a limit to the number of variables that can be sent

[PHP] Re: Forking PHP

2003-02-06 Thread Seraphim
Adam Voigt wrote: Anyone know a way to make PHP on windows fork itself into the background? Doesn't matter if it's a windows trick or whatever, aslong as it's possible so that it doens't appear in the start bar, thats fine. You have to start it as a service I think you need to be logged in

Re: [PHP] Reading input stream of incoming request

2003-02-06 Thread Kevin Stone
All data sent through a POST request is stored in the $_POST array. $_POST['myvar']; -Kevin - Original Message - From: Reuben D. Budiardja [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 06, 2003 1:27 PM Subject: [PHP] Reading input stream of incoming request Hi,

[PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
I am trying to compile PHP 4.3.0 with GD and also with-png,with-jpg and with-freetype. I have installed both png,jpg and freetype2 from a tar file. I was finally able to get it through the configure stage with no errors but now when I run make I am getting the following error. I have know idea

[PHP] passing variables and functions between a base class and subclass

2003-02-06 Thread electroteque
hi there sorry about the long subject , but i have not mastered yet how to pass funtcions and variables between a base and subclass , i cant seem to access variables properly between the bass class and subclass and functions from the subclass in the base class ? -- PHP General Mailing List

Re: [PHP] Reading input stream of incoming request

2003-02-06 Thread Reuben D. Budiardja
On Thursday 06 February 2003 03:39 pm, Kevin Stone wrote: All data sent through a POST request is stored in the $_POST array. $_POST['myvar']; -Kevin I know that. That's not what I am asking though. OK, let me just give a more concrete examples. I browse the archive and found the

[PHP] jumping between php and html or using echo for printing html-tags.

2003-02-06 Thread anders thoresson
Which is more efficient: function admin_menu() { echo B Meny /BBR; echo A HREF=\ . $_SERVER['PHP_SELF'] . ?action= . MANAGE_MEMBERS . \Medlemmar/ABR; echo A HREF=\ . $_SERVER['PHP_SELF'] . ?action= . MANAGE_ALBUMS . \Album/ABR; echo A HREF=\ . $_SERVER['PHP_SELF'] . ?action= . INITIAL_PAGE

Re: [PHP] empty and isset

2003-02-06 Thread Sunfire
actually so does empty end up testing true on an empty var... thats because empty thinks or string(0) is actually a string just blank... a trick to do with empty is use !empty which will say if the string is at least 1 char long other wish if it is less than 1 char long even though a string does

[PHP] stripping %20 and other characters from query string

2003-02-06 Thread Sarah Gray
Hello, Forgive me if this is an obvious question, but I am passing a value (a string with spaces and quotations) back in a query string and do not know how to strip the extra characters that have been placed into it. For example. $value = Sarah's Test Page query string =

Re: [PHP] stripping %20 and other characters from query string

2003-02-06 Thread Jason k Larson
Try these: http://www.php.net/manual/en/function.urldecode.php http://www.php.net/manual/en/function.rawurldecode.php HTH, Jason k Larson Sarah Gray wrote: Hello, Forgive me if this is an obvious question, but I am passing a value (a string with spaces and quotations) back in a query string

Re: [PHP] stripping %20 and other characters from query string

2003-02-06 Thread Jonathan Pitcher
Sarah, There are a couple functions that could do this for you. Probably the fastest one for your example would be as follows. $NewString = str_replace('%20', ' ', $value); // Removes the %20 characters $NewString = str_replace '\', '', $NewString); // Removes \ character echo $NewString;

Re: [PHP] Reading input stream of incoming request

2003-02-06 Thread Chris Shiflett
--- Reuben D. Budiardja [EMAIL PROTECTED] wrote: I browse the archive and found the following code to simulate a POST request using socket connection. This will send a request to my own server (localhost). And then, I also have the second code (included) for /devel/php_post.php, which is the

Re: [PHP] jumping between php and html or using echo for printing html-tags.

2003-02-06 Thread Chris Shiflett
--- anders thoresson [EMAIL PROTECTED] wrote: Which is more efficient: Your first method is more efficient according to my quick test, though I find myself preferring the second when I write code due to the readability advantages. The difference is small, however. Here is the code I used to

Re: [PHP] jumping between php and html or using echo for printing html-tags.

2003-02-06 Thread Chris Shiflett
--- Chris Shiflett [EMAIL PROTECTED] wrote: Your first method is more efficient according to my quick test, though I find myself preferring the second when I write code due to the readability advantages. The results went the other way when I tested this using mod_php rather than the CLI, and

[PHP] php headers already sent error.

2003-02-06 Thread Chris Winters
Im SO CLOSE! Welll to start I had everything running FINE (MySQL, Apache, and PHP) until I installed STUPID Zend Studio for PHP. After their 30 day trial expired, I uninstalled it and everything just went downhill. After re installing everything, I have these errors left over. Now the code is

[PHP] Include directoive on PHP.

2003-02-06 Thread Harring Figueiredo
I would like to include some of the files ( tabel.php, etc ) from PEAR on my scripts - Do I have to hardcode the installation path ? or is there a directive that tells the preprocessor to look on the right place (Like in c)? Thanks in advance. HArring

Re: [PHP] Reading input stream of incoming request

2003-02-06 Thread Reuben D. Budiardja
On Thursday 06 February 2003 05:22 pm, Chris Shiflett wrote: --- Reuben D. Budiardja [EMAIL PROTECTED] wrote: I browse the archive and found the following code to simulate a POST request using socket connection. This will send a request to my own server (localhost). And then, I also

[PHP] Re: passing variables and functions between a base class and subclass

2003-02-06 Thread Justin Garrett
?php class base { var $a; function hello(){ echo hello; } } class sub extends base { function hi(){ $this-a = hi; $this-hello(); } } $foo = new sub; $foo-hi(); echo $foo-a; ? Justin Garrett Electroteque [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Include directoive on PHP.

2003-02-06 Thread Justin Garrett
Edit php.ini and add the pear directory to your include_path or use ini_set to set your include_path in your script: http://www.php.net/manual/en/function.ini-set.php Justin Garrett Harring Figueiredo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I would

[PHP] Re: php headers already sent error.

2003-02-06 Thread Justin Garrett
http://www.php.net/manual/en/faq.using.php#faq.using.headers-sent Justin Garrett Chris Winters [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Im SO CLOSE! Welll to start I had everything running FINE (MySQL, Apache, and PHP) until I installed STUPID Zend

[PHP] if(!empty()) statement

2003-02-06 Thread Sunfire
hi.. i have a combobox that has members from a mysql database loaded into it.. one of the choices is select a member to edit and has a value of . now if a person selects select a member to edit, then an error message shows up saying they need to select a member to edit and puts them back to the

[PHP] Stream does not support seeking

2003-02-06 Thread Pierre-Luc Soucy
Hi, We have recently upgraded to PHP 4.30 and since then, some people on our server started getting the following error message on their sites: Warning: main() [function.main]: stream does not support seeking in http://www.domain.com/path/to/file.inc on line 0 We have found that it happens

Re: [PHP] if(!empty()) statement

2003-02-06 Thread Kevin Stone
Before I say a word I'd just like to inform you that these are the types of questions better left to books and tutorials rather than live help. That being said, ELSE does not need to follow IF. Code the condition you want to capture and perform your error message on that. // Enter if member not

Re: [PHP] upgrade issues

2003-02-06 Thread Jason Sheets
It looks like your code is using register globals which are turned off by default in PHP 4.2 and greater. You can either modify your code to use the PHP super globals or turn register globals back on (you can do this in php.ini or via an httpd.conf/.htaccess). Jason On Thu, 2003-02-06 at 08:12,

Re: [PHP] Stupid question, sorry...

2003-02-06 Thread Jason Sheets
Because PHP performs evaluation on the contents of double quotes and does not evaluate the contents of single quotes. This is covered in the PHP manual in the Variables section at http://www.php.net/manual/en/language.variables.php. Jason On Thu, 2003-02-06 at 08:27, Chris Boget wrote: Why is

RE: [PHP] Webyog Releases SQLyog 3.02

2003-02-06 Thread Daevid Vincent
Dude. That freakin' form that asks for my email/name EVERY time has to go. Make that shit voluntary. It's annoying as hell, and is just forcing me (and others) to enter bunk info everytime we want an update to this product. -Original Message- From: Insanely Great [mailto:[EMAIL

RE: [PHP] jumping between php and html or using echo for printing html-tags.

2003-02-06 Thread Daevid Vincent
Fatal error: Call to undefined function: floatval() in /home/dae51d/public_html/examples/echotest.php on line 14 -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 2:40 PM To: anders thoresson; [EMAIL PROTECTED] Subject: Re: [PHP]

Re[2]: [PHP] empty and isset

2003-02-06 Thread Tom Rogers
Hi, Friday, February 7, 2003, 4:39:42 AM, you wrote: JW On Friday 07 February 2003 01:35, [EMAIL PROTECTED] wrote: Thanks for clearing that up. JW Hmm, it seems like you still haven't grasped it yet :) So input of type text does a set, which makes isset() true, JW Correct. but isset()

RE: [PHP] jumping between php and html or using echo for printing html-tags.

2003-02-06 Thread Chris Shiflett
--- Daevid Vincent [EMAIL PROTECTED] wrote: Fatal error: Call to undefined function: floatval() in /home/dae51d/public_html/examples/echotest.php on line 14 Please try to make an effort and do a little research of your own before asking the list:

[PHP] Different dates with lmost same script

2003-02-06 Thread Miguel Brás
Hi, I have 2 pages that shows a table contents On one, it shows the title and date with the following script ** ? // includes include(../regulations/conf.php); include(../regulations/functions.php); // abre ligação à base de dados $connection =

[PHP] problems with ==?

2003-02-06 Thread Peter Gumbrell
In the following code $view = $HTTP_GET_VARS[view]; print $view; if ($view == vendor) { code here } print $view produces 'vendor' but the if statement in the next section isn't being triggered. Can anyone see what is wrong here? I have tried double quotes, single quotes and no quotes around

RE: [PHP] problems with ==?

2003-02-06 Thread Martin Towell
check for leading/trailing spaces if (trim($view) == vendor) HTH Martin -Original Message- From: Peter Gumbrell [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 3:07 PM To: Php-General Subject: [PHP] problems with ==? In the following code $view = $HTTP_GET_VARS[view];

RE: [PHP] WYSIWYG Content Management system?

2003-02-06 Thread @ Nilaab
Why don't you two gather up a few more developers, decide on what is needed and what the goals are, then assign parts to build for the new CMS. Once finished, you can maybe present it to PHP.net and see if they will allow it to be developed and documented in the future by other developers. A CMS

RE: [PHP] WYSIWYG Content Management system?

2003-02-06 Thread Luke Woollard
www.webeditpro.com has a nice 'static' page editor with one of the most advanced WYSIWYG interfaces I've seen. The company I work for uses a similar one I wrote named SITEWAVE however they wont let me release it under GPL. Heres a great article on building one which I used as the basis for

Re: [PHP] Client Side PHP

2003-02-06 Thread Justin French
on 07/02/03 2:41 AM, Pete ([EMAIL PROTECTED]) wrote: Think thje user base will be quite big if we got it together. How many oho programmers are there who struggle with Javascript - me included ;-) Anyway the opensourcness of php would make the plugins more efficient for each browser. I

<    1   2