Re: [PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
On Sun, 2013-08-04 at 13:27 +0100, Tim Streater wrote: > On 04 Aug 2013 at 11:28, Ashley Sheridan wrote: > > > Like Matijn said, unless you're using some kind of client-side method to > > continually poll the server, you can't know if they've just closed their > > browser. There are Javascript

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal wrote: > Tamara Temple writes: > > My ../apache2/conf.d directory is a symlink to the ../conf.d > > directory. This might indeed be the problem. > > Yes. > My system was Debian Squeeze and I just upgraded it to Debian > Wheezy. Some configuration files and directories remains from Squ

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal wrote: > Tamara Temple writes: > > Csanyi Pal wrote: > >> It is interesting.. that when I switch to English language for > >> Moodle installation ( on the web interface ), then I get not this > >> error, but if I switch back to Hungarian language for installation, I > >> get it again.

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal wrote: > It is interesting.. that when I switch to English language for > Moodle installation ( on the web interface ), then I get not this error, > but if I switch back to Hungarian language for installation, I get it > again. I am completely unfamiliar with Moodle, have no idea what

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
On Thu, Apr 11, 2013 at 1:12 PM, Rafnews wrote: > On 11.04.2013 19:19, Jim Giner wrote: >> >> On 4/11/2013 10:48 AM, Rafnews wrote: >>> >>> On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently n

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread Rafnews
On 11.04.2013 19:19, Jim Giner wrote: On 4/11/2013 10:48 AM, Rafnews wrote: On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say ... (so based on its I

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread Rafnews
On 11.04.2013 14:14, Jim Giner wrote: On 4/11/2013 7:34 AM, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say ... (so based on its ID and tagname) and inside it to insert

Re: [PHP] Re: How to limit source IP in PHP

2012-09-18 Thread Tonix (Antonio Nati)
Il 18/09/2012 16:24, Daniel Brown ha scritto: On Tue, Sep 18, 2012 at 9:15 AM, Ian wrote: Hi Curtis, I am suffering from sleep deprivation due to a new family addition and I fail to see how your code will prevent a malicious user from binding to an IP that I do not want him to. It appears to

Re: [PHP] Re: How to limit source IP in PHP

2012-09-18 Thread Daniel Brown
On Tue, Sep 18, 2012 at 9:15 AM, Ian wrote: > > Hi Curtis, > > I am suffering from sleep deprivation due to a new family addition and I > fail to see how your code will prevent a malicious user from binding to > an IP that I do not want him to. It appears to be an example of how to > bind to an I

Re: [PHP] Re: How to limit source IP in PHP

2012-09-14 Thread Curtis Maurand
On 9/14/2012 7:20 AM, Ian wrote: On 12/09/2012 14:53, Tonix (Antonio Nati) wrote: Is there a way to force a PHP script to bind to a prefixed IP? Actually, while you can assign more IPs to Apache for listening, assigning domains to specific IPs, it looks like any PHP script can freely choose whi

Re: [PHP] Re: How to use wsdl files?

2012-08-31 Thread Louis Huppenbauer
Hi there 2012/8/31 Michelle Konzack > Hello Matijn Woudt, > > Am 2012-08-30 16:44:53, hacktest Du folgendes herunter: > > You could start by looking at the PHP SoapClient [1], which takes a > > URI to a WSDL descriptor as argument. You can enter the URL to the > > WSDL file there, like this: > >

Re: [PHP] Re: How to best set per-site PHP session storage under suPHP/WordPress?

2012-08-13 Thread Philip Amadeo Saeli
* Ian [2012-08-13 09:50:51 +0100]: > On 13/08/2012 06:01, Philip Amadeo Saeli wrote: > > I'm administering WordPress sites under suPHP on a CentOS LAMP server > > and would like to know how I can set PHP to keep the session files under > > the WP user's dir without having do duplicate the entire p

Re: [PHP] Re: How to send XML requests from PHP?

2012-05-09 Thread ma...@behnke.biz
Michelle Konzack hat am 8. Mai 2012 um 20:25 geschrieben: > Hello Jim Lucas, > > Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: > > Look into cURL http://php.net/curl > > I know "curl" but I do not know, HOW to send the XML stuff. $ch = curl_init (); curl_setopt ( $ch , CURLOPT_URL

Re: [PHP] Re: How to send XML requests from PHP?

2012-05-08 Thread Jim Lucas
On 05/08/2012 11:25 AM, Michelle Konzack wrote: Hello Jim Lucas, Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: Look into cURL http://php.net/curl I know "curl" but I do not know, HOW to send the XML stuff. The XML code is generated using a temp file for logging, which mean, I can

Re: [PHP] Re: How to write a PHP coding to list out all files and directories aslinks to them?

2011-04-16 Thread Ashley Sheridan
On Sat, 2011-04-16 at 15:02 -0500, Shawn McKenzie wrote: > On 04/14/2011 06:16 PM, Mikhail S wrote: > > How to write a PHP coding to list out all files and directories as links to > > them? > > > > This is somewhat similar to some index pages. When new file or folder is > > added to the directory

Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-06 Thread cr.vegelin
From: Ashley Sheridan To: Manuel Lemos Cc: cr.vege...@gmail.com ; php-general@lists.php.net Sent: Saturday, July 03, 2010 1:22 PM Subject: Re: [PHP] Re: how to use HTML Symbol Entities with mail() ? On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote: Hello, on 07/01/2010 10:34

Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-03 Thread Ashley Sheridan
On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote: > Hello, > > on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following: > > Hi List, > > > > I am working on generated emails, using the mail() function. > > Works fine, but when including characters like ∧ (= ∧) or ∨ > > (= ∨) > > in

Re: [PHP] Re: how to overload accessible methods

2010-04-16 Thread Ryan Sun
thanks for all your reply, since all these classes have main entry in cron.php, I have moved validation there. Richard, your solution seems interesting, maybe I can use it later :) On Thu, Apr 15, 2010 at 4:46 AM, Richard Quadling wrote: > On 13 April 2010 17:25, Ryan Sun wrote: >> this is a cla

Re: [PHP] Re: how to overload accessible methods

2010-04-15 Thread Richard Quadling
On 13 April 2010 17:25, Ryan Sun wrote: > this is a class for corntab job, and the validation is very simple, > just check if the status of user is active when cron job runs, if not, > throws an exception, other developers won't want to overwrite this > validation. > which method of user class wil

Re: [PHP] Re: how to overload accessible methods

2010-04-13 Thread Ashley Sheridan
On Tue, 2010-04-13 at 12:03 -0400, Ryan Sun wrote: > I'm writing an abstract parent class which only contain a validate > method, other developers will extend this class and add many new > public methods, every new methods will need to perform a validate > first. Won't it be good if validate get

Re: [Fwd: Re: [PHP] Re: How to take output from an include, and embed it into a variable?]

2009-09-25 Thread Robert Cummings
Carl Furst wrote: You mean like this ? $file string = file_get_contents(urlencode($file_path)); $result = eval($file_string); ?> Well I see a few problems with this. One is that scope is not lexical. In other words if $foo exist

[Fwd: Re: [PHP] Re: How to take output from an include, and embed it into a variable?]

2009-09-25 Thread Carl Furst
You mean like this ? $file string = file_get_contents(urlencode($file_path)); $result = eval($file_string); ?> Well I see a few problems with this. One is that scope is not lexical. In other words if $foo exists somewhere in the

Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-25 Thread Phpster
On Sep 25, 2009, at 3:12 PM, Geert Tapperwijn wrote: Can't you just use the eval function, and parse the code from the include file in it? .. or is there something I'm missing her Because eval has risks if code gets injected into the code you mean to run.

Re: Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-25 Thread Geert Tapperwijn
Can't you just use the eval function, and parse the code from the include file in it? .. or is there something I'm missing here? 2009/9/25 Carl Furst > > > Jim Lucas wrote: > >> Ashley Sheridan wrote: >> >> >>> On Wed, 2009-09-23 at 07:36 -0700, Jim Lucas wrote: >>> >>

Re: Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-24 Thread Carl Furst
Jim Lucas wrote: Ashley Sheridan wrote: On Wed, 2009-09-23 at 07:36 -0700, Jim Lucas wrote: Mert Oztekin wrote: Output buffering will do it. Also I am not sure but did you try retrieving content with fopen() ? Something like $file = 'invoicetable_bottom.php'; fopen("http://

Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-23 Thread Jim Lucas
Ashley Sheridan wrote: > On Wed, 2009-09-23 at 07:36 -0700, Jim Lucas wrote: >> Mert Oztekin wrote: >>> Output buffering will do it. >>> >>> Also I am not sure but did you try retrieving content with fopen() ? >>> >>> Something like >>> >>> $file = 'invoicetable_bottom.php'; >>> fopen("http://yours

Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-23 Thread Ben Dunlap
> $file = 'invoicetable_bottom.php'; > fopen("http://yoursite.com/folder/$file","r";); > > http://tr.php.net/function.fopen > > worth trying. Easier than output buffering Easier in what sense? It would end up requiring more code than output-buffering because you'd have to read from the file after

Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-23 Thread Ashley Sheridan
On Wed, 2009-09-23 at 07:36 -0700, Jim Lucas wrote: > Mert Oztekin wrote: > > Output buffering will do it. > > > > Also I am not sure but did you try retrieving content with fopen() ? > > > > Something like > > > > $file = 'invoicetable_bottom.php'; > > fopen("http://yoursite.com/folder/$file","

Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-23 Thread Jim Lucas
Mert Oztekin wrote: > Output buffering will do it. > > Also I am not sure but did you try retrieving content with fopen() ? > > Something like > > $file = 'invoicetable_bottom.php'; > fopen("http://yoursite.com/folder/$file","r";); > > http://tr.php.net/function.fopen > > worth trying. Easier

RE: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-23 Thread Mert Oztekin
Output buffering will do it. Also I am not sure but did you try retrieving content with fopen() ? Something like $file = 'invoicetable_bottom.php'; fopen("http://yoursite.com/folder/$file","r";); http://tr.php.net/function.fopen worth trying. Easier than output buffering -Original Message

Re: [PHP] Re: How to output a NULL field?

2009-08-27 Thread Martin Scotta
l@lists.php.net; David Stoltz > Subject: Re: [PHP] Re: How to output a NULL field? > > > One option then, might be to format the result with SQL using a CASE > WHEN THEN statement or ISNULL / IFNULL to set it to empty string > > -- > > Bastien > > Cat, the

RE: [PHP] Re: How to output a NULL field?

2009-08-27 Thread David Stoltz
You're a genius - that works! -Original Message- From: Bastien Koert [mailto:phps...@gmail.com] Sent: Wednesday, August 26, 2009 2:02 PM To: Andrew Ballard Cc: Shawn McKenzie; php-general@lists.php.net; David Stoltz Subject: Re: [PHP] Re: How to output a NULL field? One o

Re: [PHP] Re: How to output a NULL field?

2009-08-26 Thread Bastien Koert
On Wed, Aug 26, 2009 at 12:06 PM, Andrew Ballard wrote: > On Tue, Aug 25, 2009 at 3:22 PM, Shawn McKenzie wrote: >> First off, if the value is NULL in the database then in PHP it will be >> the string "NULL" and not a null value as far as I remember. > > I've not seen this happen. I've found, depen

Re: [PHP] Re: How to output a NULL field?

2009-08-26 Thread Andrew Ballard
On Tue, Aug 25, 2009 at 3:22 PM, Shawn McKenzie wrote: > First off, if the value is NULL in the database then in PHP it will be > the string "NULL" and not a null value as far as I remember. I've not seen this happen. I've found, depending on the database and the data access library used to interf

Re: [PHP] Re: How to download and configure php mvc website locally

2009-08-21 Thread Paul M Foster
On Wed, Aug 19, 2009 at 11:00:46PM -1000, Sumit Sharma wrote: > Hi all, > The site I have download was developed using cake php. Now when trying to > access the website it is showing a blank page. As Sudheer suggested I went > to error log and noted down the errors there, which are as follows: >

Re: [PHP] Re: How to download and configure php mvc website locally

2009-08-20 Thread Nitebirdz
On Wed, Aug 19, 2009 at 11:00:46PM -1000, Sumit Sharma wrote: > Hi all, > The site I have download was developed using cake php. Now when trying to > access the website it is showing a blank page. As Sudheer suggested I went > to error log and noted down the errors there, which are as follows: > >

Re: [PHP] Re: How to download and configure php mvc website locally

2009-08-20 Thread Ashley Sheridan
On Wed, 2009-08-19 at 23:00 -1000, Sumit Sharma wrote: > Hi all, > The site I have download was developed using cake php. Now when trying to > access the website it is showing a blank page. As Sudheer suggested I went > to error log and noted down the errors there, which are as follows: > > [Thu A

RE: [PHP] Re: how to say "inverse your value" (to a boolean)?

2009-08-11 Thread Ford, Mike
> -Original Message- > From: Ralph Deffke [mailto:ralph_def...@yahoo.de] > Sent: 11 August 2009 01:45 > > u... > try > echo ""; > for( $i=0 ; $i<10; $i++){ > echo "something " . (($a = $a^1) ? "red\n" : "green\n"); > } The ^ operator is one that has an assigning version, so the abov

Re: [PHP] Re: how to say "inverse your value" (to a boolean)?

2009-08-10 Thread Adam Randall
age- >> From: Adam Randall [mailto:randa...@gmail.com] >> Sent: Monday, August 10, 2009 6:41 PM >> To: php-general@lists.php.net >> Subject: Re: [PHP] Re: how to say "inverse your value" (to a boolean)? >> >> http://us3.php.net/manual/en/language.operat

RE: [PHP] Re: how to say "inverse your value" (to a boolean)?

2009-08-10 Thread Daevid Vincent
://www.youtube.com/watch?v=qItugh-fFgg) > -Original Message- > From: Adam Randall [mailto:randa...@gmail.com] > Sent: Monday, August 10, 2009 6:41 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Re: how to say "inverse your value" (to a boolean)? > &g

Re: [PHP] Re: how to say "inverse your value" (to a boolean)?

2009-08-10 Thread Adam Randall
http://us3.php.net/manual/en/language.operators.comparison.php Find "Ternary" on that page. It's a shortened conditional: cond ? true : false Adam. On Mon, Aug 10, 2009 at 6:27 PM, John Butler wrote: >>  echo "something " . (($a = $a^1) ? "red\n" : "green\n"); > > Re: The "?" char in this

Re: [PHP] Re: how to say "inverse your value" (to a boolean)?

2009-08-10 Thread John Butler
echo "something " . (($a = $a^1) ? "red\n" : "green\n"); Re: The "?" char in this line above.. where in the php docs can I read about what that is doing? I have not come across this construct before today, from you guys. thanks -John -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Re: how to say "inverse your value" (to a boolean)?

2009-08-10 Thread John Butler
= ! ! =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread schneider . chantale
Hi back, - original Nachricht Betreff: Re: [PHP] Re: How to authnticate and use contents from ${HOME} Gesendet: Sa 11 Jul 2009 17:55:24 CEST Von: "Ashley Sheridan" > Have you looked at other online solutions for this? For someone who is just > > learning PHP, yo

Re: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread Ashley Sheridan
On Saturday 11 July 2009 16:41:21 schneider.chant...@freenet.de wrote: > Hello Ashley, > > > This really seems like you would be best off doing this with a simple SSH > > connection. I see you use Linux, so that makes things easier. > > Ehm, no, I use and the Webinterface. > > > You can > > manipu

Re: Re: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread schneider . chantale
Hello Ashley, > This really seems like you would be best off doing this with a simple SSH > connection. I see you use Linux, so that makes things easier. Ehm, no, I use and the Webinterface. > You can > manipulate files as if they were in your local file system with KDE IO > slaves > (assumi

Re: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread Ashley Sheridan
On Saturday 11 July 2009 15:57:30 schneider.chant...@freenet.de wrote: > Hello Carl, > > > PHP may not be the thing to do this.. because it sounds like you want > > the users to chroot to ${HOME} which php especially on a vhost does not > > do. > > It is not a VHost. It is a full blown machine. >

RE: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread Marc Christopher Hall
First time I've ever seen LAMP described as a language... __ Information from ESET Smart Security, version of virus signature database 4234 (20090711) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 10:52, wrote: > Hi Isaac, > >> Installing LAMP is not a good idea for productive servers. Always stick >> with >> the Packages of your distribution to get all upgrades. No offense toward the poster of this information, but this is probably the most ludicrous advice I'v

Re: [PHP] Re: how to deal with multiple authors for one book

2009-02-24 Thread Bastien Koert
On Tue, Feb 24, 2009 at 8:59 AM, PJ wrote: > Reinhardt Christiansen wrote: > > > > > > > >> From: PJ > >> To: MySql > >> Subject: how to deal with multiple authors for one book > >> Date: Mon, 16 Feb 2009 17:20:54 -0500 > >> > >> In my db there are a number of books with several authors; so, I

Re: [PHP] Re: How to use SVN + PHP

2009-01-22 Thread Nathan Rixham
derby wrote: Our dev team is using eclipse-pdt and subclipse plugin which integrates eclipse and subversion. Subversion or any VCS is essential. After 15 years of using FTP/SFTP/SCP, SVN has replaced it for all my web projects. you can get the RSE plugin for eclipse-pdt as well; I'd really re

Re: [PHP] Re: How to use SVN + PHP

2009-01-22 Thread derby
Another tidbit... I am fairly new to SVN or any Version Control System. Whether its CVS, SVN, or GIT a VCS is essential even for solo projects. My setup is as follows, [and it seems to work pretty well]: 1. svn repo lives on dev server. 2. everything is in the trunk. I haven't touched branches

Re: [PHP] Re: How to use SVN + PHP

2009-01-19 Thread Chris
Edmund Hertle wrote: 2009/1/20 Nathan Rixham you don't have to locally develop, you can develop however you want :) svn is just version controlling all your files to make it easier to team work and to rollback code. you then tag good versions of the code in svn so you have a permanent easy to a

Re: [PHP] Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Eric Butera
On Sun, Jan 4, 2009 at 1:39 PM, Michelle Konzack wrote: > Hi Jim... ;-) > > The code: > > [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] > function fncPushBinary($type='show', $file, $mime='') { > >$BUFFER=1024; > >$HANDLER=fopen($file, r); > >$C

Re: [PHP] Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Eric Butera
On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan wrote: > On Sat, 2009-01-03 at 13:27 +0100, Michelle Konzack wrote: >> Good morning Jim, >> >> Thank your for your help, I will now adapt my scripts and test it. >> >> And if a user had done a partial download, how can I set the pointer to >> resume

Re: [PHP] Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Ashley Sheridan
On Sat, 2009-01-03 at 13:27 +0100, Michelle Konzack wrote: > Good morning Jim, > > Thank your for your help, I will now adapt my scripts and test it. > > And if a user had done a partial download, how can I set the pointer to > resume the download? I personaly find websites offering downloads

RE: [PHP] Re: How to Insert into DOMDocument

2008-12-06 Thread Shanon Swafford
>> Is there a way to make it create the following XML? >> >> >> >> >> >> >> >> >> I can't seem to find any dom functions to do this. >> >> Thanks in advance, >> Shanon >> >> > >DOMProcessingInstruction as such: > >error_reporting(E_ALL | E_STRICT); > >$doc = new DOMDocument(); >$doc-

Re: [PHP] Re: how to write good code

2008-09-01 Thread Yeti
Ross McKay <[EMAIL PROTECTED]> wrote: > Find out what "bad" is by reading this: > > http://thedailywtf.com/Series/CodeSOD.aspx > > Then, don't do it like that! What I enjoyed most on that page was this comment: > One day, after a code review by one of our 'senior' developers this little > beauty

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-20 Thread Daniel Brown
On Wed, Jun 18, 2008 at 3:33 PM, Michelle Konzack <[EMAIL PROTECTED]> wrote: > Am 2008-06-18 13:34:19, schrieb Daniel Brown: >> Even Microsoft's website. ;-P > > Do you think, you can DoS the Akamai network? A DoS attack is novice work ;-P However, the fact is, with enough resour

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-20 Thread Michelle Konzack
Am 2008-06-18 09:23:37, schrieb Philip Thompson: > They're attacking you b/c they've read your previous posts to this > list about blocking javascript, so they're just testing you. If I were > you, I'd consider it to be a privilege that you're getting DoS'd. =P :-/ I had such things already h

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-20 Thread Michelle Konzack
Am 2008-06-18 13:34:19, schrieb Daniel Brown: > Even Microsoft's website. ;-P Do you think, you can DoS the Akamai network? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-18 Thread Daniel Brown
On Wed, Jun 18, 2008 at 1:00 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > That is fine, but I can upload a file to any php script. > > I don't need to use your form to do so, I an just use my own form and post > data directly to the script. > > If anybody remembers, this was an exploit that was fou

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-18 Thread Jim Lucas
Michelle Konzack wrote: Hello Nitsan and Andrew, Am 2008-06-16 13:20:14, schrieb Andrew Ballard: On Mon, Jun 16, 2008 at 1:01 PM, Nitsan Bin-Nun <[EMAIL PROTECTED]> wrote: I think you can handle this with 2 pages, the first is checking whether the user is permitted to upload or not and if so pa

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-18 Thread Philip Thompson
On Jun 17, 2008, at 9:22 AM, Michelle Konzack wrote: Am 2008-06-16 12:02:27, schrieb Per Jessen: Check client IP-addresses? And then? I am DoS'ed from several 1000 IPs and since legitim uploaders are mostly on dynamic IPs I can not block by IP. OK, last Saturday I have installed a COOKIE

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-17 Thread Stut
On 17 Jun 2008, at 15:22, Michelle Konzack wrote: Am 2008-06-16 12:02:27, schrieb Per Jessen: Check client IP-addresses? And then? I am DoS'ed from several 1000 IPs and since legitim uploaders are mostly on dynamic IPs I can not block by IP. OK, last Saturday I have installed a COOKIE whi

Re: [PHP] Re: How to prevent DoS on PHP script?

2008-06-17 Thread Nathan Nobbe
On Tue, Jun 17, 2008 at 8:22 AM, Michelle Konzack < [EMAIL PROTECTED]> wrote: > Am 2008-06-16 12:02:27, schrieb Per Jessen: > > Check client IP-addresses? > > And then? I am DoS'ed from several 1000 IPs and since legitim uploaders > are mostly on dynamic IPs I can not block by IP. > > OK, last Sa

Re: [PHP] Re: How to structure code for forms

2008-06-08 Thread Roland Häder
Hi, On Sunday, 8. June 2008, Manuel Lemos wrote: > Hello, > > on 06/08/2008 08:01 AM Ethan Whitt said the following: > > I am new to PHP and have been researching ways to structure code for > > forms. I have found a > > few basic tutorials that present, validate & present errors, and then > > proc

Re: [PHP] Re: How to determine if file is writable and deletable

2008-05-11 Thread Robert Cummings
On Sun, 2008-05-11 at 18:09 -0400, Al wrote: > I ended up using posix_access() which is what is_writeable() should be. > is_writeable() is virtually > useless. So you're saying is_writeable() shouldn't work on Windows systems? :p Seems you want is_writeable() to sing AND dance... perhaps too m

Re: [PHP] Re: how to use passthru ()

2008-04-24 Thread David Giragosian
On 4/24/08, Eric Butera <[EMAIL PROTECTED]> wrote: > On Thu, Apr 24, 2008 at 9:14 AM, J. Manuel Velasco - UBILIBET > <[EMAIL PROTECTED]> wrote: > > > > No friend, > > > > I said, the perl scripts work fine. The problem is to show the result in > > the site. > > > > One of them the result is show

Re: [PHP] Re: how to use passthru ()

2008-04-24 Thread Eric Butera
On Thu, Apr 24, 2008 at 9:14 AM, J. Manuel Velasco - UBILIBET <[EMAIL PROTECTED]> wrote: > > No friend, > > I said, the perl scripts work fine. The problem is to show the result in > the site. > > One of them the result is shown and in the other one, not. > > What is strange to me is that both

Re: [PHP] Re: how to use passthru ()

2008-04-24 Thread J. Manuel Velasco - UBILIBET
No friend, I said, the perl scripts work fine. The problem is to show the result in the site. One of them the result is shown and in the other one, not. What is strange to me is that both scripts are almost the same, only changes the query, in one case is to Eurid and the other case is to E

Re: [PHP] Re: how to use passthru ()

2008-04-24 Thread David Giragosian
On 4/24/08, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > J. Manuel Velasco - UBILIBET wrote: > > Hello, > > > > I have two perl scripts that runs fine in the shell. But when I build a > page with them, only in one case the results are shown in the other case i > see a blank page. > > > > I have done

Re: [PHP] Re: How to implement a plugin system?

2007-08-07 Thread Nathan Nobbe
On 8/7/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Mon, August 6, 2007 4:22 pm, Hamza Saglam wrote: > > I think I have a rough understanding of the whole process so I should > > start > > coding :) > > > > Many thanks to everyone for your suggestions. > > You may also want to look at how Dr

Re: [PHP] Re: How to implement a plugin system?

2007-08-07 Thread Richard Lynch
On Mon, August 6, 2007 4:22 pm, Hamza Saglam wrote: > I think I have a rough understanding of the whole process so I should > start > coding :) > > Many thanks to everyone for your suggestions. You may also want to look at how Drupal is doing it, as they seem to be bragging about their plugin arch

Re: [PHP] Re: How to get stored procedure return values via PDO?

2007-07-26 Thread Richard Davey
Hi M., Thursday, July 26, 2007, 2:09:47 PM, you wrote: > Richard Davey wrote: >> Hi, >> >> I'm calling a MySQL Stored Procedure via PDO (PHP 5.2.3) >> >> $stmt = $dbh->prepare('CALL forum_post(?, ?, ?, ?, ?, @status, @thread_id, >> @message_id)'); >> >> At the moment in order to get the value

Re: [PHP] Re: how to detect type of image

2007-04-29 Thread tedd
At 9:53 AM -0500 4/29/07, Edward Vermillion wrote: On Apr 29, 2007, at 8:03 AM, tedd wrote: The php functions that provide data about files, do just that. They inspect the header of the file and report what they have found. How you use them, is your business. Well, from the example it looks

Re: [PHP] Re: how to detect type of image

2007-04-29 Thread Edward Vermillion
On Apr 29, 2007, at 8:03 AM, tedd wrote: At 4:46 PM -0500 4/28/07, Edward Vermillion wrote: On Apr 28, 2007, at 12:21 PM, tedd wrote: At 9:22 AM -0500 4/28/07, Edward Vermillion wrote: It should, but instead try this: $image_size = getimagesize($filename); echo $image_size['mime']; $ima

Re: [PHP] Re: how to detect type of image

2007-04-29 Thread tedd
At 4:46 PM -0500 4/28/07, Edward Vermillion wrote: On Apr 28, 2007, at 12:21 PM, tedd wrote: At 9:22 AM -0500 4/28/07, Edward Vermillion wrote: It should, but instead try this: $image_size = getimagesize($filename); echo $image_size['mime']; $image_size['mime'] ? Where did that come from?

Re: [PHP] Re: how to detect type of image

2007-04-28 Thread Edward Vermillion
On Apr 28, 2007, at 12:21 PM, tedd wrote: At 9:22 AM -0500 4/28/07, Edward Vermillion wrote: It should, but instead try this: $image_size = getimagesize($filename); echo $image_size['mime']; $image_size['mime'] ? Where did that come from? I duno, maybe the manual. http://us2.php.net/get

Re: [PHP] Re: how to detect type of image

2007-04-28 Thread Tim
On 28.04.2007 10:39, Tijnema ! wrote: First of all, i don't see any reason why this works better then other functions, as it also relies on the magic bytes. Second, for your switch, you should use the constants (IMAGETYPE_GIF,IMAGETYPE_JPEG,...) instead of just using decimal values. Tijnema Y

Re: [PHP] Re: how to detect type of image

2007-04-28 Thread tedd
At 9:22 AM -0500 4/28/07, Edward Vermillion wrote: It should, but instead try this: $image_size = getimagesize($filename); echo $image_size['mime']; $image_size['mime'] ? Where did that come from? I duno, maybe the manual. http://us2.php.net/getimagesize <-- 5th or 6th example down. Als

Re: [PHP] Re: how to detect type of image

2007-04-28 Thread Tijnema !
On 4/28/07, Edward Vermillion <[EMAIL PROTECTED]> wrote: On Apr 28, 2007, at 6:54 AM, tedd wrote: > At 2:10 AM +0200 4/28/07, Tim wrote: >> On 21.04.2007 12:45, Alain Roger wrote: >>> Hi, >>> >>> In my web application, end user is able to load images (png, jpeg, >>> gif,..) into database. I wou

Re: [PHP] Re: how to detect type of image

2007-04-28 Thread Edward Vermillion
On Apr 28, 2007, at 6:54 AM, tedd wrote: At 2:10 AM +0200 4/28/07, Tim wrote: On 21.04.2007 12:45, Alain Roger wrote: Hi, In my web application, end user is able to load images (png, jpeg, gif,..) into database. I would like to know how can i detect automatically the type of image (pnd, jpeg

Re: [PHP] Re: how to detect type of image

2007-04-28 Thread Tijnema !
On 4/28/07, tedd <[EMAIL PROTECTED]> wrote: At 2:10 AM +0200 4/28/07, Tim wrote: >On 21.04.2007 12:45, Alain Roger wrote: >>Hi, >> >>In my web application, end user is able to load images (png, jpeg, >>gif,..) into database. I would like to know how can i detect >>automatically the type of image

Re: [PHP] Re: how to detect type of image

2007-04-28 Thread Tijnema !
On 4/28/07, Tim <[EMAIL PROTECTED]> wrote: On 21.04.2007 12:45, Alain Roger wrote: > Hi, > > In my web application, end user is able to load images (png, jpeg, > gif,..) into database. I would like to know how can i detect > automatically the type of image (pnd, jpeg,...) ? i do not want to > che

Re: [PHP] Re: how to detect type of image

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 7:00 am, Tijnema ! wrote: > On 4/25/07, Satyam <[EMAIL PROTECTED]> wrote: >> Sorry I'm late to this thread, I don't know if it has been >> mentioned, but >> most files have a 'magic number' at the begining of the file, which >> usually >> reads as a couple of letters or more.

Re: [PHP] Re: how to detect type of image

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 2:51 am, Satyam wrote: > Sorry I'm late to this thread, I don't know if it has been mentioned, > but > most files have a 'magic number' at the begining of the file, which > usually > reads as a couple of letters or more. I think EXE files start with > MZ, gifs > with GIFxx w

Re: [PHP] Re: how to detect type of image WAY OT (but not that far)

2007-04-25 Thread Børge Holen
On Wednesday 25 April 2007 14:14, Richard Davey wrote: > Tijnema ! wrote: > > I believe that mime_content_type does this, by reading a .magic file. > > In a magic file, there are these described i believe. But how would > > you detect (by a magic number) if a script is HTML or PHP? No way :P > > mi

Re: [PHP] Re: how to detect type of image

2007-04-25 Thread Richard Davey
Tijnema ! wrote: I believe that mime_content_type does this, by reading a .magic file. In a magic file, there are these described i believe. But how would you detect (by a magic number) if a script is HTML or PHP? No way :P mime_content_type is deprecated, use the FileInfo functions instead.

Re: [PHP] Re: how to detect type of image

2007-04-25 Thread Tijnema !
nema Ps. Please don't top post. - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, April 25, 2007 4:30 AM Subject: Re: [PHP] Re: how to detect type of image > On Sun, April 22, 2007 10

Re: [PHP] Re: how to detect type of image

2007-04-25 Thread Satyam
s of the year of the standard. Just open files of the types you are concerned about and check the first few characters. Satyam - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, April 25, 20

Re: [PHP] Re: how to detect type of image

2007-04-24 Thread Richard Lynch
On Sun, April 22, 2007 12:14 pm, Tijnema ! wrote: > Yeah right, a time bomb with an image header :P > It should have an ELF header :) But then it would be detected by the > mime_content_type i guess. mime_content_type would not detect, say, a PHP script embedded into the comments section of a JPEG

Re: [PHP] Re: how to detect type of image

2007-04-24 Thread Richard Lynch
On Sun, April 22, 2007 10:35 am, Jonathan wrote: > Alain Roger wrote: >> Hi, >> >> In my web application, end user is able to load images (png, jpeg, >> gif,..) >> into database. >> I would like to know how can i detect automatically the type of >> image (pnd, >> jpeg,...) ? >> i do not want to che

Re: [PHP] Re: how to detect type of image

2007-04-22 Thread Tijnema !
On 4/22/07, Myron Turner <[EMAIL PROTECTED]> wrote: Jonathan wrote: > Alain Roger wrote: >> Hi, >> >> In my web application, end user is able to load images (png, jpeg, >> gif,..) >> into database. >> I would like to know how can i detect automatically the type of image >> (pnd, >> jpeg,...) ? >>

Re: [PHP] Re: how to detect type of image

2007-04-22 Thread Børge Holen
On Sunday 22 April 2007 17:35, Jonathan wrote: > Alain Roger wrote: > > Hi, > > > > In my web application, end user is able to load images (png, jpeg, > > gif,..) into database. > > I would like to know how can i detect automatically the type of image > > (pnd, jpeg,...) ? > > i do not want to chec

Re: [PHP] Re: how to detect type of image

2007-04-22 Thread Myron Turner
Jonathan wrote: Alain Roger wrote: Hi, In my web application, end user is able to load images (png, jpeg, gif,..) into database. I would like to know how can i detect automatically the type of image (pnd, jpeg,...) ? i do not want to check the extension because this is easily faked... just

Re: [PHP] Re: how to display images stored in DB

2007-03-05 Thread Martin Marques
On Sat, 3 Mar 2007, steve wrote: Also, when you hit the 1024 image limit you have to think about directory schema to store the images, as the linux filesystem (and also on other 32 bit systems) will start getting slow, until things like ls will just give you an error. We have a system (I didn't

Re: [PHP] Re: how to display images stored in DB

2007-03-04 Thread Roman Neuhauser
# martin@bugs.unl.edu.ar / 2007-03-03 09:18:08 -0300: > We have a system (I didn't work on it, just maintaining it) that has > about 1100 images in a directory. I think we aren't seen any problems > just because it's on a 64bit system. You should test that assumption. -- How many Vietnam vets

Re: [PHP] Re: how to display images stored in DB

2007-03-03 Thread steve
Also, when you hit the 1024 image limit you have to think about directory schema to store the images, as the linux filesystem (and also on other 32 bit systems) will start getting slow, until things like ls will just give you an error. We have a system (I didn't work on it, just maintaining it) t

Re: [PHP] Re: how to display images stored in DB**

2007-03-03 Thread tedd
>> > At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: tedd said: >Well... it's not just me, but from what I've learned and read over the > years. > > Your claim is that in ALL cases using a file system to store images is preferable to using a database. As such, you claim that using a

  1   2   3   4   >