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
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
$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
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
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.
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
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
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
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
?
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);
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;
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
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
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] =
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
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,
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'
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;
}
?
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
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
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
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
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)
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
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
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
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
[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
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
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
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
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');
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
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
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
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
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
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
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
39 matches
Mail list logo