Re: [PHP] How to build an FF extension

2009-07-23 Thread Ashley Sheridan
On Wed, 2009-07-22 at 23:49 -0400, Paul M Foster wrote: > On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote: > > > How to build an FF extension and how to install it. I'm using Fedora 10 > > operating system. > > Can someone please provide me with the steps > > Thanks > > J.K > > Let me

Re: [PHP] How to build an FF extension

2009-07-23 Thread Ashley Sheridan
On Thu, 2009-07-23 at 14:39 +0100, Luke wrote: > 2009/7/23 Ashley Sheridan > > > On Wed, 2009-07-22 at 23:49 -0400, Paul M Foster wrote: > > > On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote: > > > > > > > How to build an FF extension

Re: [PHP] More on "JS alert that links to file"

2009-07-27 Thread Ashley Sheridan
I assume you want to force the files to the user as a series of files to download? Have you considered just offering a page of links to each file? You can actually have the links go to a PHP script which can stream the file as a forced download, and the user can then download the files one-by-one b

RE: [PHP] More on "JS alert that links to file"

2009-07-27 Thread Ashley Sheridan
t; sequenctially download the files. > > HTH, > - Kyle > > > -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Mon 7/27/2009 8:30 AM > To: tony mount > Cc: php-general@lists.php.net > Subject: Re: [PHP] More on "JS

Re: [PHP] More on "JS alert that links to file"

2009-07-27 Thread Ashley Sheridan
On Mon, 2009-07-27 at 07:34 -0700, Jim Lucas wrote: > tony mount wrote: > > I have a question that follows on from this discussion. I have a loop > > which creates a number of files. It first write each file to a server > > location then sets up the headers and asks the "Save As" question. This > >

Re: [PHP] More on "JS alert that links to file"

2009-07-27 Thread Ashley Sheridan
On Mon, 2009-07-27 at 07:43 -0700, Jim Lucas wrote: > Ashley Sheridan wrote: > > On Mon, 2009-07-27 at 07:34 -0700, Jim Lucas wrote: > >> tony mount wrote: > >>> I have a question that follows on from this discussion. I have a loop > >>> which creates a nu

Re: [PHP] Imposing a range on what is stored in a session variable

2009-07-27 Thread Ashley Sheridan
On Mon, 2009-07-27 at 07:44 -0700, Miller, Terion wrote: > Well there are currently about 17000 records in the db, and my manager wants > to have it only pulling in 1000 at a time as a session range > And why do my code snippets always look so messed up , I put them in using > the rich text or ht

Re: [PHP] Font problem

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 12:07 +0200, Dušan Novaković wrote: > Hi, > > Is there a possibility that if there is no font installed on client > side somehow browser finds it and redirect that font form server to > client machine. For example: I have site that use Microsoft font and > that font is not a

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 09:32 -0400, Miller, Terion wrote: > I need to take this: > >$pastDays = strtotime("-30 days"); > > > > $past_day = date("d", $pastDays); > > $past_month = date("m", $pastDays); > > $past_year =date("y", $pastDays); > > > And make it into one var to compare to a db

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: > > > On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: > > $pastDays = strtotime("-30 days"); > $date = date("d/m/y", $pastDays); > > Well I tried and got no results from my query and I

RE: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 09:41 -0400, Bob McConnell wrote: > From: Ashley Sheridan > > On Tue, 2009-07-28 at 09:32 -0400, Miller, Terion wrote: > >> I need to take this: > >> > >>$pastDays = strtotime("-30 days"); > >> > >> >

Re: [PHP] Making several variables into 1 variable

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 06:46 -0700, Miller, Terion wrote: > > > On 7/28/09 8:44 AM, "Ashley Sheridan" wrote: > > On Tue, 2009-07-28 at 09:42 -0400, Miller, Terion wrote: > > > > > > On 7/28/09 8:35 AM, "Ashley Sheridan" wrote: > > >

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 20:10 +0300, Thodoris wrote: > > 2009/7/28 Thodoris : > > > >> Hi gang, > >> I've been looking for a str_to_date (mysql) equivalent in PHP. I've > >> noticed that these are matching the description: > >> > >> http://www.php.net/manual/en/datetime.createfromformat.php > >

Re: [PHP] str_to_date equivalent in PHP

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 20:38 +0300, Thodoris wrote: > > On Tue, 2009-07-28 at 20:10 +0300, Thodoris wrote: > >> > 2009/7/28 Thodoris mailto:t...@kinetix.gr>>: > >> > > >> >> Hi gang, > >> >> I've been looking for a str_to_date (mysql) equivalent in PHP. I've > >> >> noticed that these are match

Re: [PHP] Font problem

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 08:52 -0700, Jim Lucas wrote: > Dušan Novaković wrote: > > Hi, > > > > Is there a possibility that if there is no font installed on client > > side somehow browser finds it and redirect that font form server to > > client machine. For example: I have site that use Microsoft f

Re: [PHP] Nitro PDF Form Element

2009-07-28 Thread Ashley Sheridan
On Tue, 2009-07-28 at 12:16 -0700, Dare Williams wrote: > Dear Forum Experts. > > I have an already created PDF Document that has a Form Element in it that was > created with NITROPDF. But the problem is just that I need a way to pass > value or populate the Document Form Element with value stor

Re: [PHP] Ridiculous ..won't print or echo ...

2009-07-29 Thread Ashley Sheridan
On Wed, 2009-07-29 at 11:36 -0400, Miller, Terion wrote: > Ok in my output to Quark I need to have $P printed to the page like this: > > <@$p>2118 S. Campbell Ave > > So in my php which is going to be grabbing this info and formatting it for > the Quarkisn't echoing that "$p" all I get is the

Re: [PHP] Getting rid of extra lines

2009-07-29 Thread Ashley Sheridan
On Wed, 2009-07-29 at 11:29 -0700, Miller, Terion wrote: > I am trying to get rid of empty whitespace lines, I can't us chop() because > as I read it it will remove all whitespacesright? > > Right now my db is outputting with extra lines, I have stripped tags I know > it isn't that causing it

Re: [PHP] Getting rid of extra lines

2009-07-29 Thread Ashley Sheridan
[snip/] Have you thought of just using a regular str_replace() on your code? You can ask it to replace newlines and carriage returns with nothing and see if that fixes you problem? Thanks Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread Ashley Sheridan
On Thu, 2009-07-30 at 09:51 -0400, Christoph Boget wrote: > >> Having said that, with file -i on my system, Word documents are > >> 'application/msword' and Excel files are 'application/octet-stream' > > Fedora11 (2.6.29.6-213.fc11.i586) > > $ file excel.xls > > excel.xls: CDF V2 Document, Little E

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread Ashley Sheridan
gt; > thnx, > Chris > > > ______ > From: Ashley Sheridan > To: Christoph Boget > Sent: Thursday, July 30, 2009 10:05:33 AM > Subject: Re: [PHP] fileinfo returning wrong mime type for Excel files > > On Thu, 2009-07-30 at 07:04 -0700, Christoph B

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-31 Thread Ashley Sheridan
On Thu, 2009-07-30 at 21:26 -0400, b wrote: > On 07/30/2009 10:15 AM, Ashley Sheridan wrote: > > On Thu, 2009-07-30 at 07:12 -0700, Christoph Boget wrote: > >> > >> You could email it to me, which I presume is better if you replied > >> back just to me and not

[PHP] PHPBB Speed Issues

2009-07-31 Thread Ashley Sheridan
Hi Guys, I know this is maybe a bit specific for the general list, but thought I'd throw it out there anyway as I reckon a lot of you have had experience with PHPBB at some point or another. We've got an existing installation of the forum here, that's been active for a couple of years and is fairl

Re: [PHP] PHPBB Speed Issues

2009-07-31 Thread Ashley Sheridan
On Fri, 2009-07-31 at 11:27 +0100, David Otton wrote: > 2009/7/31 Paul Scott : > > -1. Measure everything. No point implementing a change that slows > things down. Implement low-hanging-fruit first (eg a CDN) > 0. Optimise your existing setup before adding more layers > > 1. Cache as much as you c

Re: [PHP] 2 ifs embedded?

2009-07-31 Thread Ashley Sheridan
On Fri, 2009-07-31 at 06:53 -0700, Miller, Terion wrote: > I need this to say : If row notes is not empty and is alpha echo notes > > How do I get the is alpha part in here; > > If (!empty($row['notes'])) { > > > echo(" $trimNotes "); > > } > > I tried. > > If (IsAlpha($row['note

Re: [PHP] setting cookie doesn't work

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 17:35 +0200, Grega Leskovsek wrote: > Here is one of my final objectives at PHP introductory course ot > O'Reilly. The strange thing that setting a cookie in that program > les13uadownload.php doesn't work. I don't have a clue - sometimes in > other programs when I run them th

Re: [PHP] Can a range be passed to a query?(RESOLVED)

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 09:33 -0700, Miller, Terion wrote: > Here is is incase anyone else ever needs it. > >//Create array with letters AND number > sign$letters = range('A','Z'); > array_push($letters, 'nums'

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 12:29 -0400, Daniel Brown wrote: > ALL: > > It's far easier to drop a line to the mailing lists and BCC a few > others than to write back to many individually. > > Thanks for the concern and well-wishes from the many who wrote to > me during the last 10 days. It's v

Re: [PHP] Re: setting cookie doesn't work

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 20:44 +0200, Grega Leskovsek wrote: > I made two files now of the program: (the main one and the one where I > set the cookie and open pdf)and I noticed that it doesn't work setting > the cookie the first time I call the file where I set the cookie but > only after the second

Re: [PHP] underscore in php functions?

2009-08-03 Thread Ashley Sheridan
On Mon, 2009-08-03 at 22:46 +0200, Oral Timocin wrote: > Stuart wrote: > > > 2009/8/3 Oral Timocin : > >> Hi all, > >> > >> i am a newbie to php an want to learn it. Aftere reading some sample Code > >> an the documetation i have an unanswered question! > >> > >> for example: > >> > >> public func

Re: [PHP] Need quick got written up yesterday!! OUCH

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 07:16 -0700, Miller, Terion wrote: > for($i = 0; $i <= 9; $iﯯ) I'm noticing an odd character just here (heaven knows what line number!) I'd presume this was meant to be something like a ++ or +=n, but seems to be interpreted as a multibyte character here. I'll let you know if

Re: [PHP] Need quick got written up yesterday!! OUCH

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 15:30 +0100, Ashley Sheridan wrote: > On Tue, 2009-08-04 at 07:16 -0700, Miller, Terion wrote: > > for($i = 0; $i <= 9; $iﯯ) > > I'm noticing an odd character just here (heaven knows what line number!) > I'd presume this was meant to be someth

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-04 Thread Ashley Sheridan
_GET['letter']); } else { browse('A'); } > > On 8/4/09 9:30 AM, "Ashley Sheridan" wrote: > > On Tue, 2009-08-04 at 07:16 -0700, Miller, Terion wrote: > > for($i = 0; $i <= 9; $iﯯ) > > I'm noticing an odd character just here (heave

Re: [PHP] Need quick got written up yesterday!! OUCH

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 10:47 -0400, Andrew Ballard wrote: > On Tue, Aug 4, 2009 at 10:30 AM, Ashley > Sheridan wrote: > > On Tue, 2009-08-04 at 07:16 -0700, Miller, Terion wrote: > >> for($i = 0; $i <= 9; $iﯯ) > > > > I'm noticing an odd character just here

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 07:58 -0700, Miller, Terion wrote: > > > ---snip > > Was going to say the exact same thing. No one should have to put up with > that crap. > > I suggest if this was a normal occurrence, a chat with him would be a start. > If you get nowhere with that, a trip to HR

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 08:08 -0700, Miller, Terion wrote: > > > On 8/4/09 10:03 AM, "Ashley Sheridan" wrote: > > print_r($_SERVER); > > I get: > > Array ( [HTTP_HOST] => getpublished.news-leader.com [HTTP_USER_AGENT] => > Mozilla/5.0 (Macinto

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 10:56 -0700, Jim Lucas wrote: > Allen McCabe wrote: > > *Parse error*: syntax error, unexpected $end in * > > /home/a9066165/public_html/admin/processccu.php* on line *231* > > > > I have learned from a number of similar mistakes that this error message > /normally/ means th

Re: [PHP] Need quick got written up yesterday!! OUCH

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 14:16 -0400, Andrew Ballard wrote: > On Tue, Aug 4, 2009 at 2:05 PM, HallMarc > Websites wrote: > > I have noticed a few issues with Gmail and this isn't the first time that > > mail service has muffed up an email and/or the attachments. It consistently > > has compromised j

RE: [PHP] Need quick got written up yesterday!! OUCH

2009-08-04 Thread Ashley Sheridan
On Tue, 2009-08-04 at 14:28 -0400, HallMarc Websites wrote: > > -Original Message- > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > > Sent: Tuesday, August 04, 2009 2:20 PM > > To: Andrew Ballard > > Cc: HallMarc Websites; Miller, Terion; PH

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-05 Thread Ashley Sheridan
On Tue, 2009-08-04 at 20:49 -0700, Steve wrote: > Daniel Brown wrote: > > Just as a heads-up, in case you guys weren't yet aware (cross-posting): > > > > Elance.com was the victim of an SQL injection attack earlier this > > summer (they apparently missed our billions of threads on sanity).

Re: [PHP] Re: PHP programming strategy

2009-08-05 Thread Ashley Sheridan
On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote: > Thank you to all of you who have commented on this query. > > On the subject of comments, I feel that Larry Garfield settled this query by > pointing out > that halving the size of a particular document gave a barely noticeable > increase in sp

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-05 Thread Ashley Sheridan
On Wed, 2009-08-05 at 09:54 -0400, Eric Butera wrote: > On Wed, Aug 5, 2009 at 3:06 AM, Ashley Sheridan > wrote: > > On Tue, 2009-08-04 at 20:49 -0700, Steve wrote: > >> Daniel Brown wrote: > >> > Just as a heads-up, in case you guys weren&#

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-05 Thread Ashley Sheridan
hey do pre-signup just you for the "easy" of you. > I have _created_ an account just to edit my personal data, that's nonsense!!! > > If you give your contact info you are allowing this kind of "issues", > but if you don't... well, you can't use inte

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-05 Thread Ashley Sheridan
On Wed, 2009-08-05 at 15:14 +0100, Ashley Sheridan wrote: > On Wed, 2009-08-05 at 11:10 -0300, Martin Scotta wrote: > > Nobody can actually do anything. This happen all the time. > > > > Sites like facebook or myspace send invitations to all your mail's > > cont

Re: [PHP] Time keeping in DB

2009-08-05 Thread Ashley Sheridan
On Wed, 2009-08-05 at 14:18 -0500, Shawn McKenzie wrote: > So, obviously not PHP related, but I'm looking for thoughts on the best > way to record time sheets in a DB. A time sheet for hours worked per > day, not like a time clock where you start and stop. > > The two possibilities that I have th

Re: [PHP] Re: "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 02:55 +0200, Ralph Deffke wrote: > why do u stick to php 6? > > i would recommend www.scribd.com and have a search on PHP. there are books > on beginners for php5 and articles of the difference to php 6. > > a very usefull site by the way, made me stopping buying books. load

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 09:24 +1000, Clancy wrote: > On Wed, 5 Aug 2009 09:25:20 -0400, phps...@gmail.com (Bastien Koert) wrote: > > >On Wed, Aug 5, 2009 at 8:02 AM, Ashley Sheridan > >wrote: > >> On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote: > >>> Thank

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
php > comments, > > ralph > > > "Ashley Sheridan" wrote in message > news:1249543712.3358.104.ca...@localhost... > > On Thu, 2009-08-06 at 09:24 +1000, Clancy wrote: > > > On Wed, 5 Aug 2009 09:25:20 -0400, phps...@gmail.com (Bastien Koert) > wrote: >

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 17:24 +0100, Tony Marston wrote: > PHP 6 does not exist yet, Funny, that's not what the PHP site says: http://snaps.php.net/ Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Ashley Sheridan
> being very premature as those features may change at any moment. The > features will not be frozen until the first GA release. > > -- > Tony Marston > http://www.tonymarston.net > http://www.radicore.org > > "Ashley Sheridan" wrote in message > news:12495

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
On Fri, 2009-08-07 at 11:06 +1000, Clancy wrote: > On Thu, 06 Aug 2009 08:28:32 +0100, a...@ashleysheridan.co.uk (Ashley > Sheridan) wrote: > > ... > >> >> Nested tables are the devils playthings! > >> > >> I must be the devil, then. I enjoy

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 07:53 -0400, tedd wrote: > At 6:32 AM +0100 8/7/09, Ashley Sheridan wrote: > > > > > > >> > >> > >> > >>Yanni Nx > >>Sally Riordan Scholarship, 2007

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 09:00 -0600, John Butler wrote: > >> It seems clear to me, but do you also agree that my evidence is that > >> array_slice() does NOT work on multi-dimmed arrays on v.4.3.9? > >> Here is the evidence: > >> > >> this: > >> > >> var_dump($BuildPerUniqueDateArray); > >> echo"\n\n

Re: [PHP] Can php be cause a strain on a web server

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 10:08 -0500, Jerry Wilborn wrote: > You're going to have to be more > specific. There are very few problems where this is absolutely no solution. > > Jerry Wilborn > jerrywilb...@gmail.com > > > On Sat, Aug 8, 2009 at 2:51 AM, Per Jessen wrote: > > > Curious george wrote

Re: [PHP] Re: does array_slice not work on multidimensional arrays?

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 12:18 -0400, Robert Cummings wrote: > John Butler wrote: > >> It is annoying working with arrays sometimes, as some functions work > >> on > >> the actual array, while others return the results of working on the > >> array without changing anything. Is there any particular

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread Ashley Sheridan
On Sun, 2009-08-09 at 07:55 -0400, tedd wrote: > At 10:54 AM +1000 8/9/09, Clancy wrote: > >On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote: > > >Also, if you use first-child, it could be taken down to: > >> > >> > >> > >> Yanni Nx > >> Sally Riordan Sc

Re: [PHP] reason for a "Notice:.." on one site but not another? (Same code.)

2009-08-10 Thread Ashley Sheridan
On Mon, 2009-08-10 at 15:40 -0300, Martin Scotta wrote: > This "intelligence" is given by the laziness of the && operator. > > $res = a() && b(); # if a() is false then b() does not evaluate > $res = a() & b(); # b() evaluates no matter a()'s result > > so, order matters. > > On Mon, Aug 10, 200

Re: [PHP] Embedding foreach loops

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 07:13 +, hessi...@hessiess.com wrote: > Do *NOT* get into the habit of outputting your HTML using echo or print > statements, it becomes unmaintainable very quickly, use a templating > language, ether with a framework(recomended) or standalone. > > You should learn the ba

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

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 11:28 +0100, David Otton wrote: > 2009/8/11 Daevid Vincent : > > > NO! For the love of God and all that is holy, don't do that accumulator / > > mod "hack". > > That's so 1980's. And why make the CPU do all that math for every row... > > > > Just do this. It's quick and s

[PHP] Class Problems

2009-08-11 Thread Ashley Sheridan
Hey all, Is there any reason why this shouldn't work correctly on a server running PHP 4.4.7: I would at the very least expect to see the 'wtf' printed out. I've got a whole class I've written that works fine in PHP 5, but on PHP 4 server, it does nothing with even this simple example. Any ide

Re: [PHP] Class Problems

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 10:40 -0500, la...@garfieldtech.com wrote: > The "private" keyword was added in PHP 5. PHP 4 doesn't have visibility > identifiers. In PHP 4 you have to use "var", which is then always public. > > Or you could just use PHP 5 instea

Re: [PHP] Class Problems

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 17:57 +0200, Aschwin Wesselius wrote: > Ashley Sheridan wrote: > > And I really would use a PHP 5 server given the choice. I've tried > > speaking to the hosting company a few times, but they brush me off! > > > Hi Ashley, > > And how

[PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
I've got a bit of a weird one here. I'm using PHP to output an image. This works fine when I output as a file, but when I try to feed it directly to the browser it fills the screen with random characters. I know I've got the headers right, as it works some of the time. The only thing I can spot wh

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 19:02 +0100, Ashley Sheridan wrote: > I've got a bit of a weird one here. I'm using PHP to output an image. > This works fine when I output as a file, but when I try to feed it > directly to the browser it fills the screen with random characters. >

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 13:29 -0500, Adam Shannon wrote: > On Tue, Aug 11, 2009 at 1:08 PM, Ashley Sheridan > wrote: > > > On Tue, 2009-08-11 at 19:02 +0100, Ashley Sheridan wrote: > > > I've got a bit of a weird one here. I'm using PHP to output an image. > &

Re: [PHP] Image Headers break when image is out of bounds

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 11:54 -0700, Ben Dunlap wrote: > On Tue, Aug 11, 2009 at 11:52 AM, Ben Dunlap > wrote: > > @Adam > > The headers_sent() wasa test to ensure that no other > data was creeping > into the

Re: [PHP] Embedding foreach loops

2009-08-12 Thread Ashley Sheridan
On Tue, 2009-08-11 at 16:00 -0400, Eddie Drapkin wrote: > On Tue, Aug 11, 2009 at 3:56 PM, tedd wrote: > > At 12:44 PM -0700 8/11/09, Ben Dunlap wrote: > >> > >> This is probably flame-war tinder, so I'll try to tread more delicately in > >> the future. Next you know we'll be on the ternary operato

Re: [PHP] Embedding foreach loops

2009-08-12 Thread Ashley Sheridan
On Tue, 2009-08-11 at 16:23 -0400, Rick Duval wrote: > OK, first guys, I'm sorry to have to do this but I can't get off this list!!! > > I've followed the instructions on a couple of occasions (the ones at > the bottom of every email): > > PHP General Mailing List (http://www.php.net/) > > To unsu

Re: [PHP] Include Paths

2009-08-12 Thread Ashley Sheridan
On Wed, 2009-08-12 at 12:03 -0400, Rick Duval wrote: > SORRY BUT > I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS LIST, I CAN'T GET OFF THIS > LIST > I'VE TRIED. NO RESPONSE. IS THERE AN ADMIN OUT THERE? PLEASE GET ME > OFF THIS LIST! > >

Re: [PHP] Form Validation

2009-08-12 Thread Ashley Sheridan
On Wed, 2009-08-12 at 12:21 -0400, Micheleh Davis wrote: > Please help. My form validation worked fine until I added the terms check > at the bottom. Any ideas? > > > > //form validation step one > > function validateStep1(myForm){ > > // list of required fields > >

Re: [PHP] session variables - help

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote: > user often leave > forms open for hours and then submit them These users should be taken out and beaten over the head with their keyboards! Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] session variables - help

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 10:05 +0200, Ralph Deffke wrote: > well thanks good they are far away then, but the problem is ur client, i > didnt find anybody giving me the permission to beat his customers > > "Ashley Sheridan" wrote in message > news:1250236989.2344.10.ca..

Re: [PHP] Using fopen on a site with popups

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 01:15 -0700, James Colannino wrote: > Hey everyone! I have a question. I know that you can use fopen to open > not just local files, but also files via HTTP. My question is, assuming > you're attempting to open a page that has popups, is there anyway to get > at the actual

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 15:03 -0300, Martin Scotta wrote: > 2009/8/14 Ben Dunlap > > > 2009/8/14 João Cândido de Souza Neto : > > > I think a good solution is to put the ini file out of your html folder so > > > only your scripts can read it. > > > > I agree, and I try to do the same, but I've no

Re: [PHP] Re: File or directory?

2009-08-15 Thread Ashley Sheridan
On Sat, 2009-08-15 at 09:56 +0200, Ralph Deffke wrote: > can u upload ur own files ? > can u create a directory ? > are u using a ftp client ? > > try > > ralph_def...@yahoo.de > > "Clancy" wrote in message > news:kjhc85hpub7drihgappifphcboolt9u...@4ax.com... > > I have just got access to a new

Re: [PHP] Re: Issue with the huge import script

2009-08-16 Thread Ashley Sheridan
On Sun, 2009-08-16 at 04:06 +0200, Ralph Deffke wrote: > Hi, > > this sounds huge, and cries for a sql version of the import. > Are both databases the same? MySQL? > > I give u a draft for MySQL > u export the data u have, then u got a textfile with 10+ sql statments > > in the php script u

Re: [PHP] Another date exercise

2009-08-16 Thread Ashley Sheridan
On Sun, 2009-08-16 at 08:36 +0100, Lester Caine wrote: > tedd wrote: > > Hi gang: > > > > Here's another exercise to consider. > > > > This is a date entry problem where the user can enter a date in various > > forms, but the return will be in a consistent format. > > > > For example, a user mi

Re: [PHP] Re: Issue with the huge import script

2009-08-16 Thread Ashley Sheridan
On Sun, 2009-08-16 at 11:05 +0200, Ralph Deffke wrote: > because I assume always that a requester got some intelligence, so in that > case there must be a reasonsble reason why he wants to do it in PHP > > im not like u assuming everybody is a thumb > > ralph > > &qu

Re: [PHP] Re: Issue with the huge import script

2009-08-16 Thread Ashley Sheridan
olk is asking for a sulotion of HIS php implying a general > solution in PHP with a hint to the prof solution > > I think thats what I did > > > "Ashley Sheridan" wrote in message > news:1250414284.2344.55.ca...@localhost... > > On Sun, 2009-08-16 at 11:0

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread Ashley Sheridan
On Mon, 2009-08-17 at 02:17 -0700, nashrul wrote: > This is a newbie question... > Let's say there are 3 php files, page1.php, page2.php and page3.php. Form > submission from page1.php or page2.php will take user to page3.php. > I know that we can use parameter that is appended in the action attrib

Re: [PHP] Cannot exec in my own directory

2009-08-17 Thread Ashley Sheridan
On Mon, 2009-08-17 at 19:23 +0530, kranthi wrote: > Did you check SELinux options ?? > > I have a similar problem. For some unknown reason scan_dir() is not > able to read /home/user when run as Apache module. but the CLI is > giving expected results. I did not find any work around, but had to > r

Re: [PHP] Cannot exec in my own directory

2009-08-17 Thread Ashley Sheridan
On Mon, 2009-08-17 at 17:01 +0300, Dotan Cohen wrote: > > Did you check SELinux options ?? > > > > I do not have root access to that server. > > > I have a similar problem. For some unknown reason scan_dir() is not > > able to read /home/user when run as Apache module. but the CLI is > > giving e

Re: [PHP] Cannot exec in my own directory

2009-08-17 Thread Ashley Sheridan
On Mon, 2009-08-17 at 20:16 +0530, kranthi wrote: > >> That's a potential security flaw waiting to happen. A script like this > >> shouldn't be kept in a web-accessible directory. > /var/www is not the document root. document root is /var/www/html so I > dont think there's a problem. > > >> /var/w

Re: [PHP] is there a better way to know from which php file the request comes from ??

2009-08-17 Thread Ashley Sheridan
On Mon, 2009-08-17 at 19:04 +0200, Ralph Deffke wrote: > If u need a solution to know where the request comes from on a certain > secure level u can use cookies. > > u might also have run into pages on the web giving u hard readable images u > have to put into a form field. toghether with cookies

Re: [PHP] HTML text extraction

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 01:37 -0700, leledumbo wrote: > Usually, a website gives preview of its articles by extracting some of the > first characters. This is easy if the article is a pure text, but what if > it's a HTML text? For instance, if I have the full text: > > > bla bla bla > > it

Re: [PHP] Re: File or directory?

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 13:30 +0300, Ollisso wrote: > On Tue, 18 Aug 2009 13:00:37 +0300, Clancy wrote: > > > On Sun, 16 Aug 2009 23:24:05 -0600, george.lang...@shaw.ca (George > > Langley) wrote: > > > >> is_dir() > >> > >> > >> > >> is_file() > >> > >>

Re: [PHP] Help on pregreplace

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: > Hi there, > > I am highlighting keywords with the help of pregreplace. This works > great with one limitation. If the word that has to be replaced contains > a slash, preg throws an error. So far I could not find a fix. Can > someon

Re: [PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 19:15 +0430, Behzad wrote: > Dear list, > e-Greetings! > > I'm faced with an interesting and challenging problem. > > Consider a database, designed for a hotel. > At any given time, each room has a different status: It's Busy or Reserved, > or Free. > > It's easy to retriev

Re: [PHP] getting the search words from a google query

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 21:23 +0530, MURTUZA KUTUB Â wrote: > hey, > > i am a beginner at php and i need your help. > > i have a list of urls visited on a particular day in mysql database. > using php i find out all the websites that have a google search. > now i need to strip apart the google que

Re: [PHP] Re: DB Question | A hotel reservation scenario

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 21:02 +0430, Behzad wrote: > Based on Ashely's reply, I created the following scheme: > > The table "Rooms" has the following fields. > > - id (PK) > - room_no (varchar) > - status (ENUM: Busy, Reserved) > > the other table, "RoomLogs", has the following fields: > - room_id

Re: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Ashley Sheridan
On Wed, 2009-08-19 at 15:55 +0800, Dengxule wrote: > Hi everyone: > > I have a crontab command to execuate my php-script every half an hour. > > The mission of the php-script is to open a file(log file), examine it. > > The target file(log file) is transported to local every half an hour. > > I

RE: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Ashley Sheridan
On Wed, 2009-08-19 at 11:55 +0200, Arno Kuhl wrote: > -Original Message- > From: Dengxule [mailto:dengx...@gmail.com] > Sent: 19 August 2009 09:56 AM > To: Php Maillist > Subject: [PHP] How to make sure that the target file to read is not under > writing by others? > > Hi everyone: > > I

RE: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Ashley Sheridan
On Wed, 2009-08-19 at 12:56 +0200, Arno Kuhl wrote: > -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: 19 August 2009 11:57 AM > To: a...@dotcontent.net > Cc: 'Dengxule'; 'Php Maillist' > Subject: RE: [PHP] How to

RE: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Ashley Sheridan
On Wed, 2009-08-19 at 15:31 +0200, Arno Kuhl wrote: > (any computer would instantly crash if that sort of basic > housekeeping wasn't done) No, it really wouldn't! If it did, then you'd never have video playing software out there that supported broken downloads, no preview software for semi-downlo

RE: [PHP] SESSIONS lost sometimes

2009-08-20 Thread Ashley Sheridan
On Thu, 2009-08-20 at 10:50 +0200, Leon du Plessis wrote: > ">> It'd make sense for things to run this way, I think. After all, I'd > find it quite confusing if I log into Google Docs, open a document (by > default, it opens in a new tab) and I had to log in yet again to be able to > edit it." >

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] SESSIONS lost sometimes

2009-08-20 Thread Ashley Sheridan
It is just a limitation I will live with and can get > by with it. > > Regards > Leon > > -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: 20 August 2009 11:39 AM > To: Leon du Plessis > Cc: 'Nitebirdz'; php-ge

Re: [PHP] SESSIONS lost sometimes

2009-08-20 Thread Ashley Sheridan
On Thu, 2009-08-20 at 18:38 +0530, kranthi wrote: > The original problem.. > > >> server is losing session variables. > I dont think PHP is not good at unset() ing variables while the script > is executing. > > general logger will be of use in this case (especially when cant > reproduce the probl

Re: [PHP] SESSION VARIABLES ACROSS DIFFERENT WINDOWS/TABS

2009-08-20 Thread Ashley Sheridan
On Thu, 2009-08-20 at 15:16 +0200, Leon du Plessis wrote: > It is just strange that I have this "condition" now...maybe I missed it a > year ago ? > > >> "Having a different session start up for each window for tab would be a > major pain." > > Why? > > People must please try and understand wh

Re: [PHP] Form Spam

2009-08-20 Thread Ashley Sheridan
On Thu, 2009-08-20 at 09:11 -0400, Gary wrote: > I have a client with a form on his site and he is getting spammed. It > appears not to be from bots but human generated. While they are coming from > India, they do not all have the same IP address, but they all have gmail > addresses, New York

<    2   3   4   5   6   7   8   9   10   11   >