[PHP] (Yet another) I'm blind ... post

2005-08-30 Thread Martin S
In this code, I'm not getting the value of $list passed to the Mailman page. I've checked this umpteen times by now, but fail to see the error. I've beaten myself suitably with a steel ruler -- but it didn't help. Nor does the cold I'm coming down with I suppose. Anyone see the error, and feel lik

Re: [PHP] displaying certain number of character

2005-08-30 Thread Philip Hallstrom
$words= "If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative). If start denotes a position beyond this truncation, an empty string will be returned. "; echo substr($words, 0, 50

[PHP] displaying certain number of character

2005-08-30 Thread Ross
$words= "If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative). If start denotes a position beyond this truncation, an empty string will be returned. "; echo substr($words,

[PHP] displaying certain number of character

2005-08-30 Thread Ross
$words= "If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is negative). If start denotes a position beyond this truncation, an empty string will be returned. "; echo substr($words,

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] Re: [suspicious - maybe spam] PHP/MySQL/XmlHTTPRequest

2005-08-30 Thread Jasper Bryant-Greene
Death Gauge wrote: Ok how do I get rid of the annoying "[suspicious - maybe spam]" crap that appears when I post? This won't help with that, but please stop top-posting. Your ISP is probably adding it because it thinks you're message is spam. It might be something to do with your signature, m

Re: [PHP] IMAP socket?

2005-08-30 Thread Jasper Bryant-Greene
Patrick Barnes wrote: Is there any way to get the file descriptor of an IMAP stream opened with imap_open? No. You'd have to manually connect to the IMAP server with socket functions or whatever. One way to look at it is that imap_* functions are a higher level of abstraction than raw file

[PHP] IMAP socket?

2005-08-30 Thread Patrick Barnes
Hi there, Is there any way to get the file descriptor of an IMAP stream opened with imap_open? Patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] htpasswd-style password generation w/PHP

2005-08-30 Thread Dan Trainor
Hello, all - I've been trying to figure out a reliable way of creating user:pass combinations to be used from within an Apache-based .htpasswd file. >From what I understand, PHP's crypt() function is almost identical to the Linux system crypt() function, which 'htpasswd' uses. However, when usin

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] Re: [suspicious - maybe spam] PHP/MySQL/XmlHTTPRequest

2005-08-30 Thread Death Gauge
Ok how do I get rid of the annoying "[suspicious - maybe spam]" crap that appears when I post? --Death Gauge "How do you gauge your death?!" Original Message Follows From: Manuel Lemos <[EMAIL PROTECTED]> To: Death Gauge <[EMAIL PROTECTED]> CC: php-general@lists.php.net Subject: [P

Re: [PHP] Setup tips for oracle 9i development

2005-08-30 Thread Edin Kadibasic
robert mena wrote: > hi, I'd like to start developing php applications that will access oracle 9i > databases. > I am trying to setup a development enviroment using Linux so I was > wondering what should I download/install from oracle's web site in order to > compile php with 9i support. > I a

Re: [PHP] Setup tips for oracle 9i development

2005-08-30 Thread Edin Kadibasic
Jay Blanchard wrote: > [snip] > hi, I'd like to start developing php applications that will access > oracle 9i > databases. > I am trying to setup a development enviroment using Linux so I was > wondering what should I download/install from oracle's web site in order > to > compile php with 9i

Re: [PHP] Browsing Into Levels

2005-08-30 Thread areguera
Thanks for the replay. > >> They are called breadcrumbs: > >> http://www.google.com/search?q=php+breadcrumbs I didn't know the key :) (breadcrumbs), so it is now a very good help to me. > > use either the existing directory/file > > structure or a hard-coded array of your site structure to cre

Re: [PHP] security while building online store

2005-08-30 Thread Christian Heinrich
Hi, most probably, things like XSS (Cross-Site-Scripting) and SQL-Injections might lead to a successfull hacking-attempt. If you try to write your own online store, make sure that you do NOT use register_globals! Try to google for XSS and SQL-Injections, there might be plenty of information

RE: [PHP] Setup tips for oracle 9i development

2005-08-30 Thread Jay Blanchard
[snip] hi, I'd like to start developing php applications that will access oracle 9i databases. I am trying to setup a development enviroment using Linux so I was wondering what should I download/install from oracle's web site in order to compile php with 9i support. I am assuming that there is

[PHP] Setup tips for oracle 9i development

2005-08-30 Thread robert mena
hi, I'd like to start developing php applications that will access oracle 9i databases. I am trying to setup a development enviroment using Linux so I was wondering what should I download/install from oracle's web site in order to compile php with 9i support. I am assuming that there is some s

Re: [PHP] ZCE Reccommendations

2005-08-30 Thread Chris Shiflett
hitek wrote: I'm taking my ZCE exam soon and would like general advice on what to study up on. This is a good resource: http://zend.com/store/education/certification/zend-php-certification-objectives.php You picked a good month to take the exam, since it's $125 this month (normally $200).

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] PHP/MySQL/XmlHTTPRequest

2005-08-30 Thread Jasper Bryant-Greene
Death Gauge wrote: Where do I go learn about XmlHTTPRequest? I've done googles and all I've found was stuff about toolkits no tutorials or documents telling how to use it. How about the top three results on Google? http://www.google.com/search?q=XMLHTTPRequest -- Jasper Bryant-Greene Freelan

[PHP] Re: [suspicious - maybe spam] PHP/MySQL/XmlHTTPRequest

2005-08-30 Thread Manuel Lemos
Hello, on 08/30/2005 04:51 PM Death Gauge said the following: Where do I go learn about XmlHTTPRequest? I've done googles and all I've found was stuff about toolkits no tutorials or documents telling how to use it. Here you may find at least 3 solutions to take advantage of XMLHttpRequest AJ

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] PHP/MySQL/XmlHTTPRequest

2005-08-30 Thread Death Gauge
Where do I go learn about XmlHTTPRequest? I've done googles and all I've found was stuff about toolkits no tutorials or documents telling how to use it. --Death Gauge "How do you gauge your death?!" _ Express yourself instantly wit

[PHP] Help in upgrade

2005-08-30 Thread PHP
Hi, I am trying to upgrade my server to apache 2 from apache 1, but i am running into a problem   in apache 1, i had the following line:   AddType application/x-httpd-php .php ..php3 ..phtml .htm .html   now if there is a certain directory where i specify to turn the engine off: php_flag eng

Re: [PHP] ZCE Reccommendations

2005-08-30 Thread hitek
Scott Noyes wrote: I'm taking my ZCE exam soon and would like general advice on what to study up on. I've been using php since 97 so I'm pretty confident with day-today stuff, but I'm pretty new to OOP and and looking for any study pointers I can get. Remember that the ZCE still uses PHP

Re: [PHP] User redirection, passing HTTP AUTH credentials

2005-08-30 Thread Dan Trainor
Kristen G. Thorson wrote: > Dan Trainor wrote: > >> Hello once more, all - >> >> I was wondering if it's at all possible to redirect a user to a remote >> site, while passing HTTP AUTH credentials somehow. >> >> I've been tinkering around with making a secure login gateway, and the >> first server

[PHP] Re: Protecing files

2005-08-30 Thread Al
Thomas wrote: Hi there, How can I protect all files with extension .xml from being accessed by the outside? For Apache can one use .htaccess (if yes, how?), is there a generic way of keeping stalkers from viewing your config files? Thomas SPIRAL EYE STUDIOS P.O. Box 37907, Faerie Glen

Re: [PHP] Protecing files

2005-08-30 Thread Rory Browne
On 8/30/05, Thomas <[EMAIL PROTECTED]> wrote: > Hey guys, > > Thanks for all the answers. I had not considered leaving the xml file > outside the webroot (duh!). However, in this case I don't think it would > work, as the project is working through a svn structure (and some boxes run > Linux, othe

[PHP] OS X compile problem with GD

2005-08-30 Thread Marcus Bointon
I've suddenly developed a peculiar compile problem in PHP5. I'm trying to build PHP 5.0.4, 5.0.5RC1, 5.0.5RC2 or 5.1RC1, and they have started giving me an odd problem with GD: gcc -I/Users/marcus/src/php-5.0.4/ext/gd/libgd -DHAVE_LIBPNG - DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -Iext/gd/ -I/Users/

Re: [PHP] Re: [SPAM] - RE: [PHP] SPL Countable count() not being called - Bayesian Filter detected spam

2005-08-30 Thread Chris
Justin Francis wrote: Jay Blanchard wrote: [snip] No. By implementing the Countable interface, and implementing the count() method, the global count($c) function is supposed to call $c->count(). This is so the object can be treated like a countable array in the same manner. [/snip] I was

Re: [PHP] Bug??

2005-08-30 Thread Scott Noyes
> for($i=1;$i<13;$i++) { > echo $i . " :: "; > echo date('F', mktime(0, 0, 0, $i)) . " :: "; > echo mktime(0, 0, 0, $i) . "\n"; > } > > > 1 :: January :: 1107061200 > 2 :: March :: 1109739600 > 3 :: March :: 1112158800 Today is the 30th (in some parts of the world, anyway

Re: [PHP] Browsing Into Levels

2005-08-30 Thread Jordan Miller
you may not need anything fancy like a class for regular breadcrumbs or these BreadcrumbsExtreme™ that you describe. i usually do simple breadcrumbs with a simple function. for the extreme version, just store an array of recently viewed pages in a session variable, and parse this array when

[PHP] Re: [SPAM] - RE: [PHP] SPL Countable count() not being called - Bayesian Filter detected spam

2005-08-30 Thread Justin Francis
Jay Blanchard wrote: [snip] No. By implementing the Countable interface, and implementing the count() method, the global count($c) function is supposed to call $c->count(). This is so the object can be treated like a countable array in the same manner. [/snip] I was asleep earlierif $c

[PHP] Bug??

2005-08-30 Thread b-bonini
for($i=1;$i<13;$i++) { echo $i . " :: "; echo date('F', mktime(0, 0, 0, $i)) . " :: "; echo mktime(0, 0, 0, $i) . "\n"; } 1 :: January :: 1107061200 2 :: March :: 1109739600 3 :: March :: 1112158800 4 :: April :: 1114833600 5 :: May :: 1117425600 6 :: June :: 1120104000 7

RE: [PHP] SPL Countable count() not being called

2005-08-30 Thread Jay Blanchard
[snip] No. By implementing the Countable interface, and implementing the count() method, the global count($c) function is supposed to call $c->count(). This is so the object can be treated like a countable array in the same manner. [/snip] I was asleep earlierif $c is not an array 1 will be

Re: [PHP] SPL Countable count() not being called

2005-08-30 Thread Stut
Justin Francis wrote: Stut wrote: Should it not be $c->count() ? -Stut No. By implementing the Countable interface, and implementing the count() method, the global count($c) function is supposed to call $c->count(). This is so the object can be treated like a countable array in the same

Re: [PHP] Browsing Into Levels

2005-08-30 Thread Greg Schnippel
Good answer, I think thats what they were looking for but just in case: Most of the breadcrumb classes out there (at least the ones that showed up in an initial google search) use either the existing directory/file structure or a hard-coded array of your site structure to create the breadcrumbs

Re: [PHP] SPL Countable count() not being called

2005-08-30 Thread Justin Francis
Stut wrote: Justin Francis wrote: I have not been able to get count() to be called when I pass my Countable class to the count function. I am using PHP 5.1 Release Candidate 1. I am not sure if it is a bug, so I am posting here to see if anyone can help. -- class Col

Re: [PHP] SPL Countable count() not being called

2005-08-30 Thread Stut
Justin Francis wrote: I have not been able to get count() to be called when I pass my Countable class to the count function. I am using PHP 5.1 Release Candidate 1. I am not sure if it is a bug, so I am posting here to see if anyone can help. -- class Collection implem

RE: [PHP] SPL Countable count() not being called

2005-08-30 Thread Jay Blanchard
[snip] class Collection implements Countable { public function count() { return 200; } } $c = new Collection(); echo(count($c)); [/snip] Shouldn't this be echo Collection->count($c); or something like that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SPL Countable count() not being called

2005-08-30 Thread Justin Francis
I have not been able to get count() to be called when I pass my Countable class to the count function. I am using PHP 5.1 Release Candidate 1. I am not sure if it is a bug, so I am posting here to see if anyone can help. -- class Collection implements Countable { public

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Angelo Zanetti
Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052 Jasper Bryant-Greene wrote: > [EMAIL PROTECTED] wrote: > >> Well basically i need it for an "add products" page and if the users >> doesnt fill >> in all the fields correctly I display some error message as well as

Re: [PHP] User redirection, passing HTTP AUTH credentials

2005-08-30 Thread Kristen G. Thorson
Dan Trainor wrote: Hello once more, all - I was wondering if it's at all possible to redirect a user to a remote site, while passing HTTP AUTH credentials somehow. I've been tinkering around with making a secure login gateway, and the first server that they log in to would negotiate the login

[PHP] security while building online store

2005-08-30 Thread [EMAIL PROTECTED]
Hi, I was checking on several php/mysql based on line store, free and commercial, but didn't find any that fits the best for us. Looks like, it would be the best to develop one. To make a online store that works fine - it shouldn't be such a big problem. To make a SECURE ad SAFE online store -

[PHP] apache 1.3.33 + PHP & chunked Transfer-Encoding forbidden error

2005-08-30 Thread Root
Здравствуйте, php-general. Hi all. I have some problem with my Apache server. When some user try open php script using mobile fone & some chat program I get this errors on my log file: [Mon Aug 29 18:37:39 2005] [error] [client 127.0.0.1] chunked Transfer-Encoding forbidden: /chat/index.php [Mon

Re: [PHP] Browsing Into Levels

2005-08-30 Thread Jordan Miller
They are called breadcrumbs: http://www.google.com/search?q=php+breadcrumbs Jordan On Aug 30, 2005, at 4:57 AM, areguera wrote: Hi, I been wondering the best way to make the level browsing, I mean, those links up in page which tell you the position you are, and make you able to return secti

Re: [PHP] time and timestamp

2005-08-30 Thread Burhan Khalid
Jay Blanchard wrote: [snip] Now I am not worried about the time but I would like to know how to (i) sort the returned rows in order (latest first) add ORDER BY `yourdatefield` DESC to your SQL (ii) be able to extract the individual parts of the date and display them in UK format Have no i

Re: [PHP] ZCE Reccommendations

2005-08-30 Thread Scott Noyes
> I'm taking my ZCE exam soon and would like general advice on what to > study up on. I've been using php since 97 so I'm pretty confident with > day-today stuff, but I'm pretty new to OOP and and looking for any study > pointers I can get. Remember that the ZCE still uses PHP 4. Classes and obje

Re: [PHP] Socket functions

2005-08-30 Thread Philippe Reynolds
WOW...so much simpler..thank you very much!! Cheers Phil style='FONT-SIZE:11px;FONT-FAMILY:tahoma,sans-serif'>size=1> From: Burhan Khalid <[EMAIL PROTECTED]>To: Philippe Reynolds <[EMAIL PROTECTED]>CC: php-general@lists.php.netSubject: Re: [PHP] Socket functionsDate: Tue, 30 Aug 2005 09:

RE: [PHP] time and timestamp

2005-08-30 Thread Jay Blanchard
[snip] Now I am not worried about the time but I would like to know how to (i) sort the returned rows in order (latest first) (ii) be able to extract the individual parts of the date and display them in UK format 30.08.2005 this is the text from 30th of August 27.08.2005 this is the text from

[PHP] time and timestamp

2005-08-30 Thread Ross
Hi, I have a row in myslq database called time and is just a simple timestamp column When I echo it out echo $row['time']; echo $row['content']; I get the following 2005-08-30 13:50.05 "this is the text content" Now I am not worried about the time but I would like to know how to (i) sort t

Re: [PHP] Cookies.

2005-08-30 Thread Nancy Ferracutti Kincaide
Dear Jasper, I think the session hash function is set to 32, and MD5 is selected, as the following lines of code show: -- function Session($sessionName="SESSID") { $this->sendNoCacheHeader(); // Session-Namen setzen, Sessio

Re: [PHP] Cookies.

2005-08-30 Thread Jasper Bryant-Greene
Nancy Ferracutti Kincaide wrote: I am trying to install a web application that tests if cookies are enabled the following way: $this->usesCookies = (isset($_COOKIE[session_name()]) && @strlen($_COOKIE[session_name()]) == 32); As it gi

[PHP] Cookies.

2005-08-30 Thread Nancy Ferracutti Kincaide
Hi, I am trying to install a web application that tests if cookies are enabled the following way: $this->usesCookies = (isset($_COOKIE[session_name()]) && @strlen($_COOKIE[session_name()]) == 32); As it gives as a result, that cookie

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: Well basically i need it for an "add products" page and if the users doesnt fill in all the fields correctly I display some error message as well as populate the textfields and dropdown lists with the values they previously entered, so if they entered/selected the file I

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Torgny Bjers
IMHO this is just a design issue, why not just hide the upload field, display a message that they need not re-upload, and just add a hidden field with the name of the uploaded file and once they've corrected their fields, they re-post, and viola, you've got your file still. [EMAIL PROTECTED] wrote

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Mark Rees
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for the replies. > > Well basically i need it for an "add products" page and if the users doesnt fill > in all the fields correctly I display some error message as well as populate the > textfields and dropdown lists with the valu

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread angelo
Thanks for the replies. Well basically i need it for an "add products" page and if the users doesnt fill in all the fields correctly I display some error message as well as populate the textfields and dropdown lists with the values they previously entered, so if they entered/selected the file I wa

Re: [PHP] upload file - clients path to file?

2005-08-30 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: I havent found an answer after looking at the manual. I'm trying to find out if it possible to find the path of the file on the clients pc once a form has been submitted with the file upload form. I know its possible to get the file name but I need the whole path. is thi

[PHP] Re: upload file - clients path to file?

2005-08-30 Thread Mark Rees
> Hi all. > > I havent found an answer after looking at the manual. I'm trying to find > out if it possible to find the path of the file on the clients pc once > a form has been submitted with the file upload form. No, this would be a security risk. If all your users are on an intranet, you may

[PHP] ZCE Reccommendations

2005-08-30 Thread hitek
Hey yall, I'm taking my ZCE exam soon and would like general advice on what to study up on. I've been using php since 97 so I'm pretty confident with day-today stuff, but I'm pretty new to OOP and and looking for any study pointers I can get. Thanks, Keith -- PHP General Mailing List (http:/

[PHP] logout and session management

2005-08-30 Thread R. Vijay Daniel
Hi This is regarding session management in php.I made the session closed when the stipulated time is over and redirect it to login page.But when the back button of the browser is clicked it takes to the previous page from where the session is closed,which is not really worthfull.How can i avoid

[PHP] Browsing Into Levels

2005-08-30 Thread areguera
Hi, I been wondering the best way to make the level browsing, I mean, those links up in page which tell you the position you are, and make you able to return sections back, keeping some kind of logic of where you are. I been used the url vars to do this but I arrive some point where there are coi

[PHP] upload file - clients path to file?

2005-08-30 Thread angelo
Hi all. I havent found an answer after looking at the manual. I'm trying to find out if it possible to find the path of the file on the clients pc once a form has been submitted with the file upload form. I know its possible to get the file name but I need the whole path. is this possible? than

[PHP] Questions regarding distribution of PHP modules as binaries

2005-08-30 Thread Dan Trainor
Hello, all - I've got one more question for you all, which I don't quite understand. What if, say, I'd like to develope an application which requires the use of, well for simplicity, some SSL functionality. I would distribute my PHP application, but then would provide compiled modules for ea

RE: [PHP] divide-column?

2005-08-30 Thread Murray @ PlanetThoughtful
> Murray @ PlanetThoughtful wrote: > >>Hi there! > >> > >>How do I do a sort in PHP where a column in a db must be two other > columns > >>divided...`? > > > > > > > > > > Hi Gustav, > > > > You should be able to use the divide operation in your query's ORDER BY > > clause. > > > > Eg > > > > SELE

Re: [PHP] divide-column?

2005-08-30 Thread Jasper Bryant-Greene
Murray @ PlanetThoughtful wrote: Hi there! How do I do a sort in PHP where a column in a db must be two other columns divided...`? Hi Gustav, You should be able to use the divide operation in your query's ORDER BY clause. Eg SELECT * FROM mytable ORDER BY (field1 / field2) You might ne

RE: [PHP] divide-column?

2005-08-30 Thread Murray @ PlanetThoughtful
> Hi there! > > How do I do a sort in PHP where a column in a db must be two other columns > divided...`? Hi Gustav, You should be able to use the divide operation in your query's ORDER BY clause. Eg SELECT * FROM mytable ORDER BY (field1 / field2) Regards, Murray --- "Lost in thought..."

RE: [PHP] How can I format text in textarea?

2005-08-30 Thread Murray @ PlanetThoughtful
> Hi > When I enter text as more than on paragrahs in a textarea field,The text > is displayed in one solid block of text even though I have entered it in > paragraphs. > How I can to insert line breaks in the text. (The values of textarea is > stored in database and then displayed.) > > > Bushr

RE: [PHP] Problem With Inner Loop

2005-08-30 Thread Murray @ PlanetThoughtful
> Hi, > > The following code is attempting to display a list of work types for all > the > users in my database. However it only loops through the inner loop once > and > I can't work out why, can anyone help here please? > > Thanks for your help > > > include('application.php'); > $staff_qid