[PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Tariq Murtaza
Dear All, I am wondering if anyone shed some light. i am thinking of setting value for php.ini variables like register_globals = ON/OFF at runtime (within our php script). Is there any function built-in in php?, or can we do it ourselves. Looking forward, Thanks Tariq -- PHP General Mailing

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Rasmus Lerdorf
You cannot do it inside a script as the register_globals magic happens before the script starts executing, so toggling the setting at runtime is too late. -Rasmus On Mon, 25 Nov 2002, Tariq Murtaza wrote: Dear All, I am wondering if anyone shed some light. i am thinking of setting value for

[PHP] Use PHP for reading binary files created by C software

2002-11-25 Thread Tim Molendijk
Hi all, I would like to use PHP to read a binary file which contains a structure in C, such as: struct simple { int a; float b; }; with f.e. a = 2 and b = 1.5. Please notice that this is stored as *binary* data and not as text. I know it is possible to read binary files using fgets() in

[PHP] File uploads...

2002-11-25 Thread David Russell
Hi all, I am updating a site accounting for register_globals = off. I have a page which allows for the uploading of a number of files. The page sends these in an array of files. The destination script used to have: if ($AttachmentCount 0) { foreach($userfile as $key = $value) {

[PHP] Re: inserting preexisting image inside dynamic image

2002-11-25 Thread Erwin
Eric Pierce wrote: Hi there... Just wondering... when creating a dynamic image, is there a way/fuction to insert an existing image using x,y coordiantes for precision? Yes, there is...use imagecopy (http://www.php.net/imagecopy) Grtz Erwin -- PHP General Mailing List

[PHP] Dumb POST Array question

2002-11-25 Thread David Russell
Hi all, I have a multiple select called Consultants[] In one page. On the target page, how would I reference it? Would it be: $_POST['Consultants'][0] $_POST['Consultants'][1] Etc Or something else? Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250

[PHP] Re: Dumb POST Array question

2002-11-25 Thread Erwin
David Russell wrote: Hi all, I have a multiple select called Consultants[] In one page. On the target page, how would I reference it? Would it be: $_POST['Consultants'][0] $_POST['Consultants'][1] Etc Since $_POST['Consultants'] contains an array, you can indeed use the above syntax.

Re: [PHP] Dumb POST Array question

2002-11-25 Thread Jason Wong
On Monday 25 November 2002 16:48, David Russell wrote: Hi all, I have a multiple select called Consultants[] In one page. On the target page, how would I reference it? Would it be: $_POST['Consultants'][0] $_POST['Consultants'][1] If in doubt, print it out (TM): print_r($_POST); The

[PHP] URL Encode to send as form POSTed Items

2002-11-25 Thread Zac Hillier
Hi All, I would like to know if it's possible to use php to encode form variables as if they had come from a post form instead of a get form. I imagine I need to place them into a header but cannot find much to read that gives any information on this. I need to create form variables and than use

[PHP] mysql

2002-11-25 Thread Adrian Partenie
Hello, 1.How many tables can be created inside a database? There is a maximum number? 2.Is it possible to erase a table? Thanks, Adrian

Re: [PHP] Use PHP for reading binary files created by C software

2002-11-25 Thread Rasmus Lerdorf
php.net/unpack On Sun, 24 Nov 2002, Tim Molendijk wrote: Hi all, I would like to use PHP to read a binary file which contains a structure in C, such as: struct simple { int a; float b; }; with f.e. a = 2 and b = 1.5. Please notice that this is stored as *binary* data and not as

Re: [PHP] URL Encode to send as form POSTed Items

2002-11-25 Thread Rasmus Lerdorf
You can't send POST data with a Location redirect. You can do it by connecting directly to port 80 of the remote server and sending the POST data. -R On Mon, 25 Nov 2002, Zac Hillier wrote: Hi All, I would like to know if it's possible to use php to encode form variables as if they had

RE: [PHP] mysql

2002-11-25 Thread John W. Holmes
From now on ask this on a MySQL list, please. 1.How many tables can be created inside a database? There is a maximum number? Only limit is how many files your file system will allow in one directory. 2.Is it possible to erase a table? Yes ---John Holmes... -- PHP General Mailing List

[PHP] Problem on OpenDir()

2002-11-25 Thread Jack
Dear all here is the path i want to open for reading files from it! path = c:/pdf_reports/bills/Oct-02 i always got returned with these error : Warning: OpenDir: Invalid argument (errno 22) in c:/page.php on line 21 Warning: Supplied argument is not a valid Directory resource in c:/page.php

[PHP] Overloading Constructors

2002-11-25 Thread Dan Field
is it doable? ie class myClass { var $myInt; // default constructor function myClass() { } // overloaded constructor function myClass($newInt) { $this-myInt = $newInt; } } -- Dan Field Systems Development

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread DL Neil
Excuse me breaking in...somewhat similar problem: Have set up a client recently, preaching security persuaded them into updating so that could run Register_Globals=Off. Now they want to install a 'wiki' which requires (to my horror) Register_Globals=On. Short of two Apache/PHP servers, what is a

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Justin French
a .htaccess file in the directory you want RG OFF (ie /wiki/) should do the trick: IfModule mod_php4.c php_flag register_globals on /IfModule This seems to work for me... on 25/11/02 10:37 PM, DL Neil ([EMAIL PROTECTED]) wrote: Excuse me breaking in...somewhat similar problem: Have

[PHP] Re: Overloading Constructors

2002-11-25 Thread Jacob Larsen
Yes. http://www.sharksforum.com Dan Field [EMAIL PROTECTED] skrev i en meddelelse 1038221845.1245.144.camel@dsspc">news:1038221845.1245.144.camel@dsspc... is it doable? ie class myClass { var $myInt; // default constructor function myClass() { } // overloaded constructor function

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Jason Wong
On Monday 25 November 2002 19:37, DL Neil wrote: Excuse me breaking in...somewhat similar problem: Have set up a client recently, preaching security persuaded them into updating so that could run Register_Globals=Off. Now they want to install a 'wiki' which requires (to my horror)

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread DL Neil
Justin, Neat! Don't limit thoughts to PHP when can solve it in Apache - thank you, =dn a .htaccess file in the directory you want RG OFF (ie /wiki/) should do the trick: IfModule mod_php4.c php_flag register_globals on /IfModule This seems to work for me... on 25/11/02 10:37 PM,

[PHP] Send multiple SQL staments in one query

2002-11-25 Thread Miguel López Dinaweb Dpto. Programación
Hi, I can't send multiple sql staments in one query, i always get an error saying that the sentece is incorrect, i thorw the sentece in a mysql console and works fine, i'm sepraing sentences with ; i try to separe using ;\n or ;\r\n but don't work Anyone can help me? :-)

Re: [PHP] does //commenting reduce performance?

2002-11-25 Thread DL Neil
Jason, ad infinitum, ad nauseum However it was your recent post that (sig file) quoted the Freudian: ontogency recapitulates phylogeny We should make them become more like us - even if we kill them in the process! =dn On Sunday 24 November 2002 22:58, DL Neil wrote: Neatly done Ernest!

Re: [PHP] Send multiple SQL staments in one query

2002-11-25 Thread 1LT John W. Holmes
-- I can't send multiple sql staments in one query, i always get an error saying that the sentece is incorrect, i thorw the sentece in a mysql console and works fine, i'm sepraing sentences with ; i try to separe using ;\n or

Re: [PHP] Overloading Constructors

2002-11-25 Thread Ernest E Vogelsinger
At 11:57 25.11.2002, Dan Field said: [snip] is it doable? class myClass { var $myInt; // default constructor function myClass() { } // overloaded constructor function myClass($newInt) {

[PHP] File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Phil Powell
Hi I have the following code that breaks: // PLACE NICK INTO NICKNAMES.TXT AND START OFF MESSAGES.TXT $fileID = fopen($path . /nicknames.txt, a) or die(Could not open . $path . /nicknames.txt); chmod($path . /nicknames.txt, 0755); fputs($fileID, $nickname . \n); fflush($fileID);

RES: RES: [PHP] RE: How to cache PHP on Apache

2002-11-25 Thread Luanna Silva
Hello! So, let me see if i understood: 1) Static content like Google´s logo(which i see every ten minutes :-) ) are cached with no problems. Actually, i´ve got that working. Does that always depend on the If-Modified-Since header? 2) Given that i send the proper header, could i receive as a

Re: [PHP] Overloading Constructors

2002-11-25 Thread Dan Field
On Mon, 2002-11-25 at 10:57, Dan Field wrote: is it doable? well I found a way. It's a bit of a hack but FYI heres how it works: function Form() { // a slight hack which allows us to overload // constructors by the number of args $name = Form.func_num_args();

[PHP] Sessions/Browser back button

2002-11-25 Thread Craig
I remember seeing threads debating this before, but is there anyway to disable/prevent a user from heading back in the browser and getting the WARNING: Page has Expired notice? Cheers Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Craig
you must give the same permissions to the folder also. Phil Powell [EMAIL PROTECTED] wrote in message 0ca201c2947e$44690a80$dcbe6444@scandinawa1bo6">news:0ca201c2947e$44690a80$dcbe6444@scandinawa1bo6... Hi I have the following code that breaks: // PLACE NICK INTO NICKNAMES.TXT AND START OFF

[PHP] Re: File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Phil Powell
I did just that. Permissions are set the /chat folder as it is in all other folders. This is the first time I've ever done fopen with w and I can't get it to write, always getting unable to access errors. I want to be able to create the file if it does not exist. It works for me to do r in all

Re: [PHP] Sessions/Browser back button

2002-11-25 Thread Justin French
on 26/11/02 12:03 AM, Craig ([EMAIL PROTECTED]) wrote: I remember seeing threads debating this before, but is there anyway to disable/prevent a user from heading back in the browser and getting the WARNING: Page has Expired notice? This is more like a diversion around the problem... It will

Re: [PHP] Insert file into sql server binary field.

2002-11-25 Thread Marek Kilimajer
I would notice the difference, but computers don't understand text, it is just data for them, and they represent it the same way (there is no special file type for text and binary in filesystem either). The only difference is in case sensitivity - taken from mysql manual. You can also store

[PHP] Re: Send multiple SQL staments in one query

2002-11-25 Thread Seth Remington
Miguel lópez dinaweb dpto. programación wrote: Hi, I can't send multiple sql staments in one query, i always get an error saying that the sentece is incorrect, i thorw the sentece in a mysql console and works fine, i'm sepraing sentences with ; i try to separe using ;\n or ;\r\n but don't work

Re: [PHP] Re: File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Marek Kilimajer
If you want to create a file, the directory must be writeable to the server proces, so if the directory is owned by you do chmod o+w chat Phil Powell wrote: I did just that. Permissions are set the /chat folder as it is in all other folders. This is the first time I've ever done fopen with w

Re: [PHP] Sessions/Browser back button

2002-11-25 Thread 1LT John W. Holmes
Or if you use GET in your forms, instead of POST, you won't have this problem. ---John Holmes... - Original Message - From: Justin French [EMAIL PROTECTED] To: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 25, 2002 8:15 AM Subject: Re: [PHP] Sessions/Browser back

[PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
Lo all, I upgraded from PHP 4.2.1 to 4.2.2, and now all of a sudden the following code is generating a WARNING??? if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath = themes/$ThemeSel/; } I don't get it? Warning: Unable to access

Re: [PHP] Upgrade issues

2002-11-25 Thread @ Edwin
Hello, Chris Knipe [EMAIL PROTECTED] wrote: Lo all, I upgraded from PHP 4.2.1 to 4.2.2, and now all of a sudden the following code is generating a WARNING??? if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath = themes/$ThemeSel/; } I don't get

Re: [PHP] Re: Send multiple SQL staments in one query

2002-11-25 Thread @ Edwin
Hello, Seth Remington [EMAIL PROTECTED] wrote: [snip] Here's a function that I use to run multiple SQL statements at once - [/snip] ...perhaps, a better way to put it is run multiple SQL statements _one after another_ :) It's a good approach though. ;) - E -- PHP General Mailing List

Re: [PHP] Send multiple SQL staments in one query

2002-11-25 Thread @ Edwin
Hello, 1LT John W. Holmes [EMAIL PROTECTED] wrote: [snip] No, can't do it. Only one query per mysql_query() call. Not sure with other database interfaces, but it should be the same. [/snip] Yes, you cannot do it in MySQL. But you can do it with others. (I think it was discussed before--about

Re: [PHP] Re: image generation with PHP

2002-11-25 Thread @ Edwin
Hello, Myrage wrote: No luck I have installed GD lib and zlib and all into c:\php\extensions bur i still get an error *Fatal error*: Call to undefined function: imagecreate() in *c:\inetpub\wwwroot\image.php* on line *24* Run phpinfo() and check again (under GD). See if you can find

Re: [PHP] Sending POST vars to pop-up window - How?

2002-11-25 Thread @ Edwin
Hello, Monty [EMAIL PROTECTED] wrote: I'm writing a poll app. I want it to work this way: 1. On web page, user selects choice, clicks VOTE. 2. Clicking VOTE triggers a pop-up window. 3. PHP script running in pop-up records vote, displays results. Problem is, POSTed vars that

Re: [PHP] Connection string and Monday Morning blues

2002-11-25 Thread @ Edwin
Hello, There could be a lot of problems here but what *exactly* is the problem? No more coffee, perhaps? :) Post the error, if there's any. Or, take away the @ sign and see what happens... - E Paul Dionne [EMAIL PROTECTED] wrote: Ug, I hate Mondays. stretches must drink more

Re: [PHP] Linux Question

2002-11-25 Thread @ Edwin
Just to add... Here's something that might interest you: http://www.alistapart.com/stories/alternate/ ... and here's another one: (Should be better than the one discussed above :) ) http://www.alistapart.com/stories/phpswitch/ - E Marek Kilimajer [EMAIL PROTECTED] wrote: You might solve

[PHP] Php Search Engine

2002-11-25 Thread msmecca
I am in need of a search engine. I'd rather do one in PhP. Is there one available that I can see or at least get the code for? I'm a newbie to php. :) Krystal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IIS and PHP with pass through authentication

2002-11-25 Thread Shaun Garriock
Hi The problem I am having is as follows: I setup PHP with IIS and it seems to work fine. I am creating a Intranet site and would like to obtain the user logged on to the networks username. I have setup basic auth but when I visit the site it asks me for my username and password before I can get

Re: [PHP] Browser going to page twice?

2002-11-25 Thread @ Edwin
Hello, Leif K-Brooks [EMAIL PROTECTED] wrote: I'm having a weird problem. I guess so. I don't understand what it is :) When I submit a form on my site, it often sends twice. Sends what twice? I'm not sure if this is a client-side or server-side problem, but it doesn't happen on other

Re: [PHP] Php Search Engine

2002-11-25 Thread Marco Tabini
Can you be a bit more specific as to what you need to search on? Is it a database, a set of web documents or do you want to create a search engine like Google, which crawls websites as needed? Let us know! Marco -- php|architect - The magazine for PHP Professionals The first

[PHP] Re: Php Search Engine

2002-11-25 Thread Craig
hotscripts.com [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am in need of a search engine. I'd rather do one in PhP. Is there one available that I can see or at least get the code for? I'm a newbie to php. :) Krystal -- PHP General Mailing List

[PHP] enable-inline-optimization

2002-11-25 Thread Jacob Larsen
Is it still possible to use enable-inline-optimization? Is it adviceable? I am using RedHat Linux 7.3 with all RPM's updated (i.e. GCC and so on), Php 4.2.3 and Apache 1.3.27 Regards Jacob http://www.sharksforum.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: Send multiple SQL staments in one query

2002-11-25 Thread Miguel López Dinaweb Dpto. Programación
Hi, The problem is that i need to do only one mysql_query, i'm working whith a remote database and i have .5 seconds in response time, to one - four querys is less than two seconds Ok is fast but is i do 10 querys i need 5 seconds very slow. :-)

Re: [PHP] Linux Question

2002-11-25 Thread Brian V Bonini
On Mon, 2002-11-25 at 10:35, conbud wrote: Hey. This really isnt a PHP question. but what fonts do you reccomend using so they look decent on linux. Mainly looking for a good font that will look nice in MoZilla and Galeon. Almost all the fonts Ive used so far appear really tiny or

Re: [PHP] Re: Sorting parsed XML

2002-11-25 Thread @ Edwin
Hello, Chris [EMAIL PROTECTED] wrote: I'm trying to write PHP code that will not only parse the XML but also allow me to sort the parsed information by the values parsed. I'm not sure if I really understand but let me try... ...[snip code]... Adding echo 'table border=1'; before this and

Re: [PHP] Php Search Engine

2002-11-25 Thread Brad Pauly
On Mon, 2002-11-25 at 08:31, [EMAIL PROTECTED] wrote: I am in need of a search engine. I'd rather do one in PhP. Is there one available that I can see or at least get the code for? This article might help. http://www.onlamp.com/pub/a/php/2002/10/24/simplesearchengine.html Brad -- PHP

Re: [PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath = themes/$ThemeSel/; } I don't get it? Warning: Unable to access themes/DeepBlue/modules/News/index.php in /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46 Line 46 is

[PHP] Newbie: ereg

2002-11-25 Thread Martin Johansson
I still havent found a site that shows what I need. I dont think php.net explain how ereg works. I only want to publish stuff from the stringvariable $text thats inside tags looking like this FONT COLOR=#8f8f15This shall be visible/FONT or FONT COLOR=#007f7fThis shall be visible too/FONT thanks

[PHP] PHP.net spam protection

2002-11-25 Thread Gene Bandy
Hello all, I have searched the archives and cannot find an answer to this question. I would like to implement the same type of white list spam protection (where you must send a confirmation to be accepted) that php.net is using at my company. Does anyone know what type of software packages

Re: [PHP] Upgrade issues

2002-11-25 Thread @ Edwin
Chris Knipe [EMAIL PROTECTED] wrote: if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath = themes/$ThemeSel/; } I don't get it? Warning: Unable to access themes/DeepBlue/modules/News/index.php in

[PHP] Automajickally POST to a remote form

2002-11-25 Thread Kris Williams
Heyas, Once upon a time I used to be able to POST form data to external sites with ASP and an MSXML (or something) server object on IIS and I'm wondering if there's a similar sort of technique using PHP. Would prefer it if I didn't have to use anything that isn't part of your typical

Re: [PHP] How to obtain unique XML Elements

2002-11-25 Thread @ Edwin
Hello, David Pratt [EMAIL PROTECTED] wrote: Anyone have a simple technique for obtaining a unique list of elements from an XML file? Am looking for something that will identify the first opening tag ie thistag and the single tag anothertag/ so that I get an array of tags that I can print

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Rasmus Lerdorf
Just set register_globals on in the wiki directory. Like this in your httpd.conf: Directory /path/to/wiki php_admin_flag register_globals on /Directory -Rasmus On Mon, 25 Nov 2002, DL Neil wrote: Excuse me breaking in...somewhat similar problem: Have set up a client recently, preaching

RE: [PHP] Automajickally POST to a remote form

2002-11-25 Thread John W. Holmes
Once upon a time I used to be able to POST form data to external sites with ASP and an MSXML (or something) server object on IIS and I'm wondering if there's a similar sort of technique using PHP. Would prefer it if I didn't have to use anything that isn't part of your typical PHP/Apache

Re: [PHP] Re: BBCode?

2002-11-25 Thread Kyle Gibson
Thanks a lot, but do you know how to do the same with ereg_replace? I'm trying to learn PCRE, but until I do, I won't be able to add anything to this... ?php function bbcode($text){ $text = ereg_replace((\\[i\\])([^\\[]+)(\\[/i\\]),'i\\2/i',$text); return $text; } print bbcode('[i]This[/i] is

Re: [PHP] Re: BBCode?

2002-11-25 Thread Leif K-Brooks
Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] tag, for example). Kyle Gibson wrote: Thanks a lot, but do you know how to do the same with ereg_replace? I'm trying to learn PCRE, but until I do, I won't be able to add anything to this... ?php function

[PHP] Re: Sorting parsed XML

2002-11-25 Thread Chris
Sorry, use to using to a listserv that auto-plants the listserv address, not the responder's address on replies :P From: @ Edwin [mailto:[EMAIL PROTECTED]] If you'd like to sort these, then I think you might be able to do something like this: 1. Instead of printf()'ing your td's or tr's

[PHP] Re: Newbie: ereg

2002-11-25 Thread Kyle Gibson
I still havent found a site that shows what I need. I dont think php.net explain how ereg works. I only want to publish stuff from the stringvariable $text thats inside tags looking like this FONT COLOR=#8f8f15This shall be visible/FONT or FONT COLOR=#007f7fThis shall be visible too/FONT thanks

Re: [PHP] PHP.net spam protection

2002-11-25 Thread Jason Wong
On Tuesday 26 November 2002 00:02, Gene Bandy wrote: Hello all, I have searched the archives and cannot find an answer to this question. Which archives did you search? Not the PHP ones I hope? I would like to implement the same type of white list spam protection (where you must send a

Re: [PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath = themes/$ThemeSel/; } I don't get it? Warning: Unable to access themes/DeepBlue/modules/News/index.php in /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46

[PHP] imagecopyresized

2002-11-25 Thread adrian [EMAIL PROTECTED]
hi i'm having problems resizing jpegs. here's an e.g. using manual example. code used : ? $new_w=395; $new_h=297; header(Content-type: image/jpeg); $dst_img=ImageCreate($new_w,$new_h); $src_img=ImageCreateFromJpeg($name);

Re: [PHP] php-4.3.0pre2, fgets and socket_get_status

2002-11-25 Thread Stephen Grier
Does anyone know of any significant changes to the fgets() function in php-4.3.0pre2 which might affect reading from a socket a single byte at a time in the way I describe below? I've had to change to using fread() instead, which is fine, but I'd like to know why I've had to do this, and whether

Re: [PHP] Upgrade issues

2002-11-25 Thread Marek Kilimajer
Check the owners of directories and files, they must be the same as for /usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should work under safe mode too. Chris Knipe wrote: if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath =

Re: [PHP] Recommendations for PHP/MySQl calendar on-line submission/votin g

2002-11-25 Thread David T-G
Dave, et al -- ...and then Merritt, Dave said... % % I working with helping our local high school technical center set up a web % server/site. Went with the typical AMP solution (unfortunately on MSWin Hey, three out of four ain't bad :-) % though). The center is wanting to add an on-line

Re: [PHP] Re: BBCode?

2002-11-25 Thread Jason Wong
On Tuesday 26 November 2002 01:42, Leif K-Brooks wrote: Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] tag, for example). If you want to deal with nested tags then it's probably best to replace each opening and closing tag individually. Otherwise you might end up with

Re: [PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
All files are owened by my Apache user + Group, set to rw access on files and rwx on directories... I do a chown + chmod on my web server's tree every few minutes via cron for my development system. Just to proove my point... root@netsonic:~# ls -l

[PHP] sockets (again)

2002-11-25 Thread Gareth Thomas
Hi, I really need some help here because I am going to lose my mind otherwise!! A script that was running fine Friday has decided not to work for no apparent reason today. The problem seems to be with a socket_create that just stops the script, so I created a simple test script as shown below to

Re: [PHP] imagecopyresized

2002-11-25 Thread Jason Wong
On Tuesday 26 November 2002 02:10, [EMAIL PROTECTED] wrote: hi i'm having problems resizing jpegs. here's an e.g. using manual example. code used : ? $new_w=395; $new_h=297; header(Content-type: image/jpeg); $dst_img=ImageCreate($new_w,$new_h); $src_img=ImageCreateFromJpeg($name);

Re: [PHP] Re: Sorting parsed XML

2002-11-25 Thread Geoff Hankerson
This seems to me to be more easily handled by XSLT. (Not the only option but a good one). XSLT lets you select only the nodes you want and also sort them as well. @ Edwin wrote: Hello, Chris [EMAIL PROTECTED] wrote: I'm trying to write PHP code that will not only parse the XML but also

[PHP] Re: sockets (again)

2002-11-25 Thread Stephan Seidt
Hi, You have to choose a protocol for AF_INET sockets. Try getprotobyname() with tcp and udp to get one. bye On Mon, 25 Nov 2002 10:24:46 -0800 [EMAIL PROTECTED] (Gareth Thomas) wrote: Hi, I really need some help here because I am going to lose my mind otherwise!! A script that was

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
On Mon, 25 Nov 2002, adrian [EMAIL PROTECTED] wrote: hi i'm having problems resizing jpegs. here's an e.g. using manual example. code used : ? $new_w=395; $new_h=297; header(Content-type: image/jpeg); $dst_img=ImageCreate($new_w,$new_h); $src_img=ImageCreateFromJpeg($name);

[PHP] imap

2002-11-25 Thread Greg
Can I user php to create IMAP mailboxes? I'm using Cyrus and php and apache are running on the same computer as Cyrus. Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: BBCode?

2002-11-25 Thread Michael Geier
This will replace all versions (open and close) of bold, italicize and underline tags with brackets using preg_replace. $text = preg_replace(/\[(\/)?([biu])\]/,\\1\\2,$text) ; definition - find [ = \[ - match IF slash exists = (\/)? -

Re: [PHP] imagecopyresized

2002-11-25 Thread adrian [EMAIL PROTECTED]
sorry.i included the link so you can see the result it's difficult to explain what it looks like without including attachments - which is a worse idea i think! there are no errors it just looks bad. i didn't know that imagecreate() produces 8-bit images. this implies that with older versions of gd

[PHP] Continuing Session Within Socket

2002-11-25 Thread Chris Johnson
Hi. I'm working on a project where I need to send a user an e-mail whose content is identical to an already existing PHP-generated web page. (This web page relies on session data to do its work.) The mail function in PHP requires that I save the HTML of this page into a variable and send it

[PHP] Continuing Session Within Socket

2002-11-25 Thread Chris Johnson
Hi. I'm working on a project where I need to send a user an e-mail whose content is identical to an already existing PHP-generated web page. (This web page relies on session data to do its work.) The mail function in PHP requires that I save the HTML of this page into a variable and send it

Re: [PHP] Automajickally POST to a remote form

2002-11-25 Thread Chris Shiflett
--- Kris Williams [EMAIL PROTECTED] wrote: Once upon a time I used to be able to POST form data to external sites with ASP and an MSXML (or something) server object on IIS and I'm wondering if there's a similar sort of technique using PHP. You can post with PHP using cURL or doing it

Re: [PHP] imap

2002-11-25 Thread Jason Wong
On Tuesday 26 November 2002 03:14, Greg wrote: Can I user php to create IMAP mailboxes? I'm using Cyrus and php and apache are running on the same computer as Cyrus. Thanks! The short answer is, yes. The long answer is, if you have to ask then no. Try searching the archives for something

[PHP] Re: imap

2002-11-25 Thread Thomas Seifert
On Mon, 25 Nov 2002 14:14:54 -0500 [EMAIL PROTECTED] (Greg) wrote: Can I user php to create IMAP mailboxes? I'm using Cyrus and php and apache are running on the same computer as Cyrus. Thanks! -Greg Maybe something like that would fit your needs: http://www.delouw.ch/linux/web-cyradm/

[PHP] array manipulations

2002-11-25 Thread Mattia
Can anyone suggest an ELEGANT way to find out if an array is made of empty strings or not? example $a = Array( '' , '' , '' ); //ok $b = Array( '' , '' , 'error' ); // not ok $c = Array( 'error' , '' , 'error' ); // not ok tia Mattia -- PHP General Mailing List (http://www.php.net/) To

[PHP] Form trouble

2002-11-25 Thread David H
Hi, After I submited a query, if I use back then forward again the form will resubmit itself. Which I do not want. Does anyone have a solution for this problem? Thanks, David __ Do you Yahoo!? Yahoo! Mail Plus – Powerful. Affordable. Sign up now.

RE: [PHP] Form trouble

2002-11-25 Thread Clint Tredway
When the form is submitted check the database with the info that is being submitted. If a record matches the data being submitted then don't do the insert. If there is not a record there, then insert the record.. HTH Clint -Original Message- From: David H [mailto:[EMAIL PROTECTED]]

[PHP] Re: Newbie: ereg

2002-11-25 Thread Mattia
I don't know if I got it right bu try echo htmlentities('FONT COLOR=#8f8f15This shall be visible/FONT'); htmlentities() will translate your string in 'lt;FONT COLOR=#8f8f15gt;This shall be visiblelt;FONTgt;' FONT COLOR=#8f8f15This shall be visible/FONT or FONT COLOR=#007f7fThis shall be

[PHP] php_value disable_functions sintax?

2002-11-25 Thread Rodolfo Gonzalez
Hi, I'm trying to use disable_functions inside an Apache's VirtualHost, like this: php_value disable_functions basename,chgrp,chmod,phpinfo I tried both with and without but the functions are not disabled. I'm using php_flag safe_mode on in the same virtual host. Any help on what I'm doing

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
On Mon, 25 Nov 2002, adrian [EMAIL PROTECTED] wrote: sorry.i included the link so you can see the result it's difficult to explain what it looks like without including attachments - which is a worse idea i think! there are no errors it just looks bad. i didn't know that imagecreate()

Re: [PHP] Form trouble

2002-11-25 Thread Chris Boget
When the form is submitted check the database with the info that is being submitted. If a record matches the data being submitted then don't do the insert. If there is not a record there, then insert the record.. Either that or, if you are using mySQL, instead of using INSERT INTO... use

RE: [PHP] Form trouble

2002-11-25 Thread David H
But what about updates to the database...? Is there away not to have the information send to the server at all? Thanks, David --- Clint Tredway [EMAIL PROTECTED] wrote: When the form is submitted check the database with the info that is being submitted. If a record matches the data being

RE: [PHP] Re: Sorting parsed XML

2002-11-25 Thread Chris
Unavailable as I am reading an XML file produced by another web site and it dynamically updates the information on the sheet every 5 minutes or so. At least to my knowledge of what XSLT can do. From: Geoff Hankerson [mailto:[EMAIL PROTECTED]] This seems to me to be more easily handled by

Re: [PHP] php_value disable_functions sintax?

2002-11-25 Thread Rasmus Lerdorf
You can't disable functions in your httpd.conf. That particular directive is probably the only one that is server-wide and can only be set in your php.ini file. The reason is that it is too expensive to disable and re-enabled functions on a per-request basis which is what we would need to do if

Re: [PHP] Re: BBCode?

2002-11-25 Thread Kyle Gibson
Thanks, but that doesn't allow nested tags (a [b] tag inside of an [i] tag, for example). Nested tags? Do you mean [ib] ? Or [i[b]]? If you mean [ib], then I'm afraid what you want cannot be done in ereg_replace. As far as I am aware, that is. -- Kyle Gibson admin(at)frozenonline.com

RE: [PHP] Form trouble

2002-11-25 Thread Clint Tredway
Not really. The back button uses the browers history to go back.. And there is no way to disable the back button. -Original Message- From: David H [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:33 PM To: Clint Tredway; [EMAIL PROTECTED] Subject: RE: [PHP] Form trouble

RE: [PHP] Form trouble

2002-11-25 Thread Chris Shiflett
There is one common method used to avoid this that is pretty reliable. 1. http://example.org/1.php submits to http://example.org/2.php 2. http://example.org/2.php processes the form, then uses a Location header to redirect to http://example.org/3.php. For example: header(Location:

Re: [PHP] php_value disable_functions sintax?

2002-11-25 Thread Rodolfo Gonzalez
On Mon, 25 Nov 2002, Rasmus Lerdorf wrote: You can't disable functions in your httpd.conf. That particular directive is probably the only one that is server-wide and can only be set in your php.ini file. The reason is that it is too expensive to disable and re-enabled functions on a

  1   2   >