[PHP] Uploading files via SSH

2003-09-03 Thread Ben C.
This is not a PHP question but didn't know where else to ask it. I am uploading files via SSH Secure File Transfer and am getting the following error message. --error message start-- Failed to scan directories. Error 6: C:/Documents and Settings/My Documents/My Webs/dynamic/1.php: No such file or

Re: [PHP] Am I dreaming or what :)

2003-09-03 Thread Raditha Dissanayake
this is in fact pretty easy. this should get you started [code] $files = split("\n",`ls *gif`); srand((double)microtime()*100); $num = rand(0, count($files)); echo "$num = $files[$num]"; [/code] John Taylor-Johnston wrote: I have a directory jammed-packed with images. I want t

Re: [PHP] cookie crumbles

2003-09-03 Thread John Taylor-Johnston
As it turned out, all I had to do was get rid of the period "." and things began to work better. I also had to remember to close my browser and empty the cookie jar. Thanks, J Jaap Van Ganswijk wrote: > At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote: > >I create this cookie, using Javascr

[PHP] Am I dreaming or what :)

2003-09-03 Thread John Taylor-Johnston
I have a directory jammed-packed with images. I want to read the directory contents /www/usr/htm/images/ and display randomly any *.gif or *.jpg in said directory. Do-able? Seriously? Ideas? Places to start? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Thank you -- Re: auto 'jump' to link

2003-09-03 Thread DougD
exactly what I needed ... just couldn't get it searched out. Your help is greatly appreciated... "Dougd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've seen this somewhere (or I've gone crazy), but a function in PHP that > automatically forwards you to another web page. If want

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread Curt Zirzow
* Thus wrote hecchan ([EMAIL PROTECTED]): > Hi, > Using IE 6 (XP) i can't see the source generated for PHP even the page > works properly (It doesn't happend with Mozilla or Opera). > > If i comment out the line: > session_start() > This behaviour stops. > Any idea what's going on? What is your

Re: [PHP] auto 'jump' to link

2003-09-03 Thread Jackson Miller
header("Location: $url"); hope this helps. -Jackson On Thu, 2003-09-04 at 00:32, DougD wrote: > I've seen this somewhere (or I've gone crazy), but a function in PHP that > automatically forwards you to another web page. If want to do an 'if x=5 > then jump to this other page on the site or an e

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread Curt Zirzow
* Thus wrote Viraj Kalinga Abayarathna ([EMAIL PROTECTED]): > >header("Cache-control: private"); > > p.s. > and also if there is any one wo knows what exactly this header line > means, > please post a brief decription. thanks. private means that only the intended person that is getting t

Re: [PHP] auto 'jump' to link

2003-09-03 Thread Andrew Brampton
if ($x == 5) header('Location: http://blah.com/blah'); This what you were looking for? Also make sure this is sent before any other output Andrew - Original Message - From: "DougD" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 6:32 AM Subject: [PHP] a

[PHP] auto 'jump' to link

2003-09-03 Thread DougD
I've seen this somewhere (or I've gone crazy), but a function in PHP that automatically forwards you to another web page. If want to do an 'if x=5 then jump to this other page on the site or an external site'. Could anyone help me out here? Thanks very much. -Doug -- PHP General Mailing List (

[PHP] Q on "inhert" class code

2003-09-03 Thread jsWalter
I have a parent Class that does this in one of it's methods... $session = &Auth::_importGlobalVariable("session"); $session[$this->_sessionName]['registered'] = true; I would like to "hook" into this in on eof my methods in a child class I thought I could do this... [538] $se

Re: [PHP] vars between instantiate class...

2003-09-03 Thread jsWalter
Thanks. That is waht I needed to know! It works! Thanks Walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: web-mail problem

2003-09-03 Thread Viraj Kalinga Abayarathna
Lingua, i thought you solved this problem. any way, i just peep in to the msg you have forward as a zip file. you have tried few diffrent email adresses as the To: one of them is already exceeded the allocated storage space. another one is not exist in yahoo.com, i'll put some extract from that m

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread Viraj Kalinga Abayarathna
Hi hecchan, I don't have a crear idea on what your problem is, but i have read an article on phpfreak.com, it says to work the sessioned PHP scripts correctly with IE6 you have to insert.. header("Cache-control: private"); immediatly after starting the session. try this.

Re: [PHP] vars between instantiate class...

2003-09-03 Thread murugesan
Pass the value $this->_loginAttempts to the same page, assign it to $this->_loginAttempts and then increment it. -Murugesan "jsWalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to see how many times a person has tried to log in during a > session. > > the login scr

Re: [PHP] vars between instantiate class...

2003-09-03 Thread Raditha Dissanayake
hi, This is because the life time of an object is only as long as the page. Two solutions: store the login attempt count in the cookies. If you want persistent objects serialize them and save them to disk or db. and deserialize them again on the next page. This will have to be coupled with a u

[PHP] vars between instantiate class...

2003-09-03 Thread jsWalter
I am trying to see how many times a person has tried to log in during a session. the login script... $objAuth->start(); if ($objAuth->getAuth()) // is user logged in already ...display hello page... else ...display login page OK, so far so good. If the user punches in an

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Viraj Kalinga Abayarathna
Hi Nicole, You can not retrieve information stored in a cookie which set by one domain from some other domain. Try passing all the information you want with the image SRC tag. regards Viraj Nicole wrote: > > OK. Thanks. > > I have the hidden image code: > > http://thetrackingurl/?param1=val

Re: [PHP] Gripe

2003-09-03 Thread Jason Sheets
This isn't really a problem with PHP, you will encounter it with many other languages how is the parser supposed to know you haven't closed a brace until it reaches the end of the file? It doesn't match using indentation like humans do. Indenting code and code syntax highlighting make it very

Re: [PHP] register_globals

2003-09-03 Thread Jason Sheets
Rather than turning on register globals system wide I'd use .htaccess to enable register globals for the specific sites or applications that require them. Because the super globals have been introduced the problem with register globals and application security may be more prounounced for appli

Re: [PHP] Restart Apache with PHP???

2003-09-03 Thread Jason Sheets
More safely maybe, but even that solution could be exploited somewhat easily. The script that writes the file would be better off as a CGI than executed through the Apache module, this would allow you to restrict write access to the directory where the file that triggers the restart is stored

Re: [PHP] password systems

2003-09-03 Thread Jason Sheets
Take a look at pwgen, it is a command line utility that makes it easy to generate random passwords with a user specified length, it can generate random words that are easier to remember or truly random secure passwords with non alpha numeric characters in it. It is available in the FreeBSD por

[PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread hecchan
Hi, Using IE 6 (XP) i can't see the source generated for PHP even the page works properly (It doesn't happend with Mozilla or Opera). If i comment out the line: session_start() This behaviour stops. Any idea what's going on? Thanks hecchan -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Re: Best Approach for Multiple Options

2003-09-03 Thread Vinoaj Vijeyakumaar
This is similar to a problem I faced yesterday. I have a table "property_facilities" which is essentially a table listing facilities available at different properties. The table structure looks something like: property_id facility_id --- --- 01 01 01

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Diego Fulgueira
Nothing is too advanced for this newgroup and there is not other better. I did not read your problem very carefully, but I think you are trying to set a cookie on a page that does a redirect, that is just impossible unless you do the redirect with a meta tag on the client. Anyway, if that suggesti

Re: [PHP] set_time_limit problem

2003-09-03 Thread Ernest E Vogelsinger
At 01:19 04.09.2003, Colm O'Riain said: [snip] >So 2 questions for you all > >* Why, if the intitial configuration enabled safe mode, would it not be >seen to be enabled when I call phpinfo(INFO_CONFIGURATION)? Because safe_mode might be switched off in ph

[PHP] set_time_limit problem

2003-09-03 Thread Colm O'Riain
Hi, I realize that set_time_limit is a regular problem on this list but I haven't found an answer to my problems in the archivs so I hope someone can help me. I've run into time-limit issues on a script I've written. So, I call set_time_limit(0) at the beginning and this works fine locally -

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread John W. Holmes
Nicole wrote: I have the hidden image code: http://thetrackingurl/?param1=val1¶m2=val2&etc... height=0 width=0 border=0> This hidden image code is placed on the ThankYou page that people see after they have bought something. What it does is load a script on the tracking site to let the owner know

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Chris Shiflett
--- Nicole <[EMAIL PROTECTED]> wrote: > http://thetrackingurl/?param1=val1¶m2=val2&etc... [snip] > The tracking site is different from the site that the product is sold on. > > A cookie was placed on the client's (buyer) side to store where that > client originated from. So when the hidden image

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Nicole
The cookie is being accessed by the same domain it was generated by. The problem is, the script is being pulled up via a hidden image (which resides on a different domain). So that may still be the problem anyway. Thanks. -- "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Re: simple questions (<%=, error reporting)

2003-09-03 Thread Leslie Hoare
"Digital Puer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2. About error reporting, I've found that the default error reporting > level doesn't report undefined variables (these are occuring, for > example, when I misspell a variable name). If I set error_reporting > in php.ini

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Ernest E Vogelsinger
At 23:55 03.09.2003, Nicole said: [snip] >But the script just gets a blank cookie when accessed this way(via hidden >image); However, if the script was accessed directly, or the thankyou page >resided on the same domain as the tracking script (which created t

RE: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Chris W. Parker
Nicole on Wednesday, September 03, 2003 2:56 PM said: > But the script just gets a blank cookie when accessed this way(via > hidden image); However, if the script was accessed directly, or the > thankyou page resided on the same domain as the tracking script > (which

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Nicole
OK. Thanks. I have the hidden image code: http://thetrackingurl/?param1=val1¶m2=val2&etc... height=0 width=0 border=0> This hidden image code is placed on the ThankYou page that people see after they have bought something. What it does is load a script on the tracking site to let the owner know

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Chris Shiflett
--- Nicole <[EMAIL PROTECTED]> wrote: > Is this question too advanced for this newsgroup? Somehow I doubt it. But, that's a nice tactic for grabbing some attention. :-) Show us some sample code of a very small test case. I can't really follow your description of what you are trying to do. Chris

[PHP] GET not working

2003-09-03 Thread Merlin
Hello, I am working on a webservice for a client based on xmlrpc. Everything workes fine on our test systems. The client however has integrated the application and it does not fetch any get vars. The problem can be tracked down to getting the variable out of the url. We use $_GET[] to do this a

[PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Nicole
Is this question too advanced for this newsgroup? Is there a better newsgroup to post this one too? Thanks, -- Nicole "Nicole" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am working on a script that uses cookie to store some info on the client > side. The user will

Re: [PHP] Get the lowest value out of different fields

2003-09-03 Thread CPT John W. Holmes
From: "Frank Keessen" <[EMAIL PROTECTED]> > I hope you can help me with this: > > I have a tabel in my database like this > > TEST > > fieldnameValue's > > testid 1 > testf1 3 > testf2 4 > testf3 0 > testf4 2 > testf5 0 > > (so this is

RE: [PHP] Get the lowest value out of different fields

2003-09-03 Thread Jay Blanchard
[snip] O.k. i dropped my lines below: As you can see, i'm selecting FRANKID 10 and i want to display the lowest value (2 rows are selected)! As you can see a stole a function from www.php.net/min, Now this is working fine for the first record!!! BUT how can i make the function loop through the whol

RE: [PHP] Get the lowest value out of different fields

2003-09-03 Thread Jennifer Goodie
> BUT how can i make the function loop through the whole > result? > > --- > if (mysql_num_rows($result3) > 0) > { > $test = mysql_fetch_array($result3); > echo minnum($test); > } > > -- > Someone will probably come up with someth

Re: [PHP] Get the lowest value out of different fields

2003-09-03 Thread Frank Keessen
Hi all, Thanks for the quick response.. Did a little bit more investigation: (and made additions to my table) ++++++ | testid | testf1 | testf2 | testf4 | testf5 | frankid ++++++ | 1 | 3 | 4 | 0 |

RE: [PHP] Get the lowest value out of different fields

2003-09-03 Thread Jennifer Goodie
> Hi All, > > I hope you can help me with this: > > I have a tabel in my database like this > > TEST > > fieldnameValue's > > testid 1 > testf1 3 > testf2 4 > testf3 0 > testf4 2 > testf5 0 > > (so this is one record!) > > I want to dis

[PHP] Re: web-mail problem

2003-09-03 Thread Lingua2001
Hi Viraj and all, Did you figure out what is going on with the returned mails, Viraj? Thanks in advance, David >Thank you for your message. >I've attached one ZIP file that contains some of the >returned mails including the most recent one (one pair: details.txt and >message4.txt). >Thank yo

RE: [PHP] Get the lowest value out of different fields

2003-09-03 Thread Jay Blanchard
[snip] I have a tabel in my database like this TEST fieldnameValue's testid 1 testf1 3 testf2 4 testf3 0 testf4 2 testf5 0 (so this is one record!) I want to display the lowest value, except 0.. So the SQL statement will be SEL

RE: [PHP] Get the lowest value out of different fields

2003-09-03 Thread Chris W. Parker
Frank Keessen on Wednesday, September 03, 2003 12:14 PM said: > I hope you can help me with this: I hope so too! > TEST > > fieldnameValue's > > testid 1 > testf1 3 > testf2 4 > testf3 0 > testf4 2 > testf5

[PHP] Get the lowest value out of different fields

2003-09-03 Thread Frank Keessen
Hi All, I hope you can help me with this: I have a tabel in my database like this TEST fieldnameValue's testid 1 testf1 3 testf2 4 testf3 0 testf4 2 testf5 0 (so this is one record!) I want to display the lowest value, except

Re: [PHP] Gripe

2003-09-03 Thread Mike Migurski
>Cuz the the way the PHP parser is written makes it impossible to discover >the error before it gets to the end of the file, and realizes that there >are no more braces to go around. > >It definitely sucks... almost as badly as a stray backtick. Try finding >that little bugger at 1600x1280... Thi

Re: [PHP] Q on Class and EXTEND

2003-09-03 Thread CPT John W. Holmes
jsWalter wrote: > What I am trying to do is EXTEND the PEAR::Auth Class with new properties > and methods. > > But I still want to use the original instantiation call... > >$myAuth =& Auth(); > > So, I don't think I can rename the orginal Class in this case. > > I'm just being particular. > >

RE: [PHP] Refreshing After Submitting a From

2003-09-03 Thread Jay Blanchard
[snip] I have a form on a popup that gets submitted to the PARENTWINDOW. If there was an error while processing the form, it will be displayed in the parentwindow. The popup never closes, but it needs to refresh, cuz it needs to get new data from MySQL. Does anyone have any ideas on how I could

RE: [PHP] Ob_start question

2003-09-03 Thread Beauford.2005
Yep, that's it. I thought I had this as it was working at one time, but obviously some spaces got added. Thanks. -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: September 3, 2003 11:13 AM To: PHP Subject: Re: [PHP] Ob_start question * Thus wrote Beauford.2005 ([EMA

Re: [PHP] if else while statement speed

2003-09-03 Thread Chris Sherwood
have you thought about usiing a switch statement that way all the if or else if statements are not checked against? ie if ($option1) > { do_1(); } > elseif ($option2) > { do_2(); } > // ... continue for 10 or more options... > } > ?> - Original Message - From: "Dan Anderson" <

Re: [PHP] Refreshing After Submitting a From

2003-09-03 Thread Dan Anderson
> Does anyone have any ideas on how I could do this? Is there any reason you can't throw a refresh command into a header before any data is sent? -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] installing php5

2003-09-03 Thread Dan Anderson
> Has anyone an idea, what I could do? You might be better off joining the beta testing mailing list if one exists. Many PHP 5 questions don't get much attention here for whatever reasons. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Q on Class and EXTEND

2003-09-03 Thread Raquel Rice
On Wed, 3 Sep 2003 10:05:46 -0700 "Chris Sherwood" <[EMAIL PROTECTED]> wrote: > > <-- snip --> > > > I dont know much about classes, but dont you want > > > > > > $a = new THECHILD('walter'); //so you can access $a->abc > > > > > > instead of > > > > > > $a = new THEPARENT ('walter'); > > > > No,

Re: [PHP] Q on Class and EXTEND

2003-09-03 Thread Chris Boget
> What I am trying to do is EXTEND the PEAR::Auth Class with new properties > and methods. Ok. > But I still want to use the original instantiation call... >$myAuth =& Auth(); Which is instantiating the parent class. >From what I understand of your question, you are wanting to instantiate th

RE: [PHP] if else while statement speed

2003-09-03 Thread Jay Blanchard
[snip] http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] if else while statement speed

2003-09-03 Thread Dan Anderson
I have a function where I have: would it be quicker to do the above code or: if ($option1) { while(something()) { do_1(); } } elseif ($option2) { while (something()) { do_2(); } } // ... continue for 10 or more options... Thanks, Dan -- PHP General Mailing List (http://www.php.net

Re: [PHP] Q on Class and EXTEND

2003-09-03 Thread jsWalter
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > jsWalter wrote: > > I'm wanting to EXTEND the orginal class. > > > > meaning, my THECHILD class efines new methods/properties, and I want it used > > as if it was part of the orginal THEPARENT Class. > > > > Me just bei

Re: [PHP] Q on Class and EXTEND

2003-09-03 Thread Chris Sherwood
<-- snip --> > > I dont know much about classes, but dont you want > > > > $a = new THECHILD('walter'); //so you can access $a->abc > > > > instead of > > > > $a = new THEPARENT ('walter'); > > No, I'm wanting to EXTEND the orginal class. > > meaning, my THECHILD class efines new methods/propertie

Re: [PHP] Q on Class and EXTEND

2003-09-03 Thread John W. Holmes
jsWalter wrote: -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] I dont know much about classes, but dont you want $a = new THECHILD('walter'); //so you can access $a->abc instead of $a = new THEPARENT ('walter'); No, I'm wanting to EXTEND the orginal class. meaning

[PHP] Virus Detected by Network Associates, Inc. Webshield SMTP V4.5

2003-09-03 Thread postmaster
Network Associates WebShield SMTP V4.5 on FZKMAIL1 detected virus W32/[EMAIL PROTECTED] in attachment thank_you.pif from <[EMAIL PROTECTED]> and it was Cleaned and Quarantined. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Q on Class and EXTEND

2003-09-03 Thread jsWalter
> -Original Message- > From: Matt Matijevich [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 03, 2003 11:21 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Q on Class and EXTEND > > > I dont know much about classes, but dont you want > > $a = new THECHILD('walter')

Re: [PHP] Q on Class and EXTEND

2003-09-03 Thread Matt Matijevich
I dont know much about classes, but dont you want $a = new THECHILD('walter'); //so you can access $a->abc instead of $a = new THEPARENT ('walter'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP SESSION timeouts

2003-09-03 Thread Marek Kilimajer
Maybe we don't understand each other. Catalin Trifu wrote: Hi, It does not. session.gc_maxlifetime states that PHP will consider that garbage, but it will not inform you it did so, No it will not inform you and there is no way it can inform you because the gc does not know how t

[PHP] Q on Class and EXTEND

2003-09-03 Thread jsWalter
I found a piece of code in the docs, and thought it was a way to EXTEND a Class with new properties tha cna be accessed from original Class Object. can someone tell me what I did wrong? Thx Walter = name = $newName ; } } class THECHILD extends THEPARENT { var $abc;

Re: [PHP] Re: PHP SESSION timeouts

2003-09-03 Thread Catalin Trifu
Hi, It does not. session.gc_maxlifetime states that PHP will consider that garbage, but it will not inform you it did so, neither does it terminate the session. Make an experimet if you want. set the "timeout" 5 minutes, go for a coffee and come back in 10 minutes. You'll have

[PHP] installing php5

2003-09-03 Thread Moritz Steiner
Hi, I'm trying to install php5 beta, the configure functions well, but during the make I've the following error: ext/mysqli/mysqli_api.lo: In function `zif_mysqli_stmt_data_seek': /localscratch/downloads/php5-200309031130/ext/mysqli/mysqli_api.c:1694: undefined reference to `mysql_stmt_data_seek'

Re: [PHP] Ob_start question

2003-09-03 Thread Curt Zirzow
* Thus wrote Beauford.2005 ([EMAIL PROTECTED]): > I am getting this error: > > Warning: session_start() [function.session-start]: Cannot send session > cache limiter - headers already sent (output started at > /usr/local/apache/php/includes/2004server.inc:24) in > /usr/local/apache/php/includes/re

[PHP] Refreshing After Submitting a From

2003-09-03 Thread Tyler
Hi, I have a form on a popup that gets submitted to the PARENTWINDOW. If there was an error while processing the form, it will be displayed in the parentwindow. The popup never closes, but it needs to refresh, cuz it needs to get new data from MySQL. Does anyone have any ideas on how I could do

Re: [PHP] PHP installation on IIS

2003-09-03 Thread CPT John W. Holmes
From: "Sid" <[EMAIL PROTECTED]> > This is the first time I am installing PHP on IIS and I don't know what I am doing wrong. I copied the default php.ini file to the winnt dir. > Then I added an ISAPI extention with .php to the App Mapings tab. (ISAPI caching enabled) > Then I made a test.php file

Re: [PHP] ImageTTFBBox() hanging?

2003-09-03 Thread Kevin Ballard
Yes. I tried several different TTF files. As the comments in the script note, the standard fonts on my machine are font suitcases (this is OS X), so I had to use some more bizarre font names that I've never tried before as my font path :D But anyway, I just tried again and yep, it doesn't matte

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
Radu Manole wrote: > using "serialize" might work The script works as it is quoted in my previous message. P.S.: It is sufficient to post your replay to the list. Thank you! -- Marco > > - Original Message - > From: "Marco Schuler" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sen

Re: [PHP] ImageTTFBBox() hanging?

2003-09-03 Thread MuToGeN
Hello Kevin, Maybe, the problem is with the TTF file (3rd param for imagettfbox())? Did you try to replace it by another one? KB> Hi. I'm new to the list, but not new to PHP. KB> Anyway, I have a small PHP script that was meant to help learn about KB> doing stuff with the GD library. Ba

[PHP] RE:[PHP] Can Objects be passed to another page?

2003-09-03 Thread Chris Sherwood
Webmaster. Yes they can, but you must pass the reference to the object and not simply the "value" per se. ie $newObject = New phpWeb.Class.Sql(); $returnvalue = PerformUserValidation(&$newObject);

[PHP] PHP installation on IIS

2003-09-03 Thread Sid
Hello everyone, This is the first time I am installing PHP on IIS and I don't know what I am doing wrong. I copied the default php.ini file to the winnt dir. Then I added an ISAPI extention with .php to the App Mapings tab. (ISAPI caching enabled) Then I made a test.php file with but ll I see

[PHP] ImageTTFBBox() hanging?

2003-09-03 Thread Kevin Ballard
Hi. I'm new to the list, but not new to PHP. Anyway, I have a small PHP script that was meant to help learn about doing stuff with the GD library. Basically, it opens an image of a button and centers text on top of it, then displays it. To center the text, it uses ImageTTFBBox(). However, it ap

[PHP] S:PHP4.x + GD-Lib for Solaris 8

2003-09-03 Thread Kaboth, Tobias
Hi all, i have no idea where i can find a package for Solaris 8 (i've googled several times). I need the GD-lib in the compiled package. I try to compile it but there's an error if i try "make install": try 1(default): /tmp/php-4.3.3 #make install Installing PHP CLI binary:/usr/local/bin

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Radu Manole
using "serialize" might work - Original Message - From: "Marco Schuler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 03, 2003 3:37 PM Subject: Re: [PHP] Can Objects be passed to another page? > Hi there > > MuToGeN wrote: > > > No, arrays can be passed (, > >

Re: [PHP] editing using msword(similar) via php

2003-09-03 Thread Marek Kilimajer
It was not asp but javascript with some proprietary extensions, origiginaly started by Explorer and now adopted also by Mozilla. One of the best implementations is HTMLAREA http://www.interactivetools.com/products/htmlarea/ Louie Miranda wrote: Hi, I saw an ASP kind of a msword type editor th

Re: [PHP] Re: Best Approach for Multiple Options

2003-09-03 Thread Marek Kilimajer
Use SET column type if you want. But there is a limit for how many members can the SET type have (64 in MySQL). I would go with the first approach. Kae Verens wrote: this will return true for something like 'pool|fireplace|fitness' mysql_query('select id from theTable where amenities like "%pool

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
Hi MuToGeN wrote: > I was saying about GET and POST, not sessions Could not see that out of your replay... sorry! -- Cheers! Marco > MS> Hi there > > MS> MuToGeN wrote: > > >> No, arrays can be passed (, > >> for example), but not objects. > > MS> And why does this work then? > > MS> ===

Re[2]: [PHP] Can Objects be passed to another page?

2003-09-03 Thread MuToGeN
Hello Marco, I was saying about GET and POST, not sessions MS> Hi there MS> MuToGeN wrote: >> No, arrays can be passed (, >> for example), but not objects. MS> And why does this work then? MS> === SCRIPT === MS> error_reporting(E_ALL); MS> class AClass { MS> var $i = 0; MS> functi

Re: [PHP] Help with copy()/uploading a file

2003-09-03 Thread Marek Kilimajer
Use move_uploaded_file() instead of copy(). The former bypasses safe mode restrictions. James Johnson wrote: Hi, I need some help with the copy() function in order to allow a user to upload an image. The image will need to be in a folder that I can access it's URL for display in a page. The hos

RE: [PHP] Re: Can Objects be passed to another page?

2003-09-03 Thread Ford, Mike [LSS]
On 03 September 2003 12:55, Harry Wiens contributed these pearls of wisdom: > you can store your object in a session ... but make sure the class definition is included *before* the call to session_start(). Cheers! Mike - Mike

Re: [PHP] Re: PHP SESSION timeouts

2003-09-03 Thread Marek Kilimajer
Let me corect you. Catalin Trifu wrote: Hi, No, there is not! You have to manage yourself the timeout, for instance through a timestamp, which you verify on each request. PHP does not destry sessions by itself. Yes, it does, check your session.gc_maxlifetime setting (gc stands for g

RE: [PHP] Ob_start question

2003-09-03 Thread Ford, Mike [LSS]
On 03 September 2003 12:50, Beauford.2005 contributed these pearls of wisdom: > This is line 5.. > > $email_error = "If the problem persists email HREF=mailto:[EMAIL PROTECTED]>Webmaster"; > > but I believe the error message refers to line 5 of > restricted.in, not 2004server.inc. > > Thi

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
Hi there MuToGeN wrote: > No, arrays can be passed (, > for example), but not objects. And why does this work then? === SCRIPT === display(); } function increment() { $this->i++; } function display() { printf('Current value of $i is: %s', $this->i); } } s

Re: [PHP] Ob_start question

2003-09-03 Thread John W. Holmes
Beauford.2005 wrote: I am getting this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache/php/includes/2004server.inc:24) in /usr/local/apache/php/includes/restricted.inc on line 5 I have ob_start

RE: [PHP] Ob_start question

2003-09-03 Thread Beauford.2005
This is line 5.. $email_error = "If the problem persists email mailto:[EMAIL PROTECTED]>Webmaster"; but I believe the error message refers to line 5 of restricted.in, not 2004server.inc. This is line 5 of restricted.inc session_start(); -Original Message- From: Ford, Mike [LS

[PHP] Re: Can Objects be passed to another page?

2003-09-03 Thread Harry Wiens
you can store your object in a session bye Harry Wiens "Webmaster" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi, > > is it possible to pass an Object to another php page? > I want to pass a whole bunch of varibales to another page. > For example the session ID, the lang

Re: [PHP] php editor

2003-09-03 Thread MuToGeN
Hello STONE, I use Zend Studio SS> What's the best php editor out there? SS> Thanks in advance for nay replies! -- Best regards, MuToGeNmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] php editor

2003-09-03 Thread John W. Holmes
STONE Steven wrote: What's the best php editor out there? Thanks in advance for nay replies! We've reached our quota on answering this question. Search the archives. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals

[PHP] php editor

2003-09-03 Thread STONE Steven
What's the best php editor out there? Thanks in advance for nay replies!

Re: [PHP] how to include() N lines?

2003-09-03 Thread John W. Holmes
[EMAIL PROTECTED] wrote: This really begs the question of WTF you have a 10,000+ line file that you only need a couple lines from... seems like your logic is screwy. every time my script is executed a line is added to a given image. right now every image is saved as new file because it needs to re

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Jon Haworth
Hi, > is it possible to pass an Object to another php page? Have a look into serialization: http://php.net/manual/en/language.oop.serialization.php Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Browser vs CLI: different behaviour strip_tags()

2003-09-03 Thread Jeroen Houben
Hi, Running the same script from the command line and in a browser generates different results. In the browser a cleaned up HTML string is returned whereas on the command line I get nothing.. Could someone please test the following code in a browser and on a CLI and let me know if they expreri

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread MuToGeN
Hello Webmaster, No, arrays can be passed (, for example), but not objects. W> Hi, W> is it possible to pass an Object to another php page? W> I want to pass a whole bunch of varibales to another page. W> For example the session ID, the language that the user choose,etc. W> All those variables a

[PHP] Can Objects be passed to another page?

2003-09-03 Thread Webmaster
Hi, is it possible to pass an Object to another php page? I want to pass a whole bunch of varibales to another page. For example the session ID, the language that the user choose,etc. All those variables are in one or more objects. Do I have to copy all those object attributes to variables and pas

[PHP] Re: Best Approach for Multiple Options

2003-09-03 Thread Kae Verens
Ralph Guzman wrote: The second approach is to store amenities as a text delimited string for each property in the facilities table. So if a certain property has a pool, fireplace and fitness center, I would have 'pool|fireplace|fitness' in the amenities field. I can then use PHP to explode or creat

[PHP] OpenSSL and X509 certificates

2003-09-03 Thread Tim Liljendahl
Is there any way to extract 'X509v3 CRL Distribution Points' from a X509v3 certificate in PHP? It does unfortunately not come from the call to openssl_x509_parse - i need the information to check if the certificate has been revoked -- tim liljendahl -- PHP General Mailing List (http://www.php.

  1   2   >