[PHP] $_GET $_POST simultaneously

2005-01-11 Thread Bostjan Skufca @ domenca.com
Hello, If I create form like this form name=form action=##_URI_ROOT##/entity/edit.php?a=b method=post input type=hidden name=action value=modify / ... both arrays contain appropriate variables when submitted: ::: $_GET ::: Array ( [a] = b ) ::: $_POST ::: Array ( [action] =

[PHP] Re: Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Lester Caine
Ranjan K. Baisak wrote: I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could

Re: [PHP] $_GET $_POST simultaneously

2005-01-11 Thread Lars B. Jensen
Is it just me or ... why on earth would you want to populate both GET and POST arrays through this obscure way of coding ? If you really have a form where you dont have a clue wether your data comes from GET or POST, it should be way less effort to copy one array to another or have a lookup

Re: [PHP] $_GET $_POST simultaneously

2005-01-11 Thread Bostjan Skufca @ domenca.com
Browser history: I do not want it to contain any URIs to files which require some sort of id variable passed. Example: 1. http://www.entity.org/edit.php (should produce an error or redirect to entity list) 2. http://www.entity.org/edit.php?id=1 (should display editing interface) Now I really

Re: [PHP] Re: Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Ranjan K. Baisak
--- Lester Caine [EMAIL PROTECTED] wrote: I set the php.ini to look for the extensions where you installed PHP I copied all dlls from PHP diectory to WINDOWS/System32 directory and then it started running. But still I am not sure how PHP picks up the dll files. In my php.ini file I have set

Re: [PHP] Re: Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Lester Caine
Ranjan K. Baisak wrote: I set the php.ini to look for the extensions where you installed PHP I copied all dlls from PHP diectory to WINDOWS/System32 directory and then it started running. But still I am not sure how PHP picks up the dll files. In my php.ini file I have set extension_dir =

[PHP] Re: Functions in replacement string of eregi_replace

2005-01-11 Thread M. Sokolewicz
Ville Mattila wrote: Hi there! I'm looking for a workaround to carry out a feature similar to that I could use any PHP function inside the replacement string in eregi_replace (or ereg_replace). I have a set of HTML code with some h2-headers. Now I should convert all HTML headers to uppercase

Re: [PHP] Re: Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Ranjan K. Baisak
--- Lester Caine [EMAIL PROTECTED] wrote: Apache does not use the php modules! There is no need to copy them to WINDOWS/System32 Apache is only complaining because PHP will not start. Where have you actually got php.ini? the default is in c:\Windows Well php.ini file is in c:\windows

[PHP] 2 dimensional array processing

2005-01-11 Thread Benjamin Edwards
If I create the following 2 dimensional associative array:- $insert[tab2][fields1] = value1; $insert[tab1][fields2] = value2; $insert[tab2][fields5] = value3; $insert[tab1][fields7] = value4; how do I do 2 levels of nested loop with the first level looping through the first level of the array

Re: [PHP] Re: Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Lester Caine
Ranjan K. Baisak wrote: --- Lester Caine [EMAIL PROTECTED] wrote: Apache does not use the php modules! There is no need to copy them to WINDOWS/System32 Apache is only complaining because PHP will not start. Where have you actually got php.ini? the default is in c:\Windows Well php.ini file is in

Re: [PHP] Re: unable to load curl

2005-01-11 Thread Zareef Ahmed
Please read install.txt carefully, it has a section on this problems, if PHP.INI is fine., then you need to copy some of the dlls available in dlls folder to your system folder. zareef ahmed On Mon, 10 Jan 2005 22:38:41 +0530, Sagar C Nannapaneni [EMAIL PROTECTED] wrote: Please respond to

Re: [PHP] Re: Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Ranjan K. Baisak
--- Lester Caine [EMAIL PROTECTED] wrote: OK back up a step. So is PHP4 running if you do not enable the php_xmlrpc module in php.ini? Its running and I can see in service. But the specific functions related to php_xmlrpc module are not recognized, so I can say that this module is not

Re: [PHP] Forms on PHP

2005-01-11 Thread Leon Poon
Refer to the following line numbers: 01 ?php 02 // Start of PHP code - Extract values from form. 03 /* Other values read */ 04 $n=$_POST['n']; 05 06 // Pass the data from the form to lightcurve_csharp 07 $command=./lightcurve_csharp $a $i $e $lomega $bomega $lambda $n; 08

Re: [PHP] $_GET $_POST simultaneously

2005-01-11 Thread tg-php
If your question is a matter of Is this a good programming practice then I think it's ok. There are times when something like this could be really useful. Should people get into the practice of using this kind of thing? I think it really depends on the circumstances and there's definitely

Re: [PHP] strange sessions

2005-01-11 Thread Tim Burgan
Hello, Here's a link to a website demonstrating my problems: http://www.timburgan.com/problems/ You can download the code from the site or here: http://www.timburgan.com/problems/files/site.zip I'm experiencing some weird issues with sessions, and because I'm quite new to PHP and sessions..

[PHP] Re: [PHP-DB] Complicated Question (maybe)?

2005-01-11 Thread Philip Thompson
On Jan 10, 2005, at 11:16 PM, JeRRy wrote: Hi, I have my reasons in asking this. But instead of going on about it I'll make it quick. Is there a way to BLOCK an update to a column in a databasefrom a webform or php page? What I mean is this. A user registers for a site. They enter details like

Re: [PHP] 2 dimensional array processing

2005-01-11 Thread Brent Baisley
You've created a 2x2 array, not a 1x4, which might be confusing you: tab2 [fields1] [fields5] tab1 [fields2] [fields7] You almost have it, you just need to set your loop up to handle unlimited field/value pairs in your array. One option is to structure your loop like this: foreach ($insert as

Re: [PHP] 2 dimensional array processing

2005-01-11 Thread Benjamin Edwards
Ok - looking at what you did I cant see any diference apart from turning a serious updated into a single update. This is usefull if I want to do an update but I actualy want an insert (the update was just used for this example). I actualy want to do an insert so i'me thinking the following

[PHP] client information

2005-01-11 Thread Bruno Santos
Hello all. I have a problem that i hope to solve with php. i know that, using $_SERVER['xxx'] is possible to find some information about the client who is accessing the script. what i need to know if its possible to find out more information about the client, like in linux the DISPLAY

Re: [PHP] client information

2005-01-11 Thread Benjamin Edwards
A couple of things that mey help. I think phpinfo() will display all the system varables. These varables come from the web server so your web server documentation may help. Another thing that may work is implode ( ',' $_SERVER ) which should give you a (, comma) seperated list of $_SERVER

Re: [PHP] 2 dimensional array processing

2005-01-11 Thread Brent Baisley
A, I was wondering why your variable was named insert. Anyway, that's easy too. foreach($insert as $table = $fields) { $fieldList = array_keys($fields); $fieldNames = implode(',', $fieldList); $fieldValues = ''.implode(',', $fields).''; echo 'insert into '.$table.' ('.$fieldNames.') values

[PHP] Get name of extending class with static method call

2005-01-11 Thread Torsten Roehr
Hi list, in PHP4 it was possible to get the name of the calling class with debug_bcktrace(). Unfortunately this behaviour has been changed in PHP5. I didn't find a solution in the archives. Is there *any* way to get the name of the calling class?: class Car { function drive() { // I

[PHP] PHP5 sprintf() function borken

2005-01-11 Thread Thomas Munz
Today i think i found an bu in the PHP5 version 5.0.3 ( allready exits also in the version 5.0.2 , i try this version also ). When tryo one of this scripts: $i_test = 0.085007667542; $tm_total = sprintf('%.2f', $i_test); echo $tm_total; $i_test = 0.085007667542; $tm_total = sprintf('%.2f',

Re: [PHP] Get name of extending class with static method call

2005-01-11 Thread Christopher Fulton
Not sure if this is the best way to do it or not, but you can do this and it should (untested code) work. class Car { function drive() { return $this-getClassName(); } function getClassName() { return Car; } } class Porshe {

[PHP] Re: Get name of extending class with static method call

2005-01-11 Thread M. Sokolewicz
try using __CLASS__ Torsten Roehr wrote: Hi list, in PHP4 it was possible to get the name of the calling class with debug_bcktrace(). Unfortunately this behaviour has been changed in PHP5. I didn't find a solution in the archives. Is there *any* way to get the name of the calling class?: class Car

[PHP] Re: client information

2005-01-11 Thread M. Sokolewicz
Bruno Santos wrote: Hello all. I have a problem that i hope to solve with php. i know that, using $_SERVER['xxx'] is possible to find some information about the client who is accessing the script. what i need to know if its possible to find out more information about the client, like in

[PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Jason Barnett
M. Sokolewicz wrote: try using __CLASS__ Torsten Roehr wrote: This is a good suggestion but I wonder... Torsten do you have a large heirarchy of parent classes or just one parent? E.g. Car - Sports Car - Porsche. More importantly will __CLASS__ resolve to the class name that you need... If

RE: [PHP] Comparison Operator

2005-01-11 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 January 2005 21:20, Chadwick, Russell wrote: The function this is from sometimes uses $_POST or $_GET input, so sometimes its comparing 1337 with '1337' and === would break

Re: [PHP] 2 dimensional array processing

2005-01-11 Thread Richard Lynch
Brent Baisley wrote: foreach($insert as $table = $fields) { $fieldList = array_keys($fields); $fieldNames = implode(',', $fieldList); $fieldValues = ''.implode(',', $fields).''; echo 'insert into '.$table.' ('.$fieldNames.') values ('.$fieldValues.')'; } That puts

Re: [PHP] client information

2005-01-11 Thread Richard Lynch
Bruno Santos wrote: I have a problem that i hope to solve with php. i know that, using $_SERVER['xxx'] is possible to find some information about the client who is accessing the script. PHP passes on *everything* the server passes on which is usually *everything* the browser provides.

Re: [PHP] $_GET $_POST simultaneously

2005-01-11 Thread Richard Lynch
[EMAIL PROTECTED] wrote: If your question is a matter of Is this a good programming practice then I think it's ok. There are times when something like this could be really useful. There are many scripts I write which provide results for either GET or POST data interchangably, so that links or

[PHP] UBB Code correct use

2005-01-11 Thread Bruno B B Magalhães
Hi people, I have a small class that encodes and decodes ubb code, no problem with this.. But.. My question is, what is the correct use of the translation routines in a CMS... I meam: When creating a new article: New article form --- UBB Encode --- Database

Re: [PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Richard Lynch
Ranjan K. Baisak wrote: I am using PHP4.3.10 in WindowsXP. When I am trying to use extension dlls e.g. php_xmlrpc.dll and when trying to restart Apache2 Web Server, I am getting error message as UnKnows():Unable to load dynamic library './php_xmlrpc.dll.dll' - The specified module could not

Re: [PHP] client information

2005-01-11 Thread Greg Donald
On Tue, 11 Jan 2005 10:10:37 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: what i need to know if its possible to find out more information about the client, like in linux the DISPLAY variable of the client ? It's incredibly unlikely that Linux browsers provide this info to the web

[PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Torsten Roehr
Jason Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] M. Sokolewicz wrote: try using __CLASS__ Torsten Roehr wrote: This is a good suggestion but I wonder... Torsten do you have a large heirarchy of parent classes or just one parent? E.g. Car - Sports Car - Porsche.

Re: [PHP] Forms on PHP

2005-01-11 Thread Richard Lynch
PHPDiscuss - PHP Newsgroups and mailing lists wrote: I am new to this or any newsgroup in PHP, as well as PHP itself, so this question is probably rather elementary. I have a form which on clicking on the Submit button calls up a compiled program on the server that is executed and writes

Re: [PHP] Get name of extending class with static method call

2005-01-11 Thread Torsten Roehr
Christopher Fulton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Not sure if this is the best way to do it or not, but you can do this and it should (untested code) work. class Car { function drive() { return $this-getClassName(); }

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-11 Thread Richard Lynch
Rasmus Lerdorf wrote: Jason Barnett wrote: the wrong permissions. Why does apache not server the 403 on the php page? Maybe this is better off in the apache list. Yeah, this is really better on an Apache list... but... http://httpd.apache.org/docs/mod/core.html#errordocument No, it has

Re: [PHP] 403 not working -- apache 2 / php5 / linux

2005-01-11 Thread Rasmus Lerdorf
Richard Lynch wrote: You'd be confusing the HELL out of me to have PHP sending out a 403 because it couldn't read the included file after it already managed to read index.php and connect.inc Right, I don't disagree with you that it would be confusing and inconsistent which is why no such magic is

[PHP] Checking if

2005-01-11 Thread Bruno B B Magalhães
Hi people, how to determine if the last char of a string is a '/'... The problem, a webpage can be accessed by www.domain.com/page.php or www.domain.com/page.php/ Regards, Bruno B B Magalhães -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Checking if

2005-01-11 Thread Ben Ramsey
Bruno B B Magalhães wrote: how to determine if the last char of a string is a '/'... The problem, a webpage can be accessed by www.domain.com/page.php or www.domain.com/page.php/ Use substr()... http://www.php.net/substr $url = 'http://example.com/index.php/'; if (strcmp(substr($url, -1), '/')

Re: [PHP] Security - chmod 777 - PHP upload/write

2005-01-11 Thread Richard Lynch
SED wrote: Sometimes when I write a PHP-script and upload it to a ISP through password protected FTP, the only way to write data to a folder is to run chmod 777 for that folder, I want to write (or save) a data to (e.g. file-upload, flat-file-database). However, if I do so, I have been told,

[PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Jason Barnett
__CLASS__ contains the name of the class the method is in. In my sample it would be 'Car' and not 'Porsche'. What I don't understand is why the behaviour of debug_backtrace() has been changed!?! Regards, Torsten I have no idea why the behaviour changed (I didn't really use the function before,

Re: [PHP] client information

2005-01-11 Thread Richard Lynch
Greg Donald wrote: On Tue, 11 Jan 2005 10:10:37 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: what i need to know if its possible to find out more information about the client, like in linux the DISPLAY variable of the client ? It's incredibly unlikely that Linux browsers provide

Re: [PHP] UBB Code correct use

2005-01-11 Thread Richard Lynch
Bruno B B Magalhães wrote: Hi people, I have a small class that encodes and decodes ubb code, no problem with this.. But.. Did you get what my question is? :) What is the correct order... I mean, because I am having problems when editing an article all the BRs are being duplicated, and

[PHP] geographic search engine

2005-01-11 Thread symbulos partners
We would like to implement a geographic search engine. We have a list of places, the user enters a postcode + a radius in kms and the search engine returns a list of places within a certain radius. Any body has any experience with anything similar? -- symbulos partners -.- symbulos - ethical

Re: [PHP] Checking if

2005-01-11 Thread John Nichel
Bruno B B Magalhães wrote: Hi people, how to determine if the last char of a string is a '/'... The problem, a webpage can be accessed by www.domain.com/page.php or www.domain.com/page.php/ preg_match ( /\/$/, $string ); -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] --

Re: [PHP] client information

2005-01-11 Thread Greg Donald
On Tue, 11 Jan 2005 11:31:53 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: -r isn't listed in my php -h, so I dunno what it does, but... r is for run. I don't think that's the DISPLAY environment variable set by the CLIENT surfing from their Linux box is it? It's not, was that a

Re: [PHP] geographic search engine

2005-01-11 Thread Greg Donald
On Tue, 11 Jan 2005 19:57:15 +, symbulos partners [EMAIL PROTECTED] wrote: We would like to implement a geographic search engine. We have a list of places, the user enters a postcode + a radius in kms and the search engine returns a list of places within a certain radius. So often

Re: [PHP] $_GET $_POST simultaneously

2005-01-11 Thread Greg Donald
On Tue, 11 Jan 2005 10:26:05 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: There are many scripts I write which provide results for either GET or POST data interchangably, so that links or forms can be used in the other pages to fit in with their look/feel. When I need to come in both

Re: [PHP] Get name of extending class with static method call

2005-01-11 Thread Daniel Schierbeck
Torsten Roehr wrote: Christopher Fulton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Not sure if this is the best way to do it or not, but you can do this and it should (untested code) work. class Car { function drive() { return $this-getClassName(); }

Re: [PHP] geographic search engine

2005-01-11 Thread Brian Dunning
On Jan 11, 2005, at 12:39 PM, Greg Donald wrote: This does not take into account the curve of the earth. In addition you'll need a db with the latitude and longitude for each zip code. If I might be so bold as to suggest one without getting flamed: http://www.zipwise.com/ -- PHP General Mailing

Re: [PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Christopher Fulton
This should work for you then(maybe...i don't have php5 on my system, so it may not, but i think it would. http://us4.php.net/manual/en/function.get-class.php class Car { function drive() { return get_class($this); } } class Porshe { } $foo = new Porshe();

[PHP] Building key sequences from strings

2005-01-11 Thread Bruce Cooper
Oh wise and widely knowledgeable list: I'm trying to set up a custom sort for multi-level [i.e. nested] arrays. The problem is I can't seem to get PHP to recognize syntax such as follows $test=$test_array.'[index][next]'; The above example is greatly simplified. In the real world

Re: [PHP] Building key sequences from strings

2005-01-11 Thread Greg Donald
On Tue, 11 Jan 2005 16:10:00 -0500 (EST), Bruce Cooper [EMAIL PROTECTED] wrote: I'm trying to set up a custom sort for multi-level [i.e. nested] arrays. The problem is I can't seem to get PHP to recognize syntax such as follows $test=$test_array.'[index][next]'; The above example is

[PHP] imagecreatefromjpeg

2005-01-11 Thread Juergen Rehberger
Hi Thanx for the fast response to my problem I have checked my memory limit in the php.ini file and it is 8mb as well on my offline server. i further noticed that on my online server it doesnt realy depend on the filesize in mb but rather the size in pixel. once i try to upload images larger

Re: [PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Daniel Schierbeck
Christopher Fulton wrote: This should work for you then(maybe...i don't have php5 on my system, so it may not, but i think it would. http://us4.php.net/manual/en/function.get-class.php class Car { function drive() { return get_class($this); } } class Porshe { }

[PHP] Apache 2.0 and Sessions

2005-01-11 Thread Stephen Craton
I just updated to Apache 2.0 and have gotten PHP all with it. However, I just loaded up a script that worked fine on my old Apache 1.3 install but is now causing my errors. Here's the error: Warning: session_start(): open(C:\WINDOWS\TEMP\\sess_8c53cb2382f75076c51ed4b3edece36b, O_RDWR) failed:

[PHP] dba_open(), NFS file locking test please

2005-01-11 Thread Gerard Samuel
If you have php installed with the dba extension, and have access to NFS, could you try out the code below, to see if it works for you. Doesn't matter what OS you're using (as long as the OS professes its capable of locking over NFS). Im currently using FreeBSD 5.3 (server client), with NFS the

Re: [PHP] imagecreatefromjpeg

2005-01-11 Thread Rasmus Lerdorf
Juergen Rehberger wrote: Hi Thanx for the fast response to my problem I have checked my memory limit in the php.ini file and it is 8mb as well on my offline server. i further noticed that on my online server it doesnt realy depend on the filesize in mb but rather the size in pixel. once i try to

Re: [PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Jason Barnett
Christopher Fulton wrote: This should work for you then(maybe...i don't have php5 on my system, so it may not, but i think it would. http://us4.php.net/manual/en/function.get-class.php class Car { function drive() { return get_class($this); } } class Porshe { }

Re: [PHP] imagecreatefromjpeg

2005-01-11 Thread Jason Wong
On Wednesday 12 January 2005 05:55, Juergen Rehberger wrote: I have checked my memory limit in the php.ini file and it is 8mb as well on my offline server. Are you sure that your local server was compiled with --enable-memory-limit? The memory limit set in php.ini will only be enforced if

Re: [PHP] Building key sequences from strings

2005-01-11 Thread Jason Barnett
Greg Donald wrote: On Tue, 11 Jan 2005 16:10:00 -0500 (EST), Bruce Cooper [EMAIL PROTECTED] wrote: I'm trying to set up a custom sort for multi-level [i.e. nested] arrays. The problem is I can't seem to get PHP to recognize syntax such as follows $test=$test_array.'[index][next]'; Perhaps this

Re: [PHP] Building key sequences from strings

2005-01-11 Thread John Holmes
Bruce Cooper wrote: I'm trying to set up a custom sort for multi-level [i.e. nested] arrays. The problem is I can't seem to get PHP to recognize syntax such as follows $test=$test_array.'[index][next]'; Maybe $test = ${$test_array.'[index][next]'}; -- ---John Holmes... Amazon Wishlist:

Re: [PHP] dba_open(), NFS file locking test please

2005-01-11 Thread Gerard Samuel
Gerard Samuel wrote: If you have php installed with the dba extension, and have access to NFS, could you try out the code below, to see if it works for you. Doesn't matter what OS you're using (as long as the OS professes its capable of locking over NFS). Im currently using FreeBSD 5.3 (server

Re: [PHP] Re: Get name of extending class with static method call

2005-01-11 Thread M. Sokolewicz
Daniel Schierbeck wrote: Christopher Fulton wrote: This should work for you then(maybe...i don't have php5 on my system, so it may not, but i think it would. http://us4.php.net/manual/en/function.get-class.php class Car { function drive() { return get_class($this);

[PHP] Re: geographic search engine

2005-01-11 Thread Manuel Lemos
Hello, on 01/11/2005 05:57 PM Symbulos Partners said the following: We would like to implement a geographic search engine. We have a list of places, the user enters a postcode + a radius in kms and the search engine returns a list of places within a certain radius. Any body has any experience with

[PHP] drag and drop CMS made with php

2005-01-11 Thread Graham Anderson
is there a php based CMS that exists that allows you to drag/drop and reorder tracks ? something akin to itunes or winamp playlist... I want users to be able to the change 'order_id' field in the 'PlaylistItems' table...basically a bunch of UPDATE statements to a found set. Basically, the

[PHP] Re: Apache 2.0 and Sessions

2005-01-11 Thread Jerry Kita
Stephen Craton wrote: I just updated to Apache 2.0 and have gotten PHP all with it. However, I just loaded up a script that worked fine on my old Apache 1.3 install but is now causing my errors. Here's the error: Warning: session_start():

RE: [PHP] Re: Apache 2.0 and Sessions

2005-01-11 Thread Stephen Craton
Thanks for the reply, and I apologize for being a top poster, just a habit. I would do that, and it is a good idea, just not practical since I usually upload or publish the scripts I have on here to a server or to other people. What I have here will not work on their servers if I do this. I could

[PHP] stdClass to array

2005-01-11 Thread Cere Davis
Hey folks, Does anyone know of a painless way to convert a stdClass object to an associative array in php? Also, I wonder, is there a way to flatten associative arrays in php? So say: $b=new array(s=S) $a=new array(a=A,b=$b) goes to: $z=flatten($a); z turns to: (a=A, b=$b, s=S); Thanks,

RE: [PHP] stdClass to array

2005-01-11 Thread Michael Sims
Cere Davis wrote: Hey folks, Does anyone know of a painless way to convert a stdClass object to an associative array in php? Just cast it: $arr = (array) $stdClassInstance; Also, I wonder, is there a way to flatten associative arrays in php? So say: $b=new array(s=S) $a=new

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] how to use a URL as a filename

2005-01-11 Thread shimuqiheb
I want to get a file 'http://www.china.com/' , I can use file_get_contents('http://www.china.com/'); But how can I get it via a Proxy. Shi MuQi LangFang ABC (China) v Tel:(86)-311-7876466 /(_)\

RE: [PHP] Apache 2.0 and Sessions

2005-01-11 Thread Stephen Craton
Not a production server, just a development server. It doesn't bail either, it still displays the page correctly, but no sessions work, obviously. Thanks, Stephen Craton -Original Message- From: Bret Hughes [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 7:24 PM To: Stephen

Re: [PHP] drag and drop CMS made with php

2005-01-11 Thread Andrew Kreps
On Tue, 11 Jan 2005 15:53:39 -0800, Graham Anderson [EMAIL PROTECTED] wrote: is there a php based CMS that exists that allows you to drag/drop and reorder tracks ? something akin to itunes or winamp playlist... I'm not entirely sure you could make this work, if you're speaking of a web app.

[PHP] weird upload problem

2005-01-11 Thread Sebastian
Hi, im working on this mulitiple upload script to auto resize images. everything works, except two problems. 1) for some odd reason if i attach all fields with an image it only submits 5. seems its skipping one. 2) if i attach an image to field 1, 3, 5 and skip the other fields only 1 file gets

Re: [PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Rory Browne
I was kinda thinking about all that too, for a project I'm currently doing, in that I wanted to be able to create a singleton, without having to put the singleton code in each class. The only hack I could think of was to use debug_backtrace() to get the line of source that contained the call, and

Re: [PHP] Re: Apache 2.0 and Sessions

2005-01-11 Thread Jerry Kita
Stephen Craton wrote: Thanks for the reply, and I apologize for being a top poster, just a habit. I would do that, and it is a good idea, just not practical since I usually upload or publish the scripts I have on here to a server or to other people. Steve My laptop is my development server

Re: [PHP] weird upload problem

2005-01-11 Thread Sebastian
well i found the problem to #1. i forgot an = on the for() loop.. so it uploads all 6 instead of 5. still looking for a solution on #2 - Original Message - From: Sebastian [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, January 11, 2005 8:59 PM Subject: [PHP] weird upload

Re: [PHP] weird upload problem

2005-01-11 Thread Jason Wong
On Wednesday 12 January 2005 09:59, Sebastian wrote: 2) if i attach an image to field 1, 3, 5 and skip the other fields only 1 file gets uploaded.. How did you ascertain this? What does print_r($_FILES) show? Unless you're using a broken browser it *should* work. -- Jason Wong - Gremlins

Re: [PHP] Forms on PHP

2005-01-11 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Leon Poon wrote: Refer to the following line numbers: 01 ?php 02 // Start of PHP code - Extract values from form. 03 /* Other values read */ 04 $n=$_POST['n']; 05 06 // Pass the data from the form to lightcurve_csharp 07 $command=./lightcurve_csharp $a $i $e $lomega $bomega

Re: [PHP] weird upload problem

2005-01-11 Thread Sebastian
Jason Wong wrote: How did you ascertain this? What does print_r($_FILES) show? Unless you're using a broken browser it *should* work. i tried both IE6 and Firebox 1.0, both do the same. does appear its being passed.. doesn't it? array: Array ( [image] = Array ( [name]

Re: [PHP] weird upload problem

2005-01-11 Thread Santa
So, in $_FILES all right. may be use foreach instead for? case count() show count of fulled cell of array, and in your case it show 3. but 3 is not end of your array. 12 2005 07:16 Sebastian (a): Jason Wong wrote: How did you ascertain this? What does print_r($_FILES) show? Unless

Re: [PHP] Error loading extension dlls in WindosXP for PHP4.3.10

2005-01-11 Thread Ranjan K. Baisak
--- Richard Lynch [EMAIL PROTECTED] wrote: Some questions for you: Does it REALLY have an extra .dll on the end in the message? Perhaps somebody goofed up somewhere, but rip of the '.dll' in your php.ini and see what happens... Did the php_xmlrpc.dll you have COME WITH the EXACT

Re: [PHP] weird upload problem

2005-01-11 Thread Jason Wong
On Wednesday 12 January 2005 12:16, Sebastian wrote: i tried both IE6 and Firebox 1.0, both do the same. does appear its being passed.. doesn't it? array: Array ( [image] = Array ( [name] = Array ( [0] = image1.jpg

[PHP] HTTP Proxy Script

2005-01-11 Thread John Camp
I am looking for a script that uses GET data to retrieve a website and display it to whoever requested it (a HTTP proxy). If it can translate links to go through the proxy as well it would be even better. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] $_GET $_POST simultaneously

2005-01-11 Thread Curt Zirzow
* Thus wrote Bostjan Skufca @ domenca.com: Hello, If I create form like this form name=form action=##_URI_ROOT##/entity/edit.php?a=b method=post input type=hidden name=action value=modify / ... Now what I am interested in is if this is valid behaviour regarding HTTP specification

[PHP] Re: HTTP Proxy Script

2005-01-11 Thread Manuel Lemos
Hello, on 01/12/2005 04:54 AM John Camp said the following: I am looking for a script that uses GET data to retrieve a website and display it to whoever requested it (a HTTP proxy). If it can translate links to go through the proxy as well it would be even better. Thanks. You may want to try

[PHP] T1 Lib

2005-01-11 Thread PJ
Hello everybody! I have some connection problems when I am searching topics in ThunderB., so I am sorry if my question is somewhere answered! Does anybody know, where to download T1Lib for PHP4 - windows version? After half hour googling I have feeling that it doesn't exist... :o( So, I would

Re: [PHP] libphp4.so not created on upgrade

2005-01-11 Thread heath boutwell
--- Rasmus Lerdorf [EMAIL PROTECTED] wrote: Well, what is created? Do you get a .libs/libphp4 file with no extension? If so, you can either just rename that to .libs/libphp4.so or run libtoolize --force and re-run ./configure -Rasmus Still no libphp4.so created by make install. Here