Re: [PHP] Image Creation and Saving

2005-01-30 Thread hitek
Are you making sure the $_SESSION['user_sn'] folder exists before saving the image into it? I'm asking because I originally thought it was a permission problem but php will tell you 'permission denied' if that was the case. At 05:05 PM 1/29/2005, NathanielGuy#21 wrote: Hello everyone, I have

[PHP] question on getting URL

2005-01-30 Thread David Banning
I have a script called index.php on my main page and it actually is used to launch several webpages like so; http://mysite.com/index.php?id=16 When http://mysite.com runs it still uses index.php. but it doesn't show it in the address bar. All it shows is; http://mysite.com What I would like to

Re: [PHP] question on getting URL

2005-01-30 Thread Matthew Fonda
$file = basename(_FILE_); On Sun, 2005-01-30 at 01:26, David Banning wrote: I have a script called index.php on my main page and it actually is used to launch several webpages like so; http://mysite.com/index.php?id=16 When http://mysite.com runs it still uses index.php. but it doesn't

[PHP] General question: packaging in PHP

2005-01-30 Thread Vivian Steller
Hello, i've a general question concerning PHP's architecture. Why isn't there a native packaging concept in PHP? I think php became much more powerfull with the extended OOP features introduced in PHP5 - without a packaging concept you couldn't use these features in big business (in terms of

Re: [PHP] General question: packaging in PHP

2005-01-30 Thread Terje Slettebø
From: Vivian Steller [EMAIL PROTECTED] i've a general question concerning PHP's architecture. Why isn't there a native packaging concept in PHP? This was also suggested on comp.lang.php, recently (the nested class thread), called namespaces, but there wasn't a lot of enthusiasm for it.

Re: [PHP] General question: packaging in PHP

2005-01-30 Thread Vivian Steller
verffentlicht per Mail versendet Thanks for your answer! Terje Sletteb wrote: From: Vivian Steller [EMAIL PROTECTED] i've a general question concerning PHP's architecture. Why isn't there a native packaging concept in PHP? This was also suggested on comp.lang.php, recently (the nested

Re: [PHP] Is this a mysql_connect() bug?

2005-01-30 Thread tom soyer
Thanks everyone for all the help. I found the problem. It has to do with a bug in my error handler class that my script loaded prior to executing mysql_connect(). Once I removed the error handler class, mysql_connect() started to behave as expected. My bad. Tom On Sun, 30 Jan 2005 01:16:10

Re: [PHP] design pattern/code generators

2005-01-30 Thread Jochem Maas
robert mena wrote: Hi All, I am looking for advice regarding design patterns/code generation in PHP5. I have a simple code generation tool (written in PHP) to interface with database. It works fine for simple situations but seems a little strange for more complex ones. Suppose I have a table user

Re: [PHP] Permissions on uploaded image don't allow for over writing

2005-01-30 Thread Dave
John, Hugh, I'm not sure what you mean when you say use PHP's FTP. I'm using $HTTP_POST_FILES because the files are retrieved through a web form. As for the user, I would assume that it's whatever default for any viewer coming to a web page. I have people log in using a user name and

[PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread news.php.net
? class A { var $name; function A($str) { $this-name = $str; } } $arr = array(); //Put to array to objects of class A, // where their attribute A::a is assigned a different value //objects are assigned to an array by reference $a = new A(qaz); $arr[0] = $a; $a = new A(wsx);

Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread Marek Kilimajer
No news.php.net wrote: ? class A { var $name; function A($str) { $this-name = $str; } } $arr = array(); //Put to array to objects of class A, // where their attribute A::a is assigned a different value //objects are assigned to an array by reference $a = new A(qaz); $arr[0] = $a;

Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread news.php.net
No news.php.net wrote: ? class A { var $name; function A($str) { $this-name = $str; } } $arr = array(); //Put to array to objects of class A, // where their attribute A::a is assigned a different value //objects are assigned to an array by reference $a = new

Re: [PHP] Image Creation and Saving

2005-01-30 Thread NathanielGuy#21
Ah, thank you. after checking that the folder was there I found I had made a mistake in the path to the folder. 8_ I can believe I didnt find it before. Aside from that error, did I go about the image resizing and everything in the correct way? What is the use of imagecreatetruecolor(). Thanks

Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread Jochem Maas
I did a little experimenting, and it looks like foreach is misbehaving, but may I just don't get it, anyway check this out (my php version and output are below): class A { var $name; function A($str) { $this-name = $str; } } // does not work as expected. $arr = array(); $a = new A(qaz); $arr[0] =

Re: [PHP] Image Creation and Saving

2005-01-30 Thread Jochem Maas
NathanielGuy#21 wrote: Ah, thank you. after checking that the folder was there I found I had made a mistake in the path to the folder. 8_ I can believe I didnt find it before. Aside from that error, did I go about the image resizing and everything in the correct way? What is the use of

[PHP] Re: Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread DvDmanDT
Well, unless I'm misstaken, the '= new' should only be used once with every class, so your code doesn't really make sense. The reason is that you are trying to set the A to the new a, not $a to the new a.. Now, A couldn't get changed I suppose, so therefore, $arr[1] will be a reference to $a,

[PHP] PHP5 + SPL - Creating an object as an array.

2005-01-30 Thread Yotam Ofek
I would like to create an object like this: ?php class TestClass { private $some_array; public $just; public $some; public $public; public $vars; } ? Is it possible, through SPL, to make the class accessible as $testclass['array_key'], which will return the value for the key 'array_key'

[PHP] Re: Still cnanot figure out with much easier example...

2005-01-30 Thread news.php.net
Just compare the output of print_r($arr) and foreach(...)... !!! Please, explain, or my understanding of the php is gonna ruin. Thanx, Mark. ? $as = array(); $a10 = 10; $a20 = 20; $a = $a10; $arr[] = $a; $a = $a20; $arr[] = $a; print_r($arr); foreach($arr as $a) { echo $a; } ?

Re: [PHP] Regexp stopped working on my site

2005-01-30 Thread Kristian Hellquist
The expression that I found won't work anymore is an own pseudo-lang markup that renders into html-lists. Expression for grabbing a list, Example: [lista] some text [/lista] @\[\s*(lista)\s*(sq|o|\*|#|a|i)?\s*\]([^\x00]*?)\[/[EMAIL PROTECTED] $3 is then treated separated into html

[PHP] PHP5 Cli bug ?

2005-01-30 Thread daniel
I have experienced an odd bug where i have been forced to recompile my php. The cli is crappingout , firstly the include paths cant be found now this dyld: php Undefined symbols: _OnUpdateLong _OnUpdateString _compiler_globals _executor_globals _sapi_globals _sapi_module _zend_error_cb

Re: [PHP] PHP5 Cli bug ?

2005-01-30 Thread Jason Wong
You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells all recipients which posting(s) your posting refers

Re: [PHP] Permissions on uploaded image don't allow for over writing

2005-01-30 Thread Jason Wong
On Sunday 30 January 2005 23:04, Dave wrote: I'm not sure what you mean when you say use PHP's FTP. I'm using $HTTP_POST_FILES because the files are retrieved through a web form. What is meant by that is that after the file is uploaded, during your processing of the upload file, instead

Re: [PHP] Re: Still cnanot figure out with much easier example...

2005-01-30 Thread Marek Kilimajer
news.php.net wrote: Just compare the output of print_r($arr) and foreach(...)... !!! Please, explain, or my understanding of the php is gonna ruin. Thanx, Mark. ? $as = array(); $a10 = 10; $a20 = 20; $a = $a10; $arr[] = $a; $a = $a20; $arr[] = $a; print_r($arr); foreach($arr as $a)

Re: [PHP] Re: Still cnanot figure out with much easier example...

2005-01-30 Thread Jason Wong
On Monday 31 January 2005 07:09, news.php.net wrote:  $as = array();  $a10 = 10;  $a20 = 20;  $a = $a10;  $arr[] = $a;  $a = $a20;  $arr[] = $a;  print_r($arr);  foreach($arr as $a)  {   echo $a;  } If you do:  foreach($arr as $b)  {   echo $b;  } then it will work as you

[PHP] PHP5 Cli bug ?

2005-01-30 Thread daniel
I'll try this again. I have experienced an odd bug where i have been forced to recompile my php. The cli is crappingout , firstly the include paths cant be found now this dyld: php Undefined symbols: _OnUpdateLong _OnUpdateString _compiler_globals _executor_globals _sapi_globals _sapi_module

[PHP] Sending email when sendmail_from sendmail_path = null.

2005-01-30 Thread Tim Burgan
Hello, My client's web host's PHP configuration for both sendmail_from and sendmail_path are both = null. How do I send email with PHP? What options do I need to set within my code, and what to? Tim

[PHP] Re: Sending email when sendmail_from sendmail_path = null.

2005-01-30 Thread Manuel Lemos
Hello, on 01/31/2005 12:08 AM Tim Burgan said the following: My client's web host's PHP configuration for both sendmail_from and sendmail_path are both = null. How do I send email with PHP? What options do I need to set within my code, and what to? You need to ask that web host as they probably

Re: [PHP] PHP5 Cli bug ?

2005-01-30 Thread Richard Lynch
[EMAIL PROTECTED] wrote: I'll try this again. I have experienced an odd bug where i have been forced to recompile my php. The cli is crappingout , firstly the include paths cant be found now this dyld: php Undefined symbols: _OnUpdateLong _OnUpdateString _compiler_globals

Re: [PHP] PHP5 Cli bug ?

2005-01-30 Thread daniel
Perhaps some kind of auto-update system software is REPLACING your PHP CLI with a new version... Wiping out your good one with a bad one... I guess it's also possible that you are experiencing something triggered by different users/path settings in your environment. Try opening up a

Re: [PHP] PHP5 Cli bug ?

2005-01-30 Thread daniel
Perhaps some kind of auto-update system software is REPLACING your PHP CLI with a new version... Wiping out your good one with a bad one... I guess it's also possible that you are experiencing something triggered by different users/path settings in your environment. Try opening up a

Re: [PHP] best way to handle user authentication, PHP vs. apache

2005-01-30 Thread Richard Lynch
Raymond Still wrote: Hello; I'm trying to figure out the best (most secure and most user friendly, security of primary importance) way to let a user log-in. I am setting up a web application (database application) that will be for private use only and I want to keep it secure. As I

Re: [PHP] Sessions memory allocation problem

2005-01-30 Thread Richard Lynch
adrian zaharia wrote: Hi, I am testing the following code that pushes a file to the browser (Apache 1.3 + PHP 4.3.8 but tested also under several other configs) Try it with a BIG test1.zip (e.g. 100M in size) ?php ignore_user_abort(); set_time_limit(0); session_save_path('/tmp');

[PHP] Re: Permissions on uploaded image don't allow for over writing

2005-01-30 Thread Raj Shekhar
Dave [EMAIL PROTECTED] writes: The Question: How do I allow a user, who is uploading via the web, place an image on the server with permissions that allow the file to be over written? Since you say that the images are uploaded using HTTP, the files will be owned by the user

Re: [PHP] Problems displaying images with PHP-GD

2005-01-30 Thread Richard Lynch
Ian Johnson wrote: I am trying to use GD to create and manipulate images but the statement: header (Content-type: image/jpg); generates the error message: The image http://localhost/gdtst2.php; cannot be displayed, because it contains errors. Wild Guess: You have a blank line in

Re: [PHP] Sending email when sendmail_from sendmail_path = null.

2005-01-30 Thread Richard Lynch
Tim Burgan wrote: My client's web host's PHP configuration for both sendmail_from and sendmail_path are both = null. How do I send email with PHP? What options do I need to set within my code, and what to? Not sure you can... You might try using .htaccess to set things like: php_value

Re: [PHP] best way to handle user authentication, PHP vs. apache

2005-01-30 Thread Raymond Still
On Sun, 30 Jan 2005 18:49:41 -0800 (PST), Richard Lynch wrote: Raymond Still wrote: Hello; I'm trying to figure out the best (most secure and most user friendly, security of primary importance) way to let a user log-in. I am setting up a web application (database application) that

Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...

2005-01-30 Thread Santa
30 2005 16:07 news.php.net (a): ? class A { var $name; function A($str) { $this-name = $str; } } $arr = array(); //Put to array to objects of class A, // where their attribute A::a is assigned a different value //objects are assigned to an array by reference

[PHP] PHP Security Consortium

2005-01-30 Thread Chris Shiflett
The PHP Security Consortium has officially launched. The following is the press release: -- Leading PHP Experts Join Forces to Establish the PHP Security Consortium NEW YORK, NY - January 31, 2005 - An international group of PHP experts today announced the official launch of the PHP Security

[PHP] Credit card storing, for processing

2005-01-30 Thread Angelo Zanetti
HI all. this might be slightly OT but I know that the list has quite a knowledgable crowd =) So here is my situation: I have a client who I have developed a site for in PHP it provides various models for shares forecasts, the way it works is that people register for free (with their credit card