Re: [PHP] SESSION problem

2008-08-16 Thread Ashley Sheridan
session_start() doesn't have to be the first line in the code, but it does have to occur before ANY content sent to the browser, and this includes any headers as well. Generally speaking, it does no harm to have it as the first line of your PHP code Ash www.ashleysheridan.co.uk

Re: [PHP] SESSION problem

2008-08-16 Thread Ashley Sheridan
I tend to prefer assigning all my session variables to an array, which itself is a member of the $_SESSION array. For example: $_SESSION[] Array ( [myarray] = Array ( [someitem] = x [someitem2] = y

Re: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-17 Thread Ashley Sheridan
I've always found FCKEditor to be pretty handy. There is an option to set it to a simple mode, giving only the bold, italic, underlined and link buttons, and this is extendable to include only the buttons you need. It's an absolute doddle to implement in a web app as well; I've used it for several

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-17 Thread Ashley Sheridan
Any chance of putting a link to this .js file online so that we can have a look at it? Without that, there's very little anyone can do for you. Ash www.ashleysheridan.co.uk ---BeginMessage--- After I took Chris's advice and go to the .js file directly like http://locahost/myfunctions.js, I see

Re: [PHP] undefine variable

2008-08-17 Thread Ashley Sheridan
Hi Michael, It seems that you are trying to use the $selected_state variable in the code, but it hasn't been declared yet. To test if a variable exists, you can use the isset() function. Also, there is a quick way of writing your if/else check on one line. Here's the changes:

Re: [PHP] Breaking a line in two

2008-08-17 Thread Ashley Sheridan
Hi Ron, This should do the trick: ?php $string = The cat jumped up high.; $pos = strpos($string, ' ', strlen($string)/2) + 1; $new_string = substr_replace($string, 'br/', $pos, 0); ? Ash www.ashleysheridan.co.uk ---BeginMessage--- Is there a way to add br midway through a string,

Re: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-17 Thread Ashley Sheridan
Hi Cameron, As far as I can tell, you have an error in your syntax. You're using a - (hyphen) character in the first match, but Regex uses this to define a range of characters. It seems that if you don't escape it, the whole thing behaves a little strangely. For example, using your URL as the

Re: [PHP] Re: PHP editor for linux

2008-08-18 Thread Ashley Sheridan
To be honest, I've always favoured KATE. It's just a plain old text editor with syntax highlighting for most languages. There are plugins for Eclipse which let you edit PHP code, so yu could start looking in that direction. Oh, and it should never really matter what distro you use. You can

Re: [PHP] Regarding threads...

2008-08-18 Thread Ashley Sheridan
As far as I'm aware, threading is not possible in PHP. You can run separate processes off in the background, but they are not actual threads. I found a good article some guy wrote about it http://immike.net/blog/2007/04/08/fork-php-and-speed-up-your-scripts/ which might be of some use? Ash

Re: [PHP] File download problem

2008-08-18 Thread Ashley Sheridan
Hi Stefano, You can use this code instead to read in the file and output it to the browser, as it is binary safe. I've used it for the same reason you require, and it works fine with video clips. $fp = fopen($path, rb); while(!feof($fp)) { print(fread($fp, 1024)); flush($fp); }

Re: [PHP] Number of duplicates in an array?

2008-08-18 Thread Ashley Sheridan
Best way to remove duplicates from an array is to use the built in PHP function array_unique(). As for counting the number of times each unique value occurs, use array_count_values(). Ash www.ashleysheridan.co.uk ---BeginMessage--- Hi gang: Anyone have a cool method of finding duplicate items

Re: [PHP] File download problem

2008-08-19 Thread Ashley Sheridan
, Thank you for your reply. I tried your code, but the problem remains. I still can download PDF, TXT, and MP3 fine, but the ODT, DOC, and JPG are still corrupted. I wonder why it works with some files and not with others... Stefano Ashley Sheridan ha scritto: Hi Stefano, You can use

Re: [PHP] File download problem

2008-08-19 Thread Ashley Sheridan
That bug report makes sense now, in light of your problem. It wasn't something I'd ever seen happen before, as most of my work is done on Linux, and the bug seems to be specific to the way Windows uses the BOM for UTF-8 PHP files. Ash www.ashleysheridan.co.uk ---BeginMessage--- I just add this

Re: [PHP] VCard

2008-08-19 Thread Ashley Sheridan
Have you asked the people who are offering this gateway? This would seem like a not too unusual request, and might be in their FAQ's? Ash www.ashleysheridan.co.uk ---BeginMessage--- I there! I've writed and app that sends a sms trough a gateway, but i want to send vcard messages, it works in

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Ashley Sheridan
There is such a thing as too much information you know. I'm going to be kept up all night with nightmares now! Ash www.ashleysheridan.co.uk ---BeginMessage--- On Tue, 2008-08-19 at 15:24 -0400, tedd wrote: At 2:28 PM -0400 8/19/08, tedd wrote: V: OFF-LIST I have not kept up on this thread

Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
I don't think GD has a built-in function to scale an image the way you are asking, and to do it on a pixel by pixel basis from within a function is going to be a very time consuming and memory costly process. Have you thought about using ImageMagik to do this? I know that you can exec() out to

Re: [PHP] PDO, sqlite write requests (INSERT) don't working

2008-08-20 Thread Ashley Sheridan
Hi KLEIN, I think the problem is where you are connecting to your database. I've not used SQL lite before, but the function spec says that you have too many arguments. It suggests connecting like this: if ($db = new SQLiteDatabase('filename')) Also, do you need to specify the sqlite: protocol

Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
to ImageMagik, and in better time more often than not. The main advantage ImageMagik has is with functionality; quite simply, it can do much more than GD and GD2. Ash www.ashleysheridan.co.uk ---BeginMessage--- Ashley Sheridan schreef: I don't think GD has a built-in function to scale an image the way you

Re: Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
that is stretched? Do I need to generate a text image then stretch this using normal resize functions?? Alex On Wed , Jochem Maas [EMAIL PROTECTED] sent: Ashley Sheridan schreef: Hence me saying in the way you are asking I know GD can scale images (I've done that myself on more than one

Re: [PHP] Re: A dumb question regarding sending email

2008-08-20 Thread Ashley Sheridan
What's wrong with programmers getting a little creative?! Ash www.ashleysheridan.co.uk ---BeginMessage--- tedd schreef: At 12:47 AM +1000 8/14/08, Ross McKay wrote: On Wed, 13 Aug 2008 15:32:12 +0100, Richard Heyes wrote: NSW Australia North, South, West? Can't you make up your mind? :-)

Re: Re: [PHP] Image Generation

2008-08-20 Thread Ashley Sheridan
Maas [EMAIL PROTECTED] sent: Ashley Sheridan schreef: Hence me saying in the way you are asking I know GD can scale images (I've done that myself on more than one occassion), but not images that are intended for print as opposed to screen viewing, as this appears to be. I can't see how

Re: [PHP] Developing a game using Ming

2008-08-20 Thread Ashley Sheridan
You should probably try asking a Flash or Actionscript list. This is a PHP list... Ash www.ashleysheridan.co.uk ---BeginMessage--- Hello, I want to develop a Flash game using Ming. I have never used Flash or ActionScript before, and I would like to know what limitations users have come across

RE: [PHP] Semi-ADVERT, OT

2008-08-20 Thread Ashley Sheridan
Three leg holes? Has he not heard of the tried and tested method of turning ones underwear inside out?! Ash www.ashleysheridan.co.uk ---BeginMessage--- At 3:38 PM -0500 8/19/08, Jay Blanchard wrote: [snip] But, to drive my point further home, I got underwear older than most of you. :-P [/snip]

Re: [PHP] Re: Breaking a line in two

2008-08-20 Thread Ashley Sheridan
Unfortunately, the wordwrap function won't do what he needs. He needed to add a br/ *after* the space, and not replace the space. Ash www.ashleysheridan.co.uk ---BeginMessage--- If you use wordwrap, you don't need nl2br. See Example 1 for wordwrap. Thank you, Micah Gersten onShore Networks

Re: [PHP] Re: Breaking a line in two

2008-08-20 Thread Ashley Sheridan
://www.onshore.com Ashley Sheridan wrote: Unfortunately, the wordwrap function won't do what he needs. He needed to add a br/ *after* the space, and not replace the space. Ash www.ashleysheridan.co.uk Subject: Re

Re: [PHP] Re: Breaking a line in two

2008-08-20 Thread Ashley Sheridan
Developer http://www.onshore.com Ashley Sheridan wrote: In HTML it is, I agree, irrelevant with regards to display, but the string could be going into an XML file, where the space has some importance, and as Ron (the original person who asked the question) asked specifically for the space

RE: [PHP] Developing a game using Ming

2008-08-20 Thread Ashley Sheridan
What about FlashDevelop? I'm on the Papervision list, and a lot of people are raving abut that at the moment, and best of all it's open source. Could be a much better option than creating SWF files from PHP. Ash www.ashleysheridan.co.uk ---BeginMessage--- Why not build a Flash game in... uh...

Re: [PHP] RE: php-general Digest 19 Aug 2008 20:38:46 -0000 Issue 5633

2008-08-20 Thread Ashley Sheridan
Are you definately using the correct unsubscribe email? This is the one given in the message headers: list-unsubscribe: mailto:[EMAIL PROTECTED] Ash www.ashleysheridan.co.uk ---BeginMessage--- On Aug 19, 2008, at 4:18 PM, Cox, Chris wrote: Does anyone know why the unsubscribe email address is

Re: [PHP] Does this seem wrong to anyone else?

2008-08-20 Thread Ashley Sheridan
It's perfectly acceptable to have a function call itself, and one of the first examples in books is a recursive function for factorial numbers, and I've used them on more than one occasion to give directory listings. For the life of me though, I can't understand why it would be giving you the

Re: [PHP] Developing a game using Ming

2008-08-20 Thread Ashley Sheridan
FlashDevelop should be up to the job, a lot of people are using it to develop Papervision3D stuff, which if you have a look online, is some pretty awesome, and very intensive Actionscript stuff. Ash www.ashleysheridan.co.uk ---BeginMessage--- Yasir Malik schreef: What about FlashDevelop? I'm on

Re: [PHP] Does this seem wrong to anyone else?

2008-08-20 Thread Ashley Sheridan
Whats even more fun is inheriting somebody elses' *undocumented* code. Oh, and if just happens to be in a strange programming language that you don't know too well, all the better! Sounds awful, but it did happen to me once :-/ Ash www.ashleysheridan.co.uk ---BeginMessage--- Robert Cummings

Re: Fwd: [PHP] php not reading file properly

2008-08-20 Thread Ashley Sheridan
As it's the Apache access log that you are trying to read in, are you sure that Apache is not in the process of writing to it as you are attempting to read from it? That might explain why it seems to be empty, although I would have thought it would just append the data to the end of the file,

Re: Fwd: [PHP] php not reading file properly

2008-08-20 Thread Ashley Sheridan
interfere with Apache accessing things. Ash www.ashleysheridan.co.uk ---BeginMessage--- Ashley Sheridan wrote: As it's the Apache access log that you are trying to read in, are you sure that Apache is not in the process of writing to it as you are attempting to read from it? That might explain why

Re: [PHP] preg_match_all nested html text

2008-08-20 Thread Ashley Sheridan
Do you just wish to remove all the HTML tags from a given string? If so, the strip_tags() function should do this. Ash www.ashleysheridan.co.uk ---BeginMessage--- I am trying to get the text between nested html tags within arrays produced by preg_match_all. The simple situation would be:

Re: [PHP] Forward slashes and header requests

2008-08-21 Thread Ashley Sheridan
I had a similar thing happen with a file management system. I found the best way to fix it was to use $location = str_replace('//','/', $_SERVER['REQUEST_URI']); Ash www.ashleysheridan.co.uk ---BeginMessage--- PHP List, I have built my own CMS system, and I've just finished setting it up so

Re: [PHP] RE: Sale 79% OFF !!!

2008-08-21 Thread Ashley Sheridan
Ooh, ooh, I must go and rush out to buy some. No wait, I'm a programmer, I have no love life... How did this get through? And do they really expect it to work?! Ash www.ashleysheridan.co.uk ---BeginMessage--- Dear php-general@lists.php.net, Canadian Doctor Beatriz Best Price 2008!

Re: [PHP] RE: Sale 79% OFF !!!

2008-08-21 Thread Ashley Sheridan
I don't understand how people can fall for this kind of thing, all those Nigerian scams and the like. For every person that falls for it, a million more emails get sent, making everyone elses lives hell :( Ash www.ashleysheridan.co.uk ---BeginMessage--- Ashley Sheridan wrote: And do they really

Re: [PHP] RE: Sale 79% OFF !!!

2008-08-21 Thread Ashley Sheridan
(readily available mind you) along with a list of domains.Once you add them together, the resources needed for sending the emails is tiny. So it takes no investment to send out a million emails. And every valid response after the first one is bonus. Ashley Sheridan [EMAIL PROTECTED] wrote

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-21 Thread Ashley Sheridan
What was that? You just quoted his email but didn't add anything! Ash www.ashleysheridan.co.uk ---BeginMessage--- On Thu, 2008-08-21 at 14:50 +0200, Jochem Maas wrote: Robert Cummings schreef: On Thu, 2008-08-21 at 08:23 +1000, Kevin Waterson wrote: This one time, at band camp, V S Rawat

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-21 Thread Ashley Sheridan
Ah, I see! Ash www.ashleysheridan.co.uk ---BeginMessage--- On Thu, 2008-08-21 at 16:04 +0100, Ashley Sheridan wrote: What was that? You just quoted his email but didn't add anything! I added an evil smiley face... probably looks like part of the quote though since it leads with the character

Re: [PHP] Re: Sale 79% OFF !!!

2008-08-21 Thread Ashley Sheridan
I thought Hackers might be more appropriate. Angelina Jolie looked a lot better back then too... Ash www.ashleysheridan.co.uk ---BeginMessage--- On Thu, 2008-08-21 at 13:26 -0700, James Ausmus wrote: On Thu, Aug 21, 2008 at 9:32 AM, Colin Guthrie [EMAIL PROTECTED] wrote: Bastien Koert wrote:

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread Ashley Sheridan
www.ashleysheridan.co.uk ---BeginMessage--- So I made a cron jop to copy the log to the web folder every 5 minutes. That worked fine. It seems that php can't read the /var/log/httpd folder without root perms. On Wed, Aug 20, 2008 at 7:53 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: Yeah, Apache is still running

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Ashley Sheridan
How are you browsing to it from within PHP? Depending on how you are doing it, the way to get the cwd is different Ash www.ashleysheridan.co.uk ---BeginMessage--- I'll throw out an example here. I have a directory structure of: /var/www/example/ And in that i have a file: index.php That file

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Ashley Sheridan
I assume Ronald won't see this, but I've mentioned it before. The emails coming from the mailing list all have an unsubscribe link in the header information. Just my 2p (I'm British, we don't do cents ;) ) Ash www.ashleysheridan.co.uk ---BeginMessage--- The guy who wrote the guide lines for

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Ashley Sheridan
That is strange. I hadn't noticed anything, so I just assumed everyone had these headers attached. Ash www.ashleysheridan.co.uk ---BeginMessage--- On Fri, Aug 22, 2008 at 9:10 AM, Ashley Sheridan [EMAIL PROTECTED] wrote: I assume Ronald won't see this, but I've mentioned it before. The emails

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Ashley Sheridan
Actually, I just checked Rons message, and it does have the right headers attached. What email client are you using to view the headers? Ash www.ashleysheridan.co.uk ---BeginMessage--- On Fri, Aug 22, 2008 at 9:10 AM, Ashley Sheridan [EMAIL PROTECTED] wrote: I assume Ronald won't see

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Ashley Sheridan
---BeginMessage--- Andrew Ballard wrote: On Fri, Aug 22, 2008 at 9:10 AM, Ashley Sheridan [EMAIL PROTECTED] wrote: I assume Ronald won't see this, but I've mentioned it before. The emails coming from the mailing list all have an unsubscribe link in the header information. Just my 2p (I'm British, we

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Ashley Sheridan
Hence my response of read the headers ;) Ash www.ashleysheridan.co.uk ---BeginMessage--- On Fri, Aug 22, 2008 at 9:51 AM, Maciek Sokolewicz [EMAIL PROTECTED] wrote: Andrew Ballard wrote: On Fri, Aug 22, 2008 at 9:10 AM, Ashley Sheridan [EMAIL PROTECTED] wrote: I assume Ronald won't see

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread Ashley Sheridan
from accessing important system folders. On Fri, Aug 22, 2008 at 3:09 AM, Ashley Sheridan [EMAIL PROTECTED]wrote: You can change the permissions on the file, which I believe you said you did. If that didn't work, it must be because you are trying to read from the file at the very same instant

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread Ashley Sheridan
wasn't being written to at the time of loading. I think the whole logs folder is restricted from php access. On Fri, Aug 22, 2008 at 10:13 AM, Ashley Sheridan [EMAIL PROTECTED]wrote: The log file was in the process of being written to as you were trying to read it. It's a bit like trying to look

Re: [PHP] RE: Sale 79% OFF !!!

2008-08-22 Thread Ashley Sheridan
--- At 2:26 PM +0100 8/21/08, Ashley Sheridan wrote: I don't understand how people can fall for this kind of thing, all those Nigerian scams and the like. For every person that falls for it, a million more emails get sent, making everyone elses lives hell :( Ash www.ashleysheridan.co.uk I hate

Re: [PHP] Sorting Arrays

2008-08-22 Thread Ashley Sheridan
Yeah, a bubble sorting algorithm should fix it, as it essentially only a very simple sort required. Ash www.ashleysheridan.co.uk ---BeginMessage--- I believe you'll need a custom sorting function for this. http://us.php.net/usort Thank you, Micah Gersten onShore Networks Internal Developer

Re: [PHP] Restore Leading Zeros in Zip Codes

2008-08-22 Thread Ashley Sheridan
On Fri, 2008-08-22 at 17:16 -0400, tedd wrote: At 12:35 PM -0400 8/22/08, Dan Joseph wrote: tedd wrote: Why take them out in the first place? Keep the zip code as a string. After all, not all countries use just numbers. From a recent experience, you should all listen to

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Ashley Sheridan
On Fri, 2008-08-22 at 21:56 +, Ólafur Waage wrote: That is the brick wall i faced. There is no way to know where exactly you are (via DirectoryIndex) locally on the machine. Thanks though. 2008/8/22 Micah Gersten [EMAIL PROTECTED]: You might want to try a Redirect Rule or rewrite

Re: [PHP] php image and javascript include

2008-09-07 Thread Ashley Sheridan
Do you have an excerpt of the PHP code you have preceeding the HTML you are using to include the JavaScript images? Ash www.ashleysheridan.co.uk ---BeginMessage--- Hi All, Strange issue here. I m including images and javascript in my php file. None of them show/work up. If i change the .php

Re: [PHP] php image and javascript include

2008-09-07 Thread Ashley Sheridan
You generally need some PHP to have PHP errors, but you don't have any here. What was the code that actually gave you the errors? Ash www.ashleysheridan.co.uk ---BeginMessage--- html head meta http-equiv=Content-Type content=text/html; charset=windows-1252 titleSPIDR/title script

Re: [PHP] php image and javascript include

2008-09-07 Thread Ashley Sheridan
Dreamweaver? Eclipse? Pah, it's all about using a text editor! Kate (on KDE) is my preference ;) Ash www.ashleysheridan.co.uk ---BeginMessage--- Reese schreef: b wrote: javasac wrote: [lots of stuff ...] Second, at least one of the image paths is relative to your own desktop computer's

Re: [PHP] Interntet Explorer 8 beater 2

2008-09-09 Thread Ashley Sheridan
No, I test as far as IE6 and 7 as far as Microshaft browsers go. As it's a beta, and a M$ beta at that, it's likely to change a considerable bit before it's a final product, so not much point testing it this early in it's life cycle. Maybe more towards the time when it is ready to be fully

Re: [PHP] php image and javascript include

2008-09-09 Thread Ashley Sheridan
Kate has an auto text feature, and you can set it to start prompting from typing in as few characters as you wish, although it only prompts for things you've already typed, it this does save you from making obvious variable name typos as it will prompt the next time you try to use it, and it

Re: [PHP] CSV output.

2008-09-09 Thread Ashley Sheridan
I'm guessing that when you are writing your values, you are writing numbers to the file and not strings. With numbers, the significant floating-point values are obviously preserved, but a number like 12.00 will be written as just 12. Try either casting the value to a string, or having PHP

Re: [PHP] Creating single row for multiple items.

2008-09-09 Thread Ashley Sheridan
I'm assuming because this is part of a shopping cart, so he would have to put the data into the database only to retrieve it again, which is a little bit of a waste. As for how to do it, I'd look through the arrays you have and use associative arrays (where the order number is the key of the

Re: [PHP] Re: Installation doesn't complete, Windows Vista: error - script required to complete

2008-09-11 Thread Ashley Sheridan
I've always found EasyPHP to be good for this. Installs within minutes, and makes adding the extra packages for PHP an absolute doddle. I know it works on Vista, as I've tried it, although with Vista, some of the more unusual packages didn't install. Ash www.ashleysheridan.co.uk

Re: [PHP] Setting up a password for WAMP

2008-09-11 Thread Ashley Sheridan
Probably the quickest way is to go into the old command line and restart the mysqld service. There is an option there to set the username it runs under and the password it needs when making a connection. Ash www.ashleysheridan.co.uk ---BeginMessage--- HI On Wed, Sep 10, 2008 at 12:23 PM, Ben

Re: [PHP] Re: New Server Install

2008-09-11 Thread Ashley Sheridan
I believe that MySQL uses a particular port when connecting over a network such as you're doing. I can't remember the exact port number, but you can Google it. Just check that there's nothing blocking this port either on your computer, the server, or the router/switch or whatever else you are

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-12 Thread Ashley Sheridan
Wow, anyone could be mistaken for thinking you two were Microshaft employees... tirade Vista sucks because: * it uses far more memory than it should, even with the visual effects turned off * IE7 on Vista is more flaky than IE7 on XP FACT! * The registry hacks to get around the draconian limits

Re: [PHP] Browser could not get mp3 files from http site

2008-09-12 Thread Ashley Sheridan
As far as I'm aware, the embed tag is not supported in any HTML standard, and as such, it's a little hit and miss. Depending on what you want to achieve, you should look towards the object tag instead: http://joliclic.free.fr/html/object-tag/en/ Ash www.ashleysheridan.co.uk ---BeginMessage---

Re: [PHP] switch case - to require the break statements seems strange to me

2008-09-12 Thread Ashley Sheridan
Well, I've often found the need to treat several conditions with the same set of statements within a switch: switch($some_number) { case 1: case 2: { // do some shizzle break; } case 3: { // foshizzle that nizzle break; } default:

Re: [PHP] php image and javascript include

2008-09-12 Thread Ashley Sheridan
I've never been a huge fan of Vi or Vim, but I am a fan of coding in a text editor, not a GUI, I just guess I prefer Kate. I know for certain that one thing that really bugs me about Dreamweaver is the fact that it has a tendency to really nerf up the spacing, and it replaces tabs with spaces more

Re: [PHP] Thank you...

2008-09-12 Thread Ashley Sheridan
Send me the doll and the beer... Ash www.ashleysheridan.co.uk ---BeginMessage--- On Fri, 2008-09-12 at 14:39 -0400, tedd wrote: At 2:31 PM -0400 9/12/08, Robert Cummings wrote: On Fri, 2008-09-12 at 14:24 -0400, tedd wrote: I don't drink beer -- send money. :-) No, no, no... send me

Re: [PHP] php image and javascript include

2008-09-13 Thread Ashley Sheridan
On Sat, 2008-09-13 at 23:24 +0200, Børge Holen wrote: On Saturday 13 September 2008 01:34:41 Ashley Sheridan wrote: I've never been a huge fan of Vi or Vim, but I am a fan of coding in a text editor, not a GUI, I just guess I prefer Kate. I know for certain that one thing that really bugs

Re: [PHP] 2 Questions.

2008-09-13 Thread Ashley Sheridan
On Sat, 2008-09-13 at 17:38 -0500, Tom Shaw wrote: Can anybody give me any good reasons not to use a time stamp as an order number in my shopping cart. It seems to me that the number is guaranteed to be random and it saves having to make an extra time column to keep track of the order. The

Re: [PHP] 2 Questions.

2008-09-14 Thread Ashley Sheridan
On Sun, 2008-09-14 at 03:42 +0200, Jochem Maas wrote: Yo Dan, your back! guess the honeymoon is well and truly over then ;-) Daniel Brown schreef: On Sat, Sep 13, 2008 at 8:14 PM, tedd [EMAIL PROTECTED] wrote: While you might think an order number should be something else, keep in

Re: [PHP] php image and javascript include

2008-09-14 Thread Ashley Sheridan
On Sun, 2008-09-14 at 10:23 +0200, Børge Holen wrote: On Saturday 13 September 2008 23:35:47 Ashley Sheridan wrote: On Sat, 2008-09-13 at 23:24 +0200, Børge Holen wrote: On Saturday 13 September 2008 01:34:41 Ashley Sheridan wrote: I've never been a huge fan of Vi or Vim, but I am a fan

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 10:59 -0400, tedd wrote: Similarly, I had a run-in with American Express over 30 years ago and even to this day I return all their sales promotion in their self-addressed no-postage envelope they provide. Over the years, I suspect they have paid postage for over 100

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 11:26 -0400, tedd wrote: At 11:57 PM +0100 9/15/08, Ashley Sheridan wrote: I agree on your point about trying before bashing. I've tried Vista. Hell, I had to use it for 2 months solid while I was working in India, so I really got to test it out. I had more crashes

Re: [PHP] textarea html generation problem

2008-09-16 Thread Ashley Sheridan
on my part. Michael Kubler *G*rey *P*hoenix *P*roductions http://www.greyphoenix.biz Ashley Sheridan wrote: Whats wrong with trying one of the major ones in use at the moment, like FCKEditor? Ash www.ashleysheridan.co.uk It's just unfortunate that the guys initials happened

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 15:04 -0400, Eric Butera wrote: On Tue, Sep 16, 2008 at 2:51 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Tue, 2008-09-16 at 11:26 -0400, tedd wrote: At 11:57 PM +0100 9/15/08, Ashley Sheridan wrote: I agree on your point about trying before bashing. I've tried

Re: [PHP] Paypal Integration

2008-09-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 12:27 -0700, mike wrote: On Tue, Sep 16, 2008 at 12:20 PM, Dan Joseph [EMAIL PROTECTED] wrote: Revolution Money Exchange just started up a few months ago. Its owned by a bank (although I can't recall which). Same concept as far as I can tell, although I don't

Re: [PHP] Paypal Integration

2008-09-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 20:39 +0100, Richard Heyes wrote: Hi, I think once Google Checkout goes more global (which it plans to) it will be something to use as a viable alternative to Paypal. There's quite a few large corporations use it already. Without looking into it too much, can it

Re: [PHP] Paypal Integration

2008-09-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 20:51 +0100, Richard Heyes wrote: No, there are certain terms and conditions for using Google Checkout. You have to display their logo prominently, and they say they will terminate accounts of anyone not adhering to these terms. Hmm, might not be so bad. I would

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-16 Thread Ashley Sheridan
On Tue, 2008-09-16 at 16:50 -0400, Bastien Koert wrote: On Tue, Sep 16, 2008 at 3:11 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Tue, 2008-09-16 at 15:04 -0400, Eric Butera wrote: On Tue, Sep 16, 2008 at 2:51 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Tue, 2008-09-16

Re: [PHP] Paypal Integration

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 02:10 -0700, mike wrote: On Wed, Sep 17, 2008 at 1:33 AM, Per Jessen [EMAIL PROTECTED] wrote: Not necessarily. Here in Switzerland, the federal data protection agency has recently advised people to be careful with what data they let Google handle (or not).

Re: [PHP] Re: Email Verification

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 09:59 -0400, Al wrote: Tom Chubb wrote: Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 14:49 -0400, Dan Joseph wrote: On Wed, Sep 17, 2008 at 2:28 PM, Jochem Maas [EMAIL PROTECTED] wrote: Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the following development languages: *

Re: [PHP] Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 15:36 -0400, Jason Pruim wrote: On Sep 17, 2008, at 3:24 PM, Stut wrote: On 16 Sep 2008, at 23:54, tedd wrote: At 7:40 PM +0100 9/16/08, Stut wrote: On 16 Sep 2008, at 15:59, tedd wrote: Snail-mail spam relies upon the same basic fact that electronic spam

Re: [PHP] SQLExtendedFetch

2008-09-17 Thread Ashley Sheridan
On Wed, 2008-09-17 at 15:30 -0700, Liz Kim wrote: I've posted this already but I thought a new subject might help.. I have a script which connects to a MS SQL database, executes a query then displays the result. There are two identical Apache web servers and one MS SQL database server.

[PHP] Deconstruct PDF

2008-09-18 Thread Ashley Sheridan
Hi All, I'm not sure if this is possible, but basically I was wondering if anyone had any experience with using PHP to read/deconstruct a PDF file. I'm asking because a system I built at work is being used by a complete computer illiterate. Even after careful step-by-step instruction, she still

Re: [PHP] Deconstruct PDF

2008-09-18 Thread Ashley Sheridan
On Thu, 2008-09-18 at 15:20 -0400, Eric Butera wrote: On Thu, Sep 18, 2008 at 3:15 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: Hi All, I'm not sure if this is possible, but basically I was wondering if anyone had any experience with using PHP to read/deconstruct a PDF file. I'm

Re: [PHP] Deconstruct PDF

2008-09-18 Thread Ashley Sheridan
On Thu, 2008-09-18 at 15:30 -0400, Eric Butera wrote: On Thu, Sep 18, 2008 at 3:28 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: On Thu, 2008-09-18 at 15:20 -0400, Eric Butera wrote: On Thu, Sep 18, 2008 at 3:15 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: Hi All, I'm not sure

Re: [PHP] SESSIONS vs. MySQL

2008-09-20 Thread Ashley Sheridan
On Fri, 2008-09-19 at 10:17 -0500, Philip Thompson wrote: Hi all. Let me start out by saying, I have STFW and read through the list archives. Now that that's out of the way. To speed up our application, we want to implement using SESSIONs in some locations. Beforehand, on every page,

Re: [PHP] Associative array issues with loading values after initialization

2008-09-20 Thread Ashley Sheridan
On Fri, 2008-09-19 at 13:43 -0400, Thomas Bolioli wrote: I hav ebeen able to track down that this is the part not working. It throws a parse error: PHP Parse error: syntax error, unexpected T_VARIABLE on the line where the foreach loop starts. function dropbox_from_list($list,

Re: [PHP] how to recognize CSV file?

2008-09-20 Thread Ashley Sheridan
On Fri, 2008-09-19 at 14:24 -0500, Afan Pasalic wrote: Eric Butera wrote: On Fri, Sep 19, 2008 at 3:14 PM, Afan Pasalic [EMAIL PROTECTED] wrote: Eric Butera wrote: On Fri, Sep 19, 2008 at 2:59 PM, Afan Pasalic [EMAIL PROTECTED] wrote: hi, I have form where

Re: [PHP] Re: Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2

2008-09-20 Thread Ashley Sheridan
On Sat, 2008-09-20 at 03:30 +0200, Michelle Konzack wrote: Am 2008-09-14 17:09:53, schrieb Ashley Sheridan: on earth anyone is going to give Debian to a Linux newbie, and if they do they should be taken out and shot! If I find you I will kill you!!! I am Debian GNU/Linux Consultant

Re: [PHP] Re: Shopping Carts/Checkout Software

2008-09-20 Thread Ashley Sheridan
On Sat, 2008-09-20 at 04:30 +0200, Michelle Konzack wrote: Design can not be changed (colors, look and feel) since it is HTML table fixed. Also the boxes left and in the middle have broken headings (Titles) which I have tried to solv, but since the sourcecode is not realy clear it is

Re: [PHP] Error message

2008-09-21 Thread Ashley Sheridan
On Sat, 2008-09-20 at 23:48 -0500, Shawn McKenzie wrote: Terry J Daichendt wrote: The error message told it all. Jochem was correct albiet not in the style I prefer. I had the code in an HTML page after the header. I've been a programmer for 15 years but I'm brand new to PHP. Anyone can

Re: [PHP] Re: render html

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 08:17 +0200, Lupus Michaelis wrote: Michelle Konzack a écrit : $body = hellobr/ulier/ulhellohello; ^ Should be br / Definitely no : http://www.w3.org/TR/2006/REC-xml-20060816/#dt-empty

Re: [PHP] Re: Header() - POST

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 14:29 +0200, Lupus Michaelis wrote: Maciek Sokolewicz a écrit : Your xss answer is moot. XSS attacks can (almost) just as easily be performed via POST as they can via GET. No, because you can't click on a link that make a post. Maybe on unsecured browser that

Re: [PHP] Public in Classes

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 12:24 +0100, Ben Stones wrote: Hi, Just started with object oriented programming and glad I have come across it, just need a few things clearing up. When I make a variable or method public, does this mean that it can be used outside of classes, for instance in other

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 08:29 -0400, tedd wrote: At 5:35 AM +0200 9/20/08, Michelle Konzack wrote: Am 2008-09-14 13:54:01, schrieb hce: I've tried the object tag as Ash suggested, the object tag crashed firefox): (1) If I open following audio.html directly from Open File

Re: [PHP] br was [PHP] Re: render html

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 09:16 -0400, tedd wrote: At 8:17 AM +0200 9/21/08, Lupus Michaelis wrote: Michelle Konzack a écrit : $body = hellobr/ulier/ulhellohello; ^ Should be br / Definitely no : http://www.w3.org/TR/2006/REC-xml-20060816/#dt-empty

  1   2   3   4   5   6   7   8   9   10   >