Re: [PHP] Re: Session warning

2005-07-16 Thread Rasmus Lerdorf
Thomas Bonham wrote: > Ok that is some help. > > The first five lines of the file are the following. > > >session_start(); >require("functlib.php"); >?> > > od -c adminlogin.php | head out put the folowing. > > [EMAIL PROTECTED] property]$ od -c adminlogin.php | head >

Re: [PHP] Re: Session warning

2005-07-16 Thread Thomas Bonham
Ok that is some help. The first five lines of the file are the following. od -c adminlogin.php | head out put the folowing. [EMAIL PROTECTED] property]$ od -c adminlogin.php | head 000 \r \n < ? p h p \r \n \t s 020 e s s i o n _

Re: [PHP] Re: Session warning

2005-07-16 Thread Rasmus Lerdorf
On Sat, 16 Jul 2005, Thomas Bonham wrote: > Jasper Bryant-Greene wrote: > > Thomas Bonham wrote: > > > >> Hello All, > >> I'm working on session and I'm getting this warning. Maybe someone can > >> help fixing this problem. Below is the following code. > >> > >> Warning: Warning: session_start() [f

[PHP] Re: Session warning

2005-07-16 Thread Thomas Bonham
Jasper Bryant-Greene wrote: Thomas Bonham wrote: Hello All, I'm working on session and I'm getting this warning. Maybe someone can help fixing this problem. Below is the following code. Warning: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already s

[PHP] Re: Session warning

2005-07-16 Thread Jasper Bryant-Greene
Thomas Bonham wrote: Hello All, I'm working on session and I'm getting this warning. Maybe someone can help fixing this problem. Below is the following code. Warning: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var

[PHP] Session warning

2005-07-16 Thread Thomas Bonham
Hello All, I'm working on session and I'm getting this warning. Maybe someone can help fixing this problem. Below is the following code. Warning: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/html/bonham/corners

[PHP] Re: Trimming Text

2005-07-16 Thread Al
André Medeiros wrote: Greetings. I am trying to trim some text containing HTML tags. What I want to do is to trim the text without trimming the tags or html entities like   and such, wich completelly break the design. Has anyone succeded on doing such a thing? phpclasses.org won't help :( Than

Re: [PHP] Re: Displaying HTML safely

2005-07-16 Thread Jasper Bryant-Greene
Dotan Cohen wrote: On 7/16/05, Lauri Harpf <[EMAIL PROTECTED]> wrote: I've been thinking of limiting this problem by preventing the direct displaying of the code (ie. only allowing "Save As.." for the link to the user-submitted HTML). I guess a bit of JS could prevent accidental left-clicking on

Re: [PHP] Re: Displaying HTML safely

2005-07-16 Thread Dotan Cohen
On 7/16/05, Lauri Harpf <[EMAIL PROTECTED]> wrote: > > Well, unless you have set your server up to execute PHP or CGI scripts in > > .html files, which is a very bad idea, the only thing you need to worry > > about is client-side scripting. You could just filter out all > > tags if client-side scr

[PHP] Re: not sure why form submission gives me error

2005-07-16 Thread Bruce Gilbert
Thanks guys. I am on a Mac and have BBEdit light, which is not too great for PHP editing, from m experience. On 7/16/05, Burhan Khalid <[EMAIL PROTECTED]> wrote: > Edward Vermillion wrote: > > Bruce Gilbert wrote: > > > >> Hello, > >> > >> I have a form on my site > >> http://www.inspired-evoluti

Re: [PHP] Question about apache-php concurrent process control

2005-07-16 Thread Rory Browne
On 7/16/05, rouvas <[EMAIL PROTECTED]> wrote: > Hi Liang, > > trying to get conclusive results with browsers is futile. Use a command-line > tool (like curl) to invoke the web pages and get the results. Or you can use Although personally I think that telnet-to-port-80 would be a better idea, in th

Re: [PHP] Question about apache-php concurrent process control

2005-07-16 Thread rouvas
Hi Liang, trying to get conclusive results with browsers is futile. Use a command-line tool (like curl) to invoke the web pages and get the results. Or you can use PHP's own function to query the web server and do your own timing with microtime() function or another suitable for your purposes.

[PHP] session data not recorded : solved !

2005-07-16 Thread Alessandro Rosa
It was due to my firewall. Highest level protection stopped any cookie to be read. So, once realized, everything re-started to work as usual. Alessandro

Re: [PHP] Dynamic Images and File Permissions

2005-07-16 Thread Jochem Maas
Brian V Bonini wrote: On Thu, 2005-07-14 at 12:09, Adam Hubscher wrote: My questions are this: A) Is there any way to set the permissions on the file on creation of the image? Set umask 002 on the user php is running as. or set the perms correctly on the relevant dir and turn the stickyb

Re: [PHP] PHP 5 Object Inheritance

2005-07-16 Thread Jochem Maas
Chris wrote: Jochem Maas wrote: Chris wrote: Hi, I've got a collection of Element classes (about 8 different ones). They are all subclasses of a single parent element. I'm trying to extend their functionality (both the individual classes, and the parent class they inherit). I can extend

[PHP] session data not recorded (ADD-ON)

2005-07-16 Thread Alessandro Rosa
I forgot to write that: - my config is Win2000/php 4.4.0/apache 1.3 - Session files are correctly created and information stored therein. Then there a trouble in reading such files, since when I call a session variable, the content is not displayed. So what to do? Alessandro

[PHP] session data not recorded

2005-07-16 Thread Alessandro Rosa
I have a problem to record session data and I would you help me. I suppose there's something I missed in the general configurations during the last install, but I can't realize it. I arranged a couple of simple files handling sessions, to show you my problem. I have a file index.php : ---

Re: [PHP] skewed up images

2005-07-16 Thread Ryan A
Thanks mate, works perfectly now. -Ryan On 7/16/2005 4:49:30 AM, Richard Davey ([EMAIL PROTECTED]) wrote: > Hello Ryan, > > Saturday, July 16, 2005, 3:53:16 AM, you wrote: > > RA> in the beginning if the height is more, then its resizing > RA> perfectly...but if the width is more I want to cut out

Re: [PHP] Removing special characters

2005-07-16 Thread Dotan Cohen
On 7/14/05, Computer Programmer <[EMAIL PROTECTED]> wrote: > Is there a PHP built-in function to retrieve only the alphanumeric > characters from a given string? > > I know that I can check for alphanumeric characters using the > function ctype_alphanum () but it won't retrieve the alphanum charac

Re: [PHP] Usability review - OT

2005-07-16 Thread Dotan Cohen
On 7/15/05, Mark Rees <[EMAIL PROTECTED]> wrote: > Hello > > Sorry for the OT request. > > Does anyone know of anywhere I can get my website picked apart from a > usability point of view? I'm thinking of general first impressions rather > than an in-depth review of functionality. > > Thanks > >

[PHP] Core dumps

2005-07-16 Thread Adam Currey
Hi all, new to the list, and a bit of a php cluebie. I know I'll omit some details that you'll need, so tell me what you need to know. I've been happily running mod_php4 (4.4.0) with apache 2.0.52 on FreeBSD 4.9 for quite some time, no problems. Today I tried to install phpBB from /usr/ports/w

[PHP] Unix sockets and fsockopen

2005-07-16 Thread Fredrik Tolf
Hi List! I'm writing an open source PHP application which uses (connects to) Unix sockets. To that means, I'm using the fsockopen function. However, when reading the fsockopen documentation on php.net and being referred to Appendix N, it seems clear that one should use the notation "unix:///path/

Re: [PHP] getimagesize not working on images from MYSQL

2005-07-16 Thread Burhan Khalid
timothy johnson wrote: $id = $_GET['id']; $query = "SELECT * FROM myPhotos WHERE photoId='$id'"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $im = imagecreatefromstring($row[photoData]); $size = getimagesize($im); hea

[PHP] getimagesize not working on images from MYSQL

2005-07-16 Thread timothy johnson
$id = $_GET['id']; $query = "SELECT * FROM myPhotos WHERE photoId='$id'"; $result = mysql_query($query); $row = mysql_fetch_assoc($result); $im = imagecreatefromstring($row[photoData]); $size = getimagesize($im); header('Content-Type: image/

Re: [PHP] not sure why form submission gives me error

2005-07-16 Thread Burhan Khalid
Edward Vermillion wrote: Bruce Gilbert wrote: Hello, I have a form on my site http://www.inspired-evolution.com/Contact.php produces this error on submission Parse error: parse error, unexpected T_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line 35 Well.. i

[PHP] Re: Displaying HTML safely

2005-07-16 Thread Lauri Harpf
> Well, unless you have set your server up to execute PHP or CGI scripts in > .html files, which is a very bad idea, the only thing you need to worry > about is client-side scripting. You could just filter out all > tags if client-side scripting isn't important for your > application... That'