Re: [PHP] question about compiling a portable web server for linux

2010-08-06 Thread Ashley Sheridan
On Sat, 2010-08-07 at 10:43 +0800, lainme wrote: thanks for the reply. I know it is not a PHP problem. And I want to know whether it is possible to make it architecture independent. On Sat, Aug 7, 2010 at 10:38 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2010-08-07

Re: [PHP] Converting HTML to PDF via PHP

2010-08-04 Thread Ashley Sheridan
On Wed, 2010-08-04 at 17:33 -0700, Michael Calkins wrote: I have found various online tools that do this but nothing that has documented it as a tutorial so I can understand it. I found the html_to_pdf.inc.php script that is entirely undocumented so I am not sure how to use it exactly.

[PHP] mytrash mail thing

2010-08-04 Thread Ashley Sheridan
Hi, Please can whoever is using that mytr...@mail.ua system please remove it from this list or remove yourself? Every email I now send to the list is followed up by a message from this, which from my point of view is essentially spam being sent to me. If you sign up to the php mailing list,

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Ashley Sheridan
On Tue, 2010-08-03 at 14:41 -0400, Rick Dwyer wrote: Hello List. In the Alt section of the IMG tag below, the variable $myitem has a value of Who's There. echo div class='myclass'a href='#' class='color_thumb' img src='/itemimages/$mypic' alt='$myitem' width='60' When running

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Ashley Sheridan
On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: Rick Dwyer wrote: Hello List. In the Alt section of the IMG tag below, the variable $myitem has a value of Who's There. echo div class='myclass'a href='#'

Re: [PHP] Encoding for W3C Validation

2010-08-03 Thread Ashley Sheridan
On Tue, 2010-08-03 at 15:32 -0400, Rick Dwyer wrote: On Aug 3, 2010, at 3:15 PM, Sebastian Ewert wrote: Ashley Sheridan wrote: On Tue, 2010-08-03 at 15:00 -0400, Rick Dwyer wrote: On Aug 3, 2010, at 2:47 PM, Sebastian Ewert wrote: Rick Dwyer wrote: Hello List. In the Alt

Re: [PHP] generate animated gifs

2010-08-02 Thread Ashley Sheridan
On Mon, 2010-08-02 at 18:43 -0300, Martín Marqués wrote: Is there a way (I haven't found it yet) to create with a sequence of gifs an animated gif using php-gd? -- Martín Marqués select 'martin.marques' || '@' || 'gmail.com' DBA, Programador, Administrador Not natively with GD. For

Re: [PHP] HTTPS

2010-08-01 Thread Ashley Sheridan
On Sun, 2010-08-01 at 13:29 +0200, Jordan Jovanov wrote: Hello I have one web page with hhtp protocol, but i need to change in https. Do you somebody know does is easy and can i do? Does need to write some php scripts or anything. Thanks a lot. You need to set up a security

Re: [PHP] Text editor for Ubuntu with FTP

2010-07-31 Thread Ashley Sheridan
On Sat, 2010-07-31 at 13:03 +0200, Jordan Jovanov wrote: Hello to All, I only whant to star discussion for who is the best programm to write php and html script. I use dreamweaver, but now I change my OS to ubuntu and I want some suggestions for some Text editor for FTP for Ubuntu

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread Ashley Sheridan
On Thu, 2010-07-29 at 18:45 -0600, Tristan wrote: Yeah like i said site works 95% of the time when navigating. PHP5.2, Mysql 5. The site is completely dynamic so it wouldn't work at all if that was the case of it not being installed right. so the other 5% of the time is blank pages and

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread Ashley Sheridan
On Fri, 2010-07-30 at 13:38 -0400, Adam Richardson wrote: On Fri, Jul 30, 2010 at 11:35 AM, Bill Guion bgu...@comcast.net wrote: At 6:45 PM -0600 7/29/10, Tristan wrote: Yeah like i said site works 95% of the time when navigating. PHP5.2, Mysql 5. The site is completely dynamic so it

RE: [PHP] the state of the PHP community

2010-07-29 Thread Ashley Sheridan
On Thu, 2010-07-29 at 08:32 -0400, Mike Roberts wrote: Hello All. I have been given advice on how to remove myself from this list, and taken it. I have tried on my own to discover how to remove myself from this list. I have even ( something I am not proud of) hinted that I might start

Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...

2010-07-29 Thread Ashley Sheridan
On Thu, 2010-07-29 at 09:50 -0700, Don Wieland wrote: I am trying to create an UPLOAD form and need to figure a way to only allow PDF files to be selected. Something like: html body form enctype=multipart/form-data action=upload.php method=post input type=hidden

Re: [PHP] Fastest way to find out if a string contains a certain character?

2010-07-27 Thread Ashley Sheridan
On Tue, 2010-07-27 at 09:30 +0200, Gary wrote: I know there are a number of possible ways of doing this, but I was just wondering if there is an accepted way of doing so which is better than others, performance wise. An idiom, if you like. If you only need to find if a string contains

Re: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread Ashley Sheridan
On Tue, 2010-07-27 at 10:10 +0200, Jordan Jovanov wrote: Hello Everybody I start to write PHP script and all veritable a defined without some rules. I want to ask to you somebody know how is correct do different some variable. Like from next three variable who is correct: $firstname

Re: [PHP] Fastest way to find out if a string contains a certain character?

2010-07-27 Thread Ashley Sheridan
On Tue, 2010-07-27 at 11:35 +0200, Peter Lind wrote: On 27 July 2010 11:27, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-27 at 09:30 +0200, Gary wrote: I know there are a number of possible ways of doing this, but I was just wondering if there is an accepted way

Re: [PHP] Text editor

2010-07-27 Thread Ashley Sheridan
On Tue, 2010-07-27 at 13:49 +0200, Dušan Novaković wrote: You can use TinyMCE. It's really easy to integrate in system. Check on official website. Dusan On Tue, Jul 27, 2010 at 12:10 PM, Jordan Jovanov jovanovj...@gmail.com wrote: Hello All I need me to add form for comment to one

Re: Re[2]: [PHP] opening link in new window

2010-07-24 Thread Ashley Sheridan
On Sat, 2010-07-24 at 17:31 +0300, Andre Polykanine wrote: Hi Rob and all, Btw, is there a way to do window.close without any questions of a browser? I know the only one: the window is generated via window.open. -- With best regards from Ukraine, Andre Skype: Francophile;

Re: [PHP] Does class length slow down performance

2010-07-22 Thread Ashley Sheridan
On Thu, 2010-07-22 at 10:49 +0200, Sebastian Ewert wrote: Hi, I'm developing an joomla component and my helper an user classes are crowing bigger and bigger. The helper class is for static use only. Does class size decrease performance of my php scripts, even for static usage? Is there

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Ashley Sheridan
On Wed, 2010-07-21 at 12:57 +0530, Nilesh Govindarajan wrote: On Wed, Jul 21, 2010 at 12:29 PM, Per Jessen p...@computer.org wrote: Tom Sparks wrote: How do I take the output from a command line program and update a MYSQL database with it? command line program | mysql -u user -p

Re: [PHP] Extending Exception

2010-07-21 Thread Ashley Sheridan
On Wed, 2010-07-21 at 11:10 -0400, Christoph Boget wrote: Ok, so taking the sample code that is on the page http://us3.php.net/manual/en/language.exceptions.extending.php Literally, just cutting and pasting the code. When I try to throw new Exception( 'My Message' ); PHP spits out

[PHP] enabling domdocument

2010-07-19 Thread Ashley Sheridan
Hi all, I'm having a bit of a problem here with getting DomDocument on PHP. I've got a Fedora 11 system and have used the package manager to install PHP and its various modules, at no point have I compiled PHP myself (which has never worked when I've tried it, ever, but that's another issue)

Re: [PHP] enabling domdocument

2010-07-19 Thread Ashley Sheridan
On Mon, 2010-07-19 at 12:09 +0100, Ashley Sheridan wrote: Hi all, I'm having a bit of a problem here with getting DomDocument on PHP. I've got a Fedora 11 system and have used the package manager to install PHP and its various modules, at no point have I compiled PHP myself (which has

Re: [PHP] handing over data between two PHP connections

2010-07-19 Thread Ashley Sheridan
On Mon, 2010-07-19 at 13:21 +0200, Tobias Mueller wrote: Am Sunday 18 July 2010 23:10:58 schrieb Floyd Resler: On Jul 18, 2010, at 3:27 PM, tobias.muelle...@web.de wrote: Hello everybody For a science project I am working on a mechanism that hands over data from a smartphone to a

Re: [PHP] recursive

2010-07-18 Thread Ashley Sheridan
On Sun, 2010-07-18 at 09:49 +0430, shahrzad khorrami wrote: hi all :) here is a xml file: directive rule rules rule /rule rule /rule /rules /rule /directive directive rule rules rule /rule rule

Re: [PHP] handing over data between two PHP connections

2010-07-18 Thread Ashley Sheridan
On Sun, 2010-07-18 at 21:27 +0200, tobias.muelle...@web.de wrote: Hello everybody For a science project I am working on a mechanism that hands over data from a smartphone to a web-browser (=Internet PC). Both connect to a PHP server. The PHP server has to receive the data (=some kind of

Re: [PHP] Convert excel time to date time

2010-07-17 Thread Ashley Sheridan
On Sat, 2010-07-17 at 19:47 +0800, Mohd Shakir bin Zakaria wrote: Hi, I've been trying to convert this excel date to the date time format, but only managed to get it up to the seconds; The following code; # $data=39604.62164; date(Y-m-d,mktime(0,0,0,1,$data-1,1900));

Re: [PHP] Converting a javascript calculating page to a PHP one

2010-07-17 Thread Ashley Sheridan
On Sat, 2010-07-17 at 09:35 -0600, The Doctor wrote: Quick question, ho easy is this? -- Member - Liberal InternationalThis is doc...@nl2k.ab.ca Ici doc...@nl2k.ab.ca God, Queen and country! Never Satan President Republic! Beware AntiChrist rising! http://twitter.com/rootnl2k

Re: [PHP] PHP Pill

2010-07-17 Thread Ashley Sheridan
On Sat, 2010-07-17 at 12:30 -0400, Rick Dwyer wrote: Hello all. I inquired about the problem below on a FM board but no one could help. Hoping someone here may have an explanation or a workaround. I have PHP Pill installed on both a Mac and PC versions of FileMaker 11. On the Mac,

Re: [PHP] PHP Pill

2010-07-17 Thread Ashley Sheridan
, Ashley Sheridan wrote: On Sat, 2010-07-17 at 12:30 -0400, Rick Dwyer wrote: Hello all. I inquired about the problem below on a FM board but no one could help. Hoping someone here may have an explanation or a workaround. I have PHP Pill installed on both a Mac and PC

Re: [PHP] adduser php

2010-07-16 Thread Ashley Sheridan
the $username variable just before it executes the command, or because the variable is inside quotes, it is not getting through. From: Ashley Sheridan Sent: Saturday, July 10, 2010 2:01 PM To: Matt Morrow Cc: php-general@lists.php.net Subject: Re: [PHP] adduser php

Re: [PHP] How to alter the schema of a database to introduce newfeatures or change the current features

2010-07-15 Thread Ashley Sheridan
On Thu, 2010-07-15 at 09:07 +0100, Pete Ford wrote: On 15/07/10 06:03, Paul M Foster wrote: On Wed, Jul 14, 2010 at 09:28:53PM -0700, Slith One wrote: I'm developing an app using Zend Framwork using Git for version control. What is the best approach for updating the schema and the

Re: [PHP] user login and access + headers already sent

2010-07-15 Thread Ashley Sheridan
On Thu, 2010-07-15 at 15:38 +, Carlos Sura wrote: Hello mates, I'm developing a user registration and access level system... And I wonder... Is there any way to avoid to put code in every header page? Because, almost every page contains javascript, so almost every page cotains html

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-15 Thread Ashley Sheridan
On Thu, 2010-07-15 at 16:54 +0100, Richard Quadling wrote: Hi. It seems that users cannot enter a vehicle registration 100% accurately. We have recently released a small mobile web app which allows service engineers/inspectors to enter a vehicle registration number and a pin number to

Re: [PHP] Posting values of dynamically generated text fields at a time

2010-07-14 Thread Ashley Sheridan
On Wed, 2010-07-14 at 12:08 +0530, Saravanan Murugesan wrote: Hi is anybody there to help me out on this? Hi all, I am new to PHP and JS. I am adding new text fields using javascript and I have to save the values of these fields in database in single row. So, how should I

RE: [PHP] updating a database

2010-07-14 Thread Ashley Sheridan
On Wed, 2010-07-14 at 10:29 -0400, Bob McConnell wrote: From: David Mehler What i'm trying to do certainly doesn't seem hard conceptually, but coding it has been rough. I'm wondering if anyone has anything similar. I've got a database with records. The first time the page is accessed

Re: [PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Ashley Sheridan
On Tue, 2010-07-13 at 11:06 -0600, Larry Martell wrote: I have an app that runs just fine on an older Solaris apache server (Apache/2.0.53 PHP/5.0.4), but when I run the same app on a newer Linux server (Apache/2.2.3-11 PHP/5.2.8) against the same database on the same mysql server, it fails

Re: [PHP] adduser php

2010-07-13 Thread Ashley Sheridan
On Tue, 2010-07-13 at 12:56 -0600, Nathan Nobbe wrote: On Sat, Jul 10, 2010 at 2:39 PM, Matt M. cmorrow...@gmail.com wrote: The only thing is, when I execute this command from a shell, it works. Obviously I'm replacing $username and $password with something valid when doing this

Re: [PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Ashley Sheridan
On Tue, 2010-07-13 at 14:22 -0600, Larry Martell wrote: On Tue, Jul 13, 2010 at 11:11 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-07-13 at 11:06 -0600, Larry Martell wrote: I have an app that runs just fine on an older Solaris apache server (Apache/2.0.53 PHP

Re: [PHP] help with sql statement

2010-07-12 Thread Ashley Sheridan
On Mon, 2010-07-12 at 10:24 -0500, Adam wrote: I was google searching, and the only SQL mailing list I found is currently giving a 503 error, so I hope you don't mind me asking my SQL question here, since there are a lot of SQL gurus here. I am having a syntax problem: Instead of doing

Re: [PHP] Serial Numbers

2010-07-12 Thread Ashley Sheridan
On Mon, 2010-07-12 at 14:52 -0400, Gary wrote: I'm sure it is possible, but I am unsure how to do this. I have created a Sale coupon that I was going to put up on a site that I manage, for visitors to print out and bring to the store. The coupon is currently a .png, however I was planning

Re: [PHP] Serial Numbers

2010-07-12 Thread Ashley Sheridan
On Mon, 2010-07-12 at 15:17 -0400, Floyd Resler wrote: On Jul 12, 2010, at 2:52 PM, Gary wrote: I'm sure it is possible, but I am unsure how to do this. I have created a Sale coupon that I was going to put up on a site that I manage, for visitors to print out and bring to the

Re: [PHP] There has to be a better way!!

2010-07-10 Thread Ashley Sheridan
On Sat, 2010-07-10 at 11:58 -0400, Jason Pruim wrote: Okay so I've been fighting with this for awhile now and haven't found a better way yet What I want to do, is I have a small portion of my website included into a template. It is displaying hosting plans so on the main site

Re: [PHP] adduser php

2010-07-10 Thread Ashley Sheridan
On Sat, 2010-07-10 at 13:45 -0500, Matt Morrow wrote: I am using php 5 on OpenBSD 4.7 I have a script which takes a username and password from $_POST, and is supposed to add the user to the system database. The problem is, adduser creates a username with the same name as the group. The code

Re: [PHP] Login In script quesitons

2010-07-09 Thread Ashley Sheridan
On Fri, 2010-07-09 at 15:43 -0400, Gary wrote: Richard Quadling rquadl...@gmail.com wrote in message news:aanlktilbmyedd8paky9dwgn0q7t6kem4zzutu_49u...@mail.gmail.com... On 9 July 2010 16:42, Gary gp...@paulgdesigns.com wrote: [snip] Take a look at

Re: [PHP] Arrays passed to functions lose their indexing - how to maintain?

2010-07-09 Thread Ashley Sheridan
On Fri, 2010-07-09 at 15:55 -0400, Marc Guay wrote: Hi folks, I have an array that looks a little something like this: Array ( [6] = 43.712608, -79.360092 [7] = 43.674088, -79.388557 [8] = 43.674088, -79.388557 [9] = 43.704666, -79.397873 [10] = 43.674393, -79.372147 ) but after I

Re: [PHP] Login In script quesitons

2010-07-09 Thread Ashley Sheridan
On Fri, 2010-07-09 at 15:58 -0400, Gary wrote: Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1278705035.2295.2.ca...@localhost... On Fri, 2010-07-09 at 15:43 -0400, Gary wrote: Richard Quadling rquadl...@gmail.com wrote in message

Re: [PHP] Login In script quesitons

2010-07-09 Thread Ashley Sheridan
On Fri, 2010-07-09 at 16:04 -0400, Gary wrote: ? ?php That bit of the code has a newline in it, which counts as output :p I've not looked over the rest yet, but see if that helps. Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] Login using just cookies, bad idea?

2010-07-08 Thread Ashley Sheridan
On Thu, 2010-07-08 at 09:53 -0700, Michael Calkins wrote: I right now have a complete user login and registration system however it uses cookies when you login to store information. Is this a bad thing?$_COOKIE vs $_SESSION for login systems From,Michael

Re: [PHP] Date Test...

2010-07-08 Thread Ashley Sheridan
On Wed, 2010-07-07 at 13:28 -0700, Don Wieland wrote: Hello all, I am processing an array to build an INSERT string in PHP. The code below I build an a separate array for the TARGET fields and the VALUES. I am trying to trap for a NULL ENTRY in a Date Input Field. Date fields are

Re: [PHP] window.open access parent's JS?

2010-07-07 Thread Ashley Sheridan
On Wed, 2010-07-07 at 00:09 -0500, Skip Evans wrote: Hey all, Is there a way to have a window opened with window.open() inherit the parent windows JS environment? In other words, I call window.open() with a URL that displays a form created by a PHP script. JS code has already been

Re: [PHP] Creating image on-the-fly

2010-07-07 Thread Ashley Sheridan
On Wed, 2010-07-07 at 16:05 -0400, Marc Guay wrote: I was wondering if there was any way I can create an image from some text with php? Something like this? http://sgss.me/obsolete/experiments/phpfontimagegenerator2/usage.php One thing to bear in mind is that this introduces extra

RE: [PHP] Creating image on-the-fly

2010-07-07 Thread Ashley Sheridan
On Wed, 2010-07-07 at 13:43 -0700, Daevid Vincent wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, July 07, 2010 1:22 PM To: Marc Guay Cc: php-general Subject: Re: [PHP] Creating image on-the-fly On Wed, 2010-07-07

Re: [PHP] php -l - does it find *anything*?

2010-07-06 Thread Ashley Sheridan
On Tue, 2010-07-06 at 10:54 +0200, Gary . wrote: Or, alternatively put, is there any way to find the kind of problems in foo2 foo3 (below), at *compile* time? ,[ lint-test.php ] | ?php | | error_reporting(E_ALL | E_STRICT); | | function foo1() | { | $bar = 'cheese'; |

Re: [PHP] Question about the Board

2010-07-06 Thread Ashley Sheridan
On Tue, 2010-07-06 at 11:00 +0200, Gary . wrote: On 7/5/10, Gary[1] wrote: The last few times I have posted to the board, I recieved an email, which has the subject line of ??? ??? and is written in what appears to be greek Ukrainian or Russian I would guess, looking at the

Re: [PHP] communication protocol

2010-07-06 Thread Ashley Sheridan
On Tue, 2010-07-06 at 18:41 -0300, Augusto Flavio wrote: Hi List, I'm looking for a chat support likes the livezilla. The livezilla is a great tool but doesn't have language supports to another language instead english and german (operator side). Then I thought that a good option would be

RE: [PHP] Open Source SEO tool

2010-07-06 Thread Ashley Sheridan
traffic…. Thanks! Jack From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Tuesday, June 29, 2010 1:09 PM To: Jack Cc: PHP Subject: Re: [PHP] Open Source SEO tool On Tue, 2010-06-29 at 13:02 -0400, Jack wrote: Hello All, Does anyone know

Re: [PHP] HTML in emails

2010-07-05 Thread Ashley Sheridan
On Sun, 2010-07-04 at 23:12 -0400, Paul M Foster wrote: On Sun, Jul 04, 2010 at 11:44:29PM +0100, Ashley Sheridan wrote: snip It is nice to be able to format emails nicely, but you have to realise when to restrain yourself. I've been getting loads of emails from Adobe

Re: [PHP] HTML in emails

2010-07-04 Thread Ashley Sheridan
On Sun, 2010-07-04 at 17:06 -0400, Paul M Foster wrote: On Sun, Jul 04, 2010 at 11:43:59AM -0400, Al wrote: I know this is a bit off-topic; but close enough. I'm starting to update the email feature of one of my DB applications and noticed that it appears most of the fancy emails I

Re: [PHP] form validation and error display

2010-07-04 Thread Ashley Sheridan
On Sun, 2010-07-04 at 18:23 -0400, David Mehler wrote: Hello everyone, Thanks for your suggestions. For my variable in the value area of the text input field I enter value=?php echo $name; ? Prior to this I assign the variable $name to: $name = stripslashes($_POST['name']); I hope

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-03 Thread Ashley Sheridan
On Sat, 2010-07-03 at 09:01 +0200, Alexandre Simon wrote: Hello, multiple things: - escape your values: 1. if some of the user input contains '\'' for instance, your query is not well formed 2. if some evil user want to do anything with your DB, he can do it = See

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-03 Thread Ashley Sheridan
].','.$field[6].');); ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin ** 2010/7/3 Ashley Sheridan a...@ashleysheridan.co.uk

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 #8743 (= and;) or #8744; (= or;) in

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-03 Thread Ashley Sheridan
On Sat, 2010-07-03 at 16:11 +0200, Hans Åhlin wrote: Another thing is that I would use != false, so every value but false passes. $objEmploye=new Employe; if ( $objEmploye-insert(array($name,$lastname,$salary,$dui,$afp,$isss,$nit)) == true){ echo 'Saved'; }else{

Re: [PHP]

2010-07-03 Thread Ashley Sheridan
On Sat, 2010-07-03 at 18:58 +0100, te0t3l wrote: Hi, I have a photo gallery and I update it with a XML file like this: $NuevaCol = new SimpleXMLElement(../xml/ . $coleccionXML . '.xml', null, true); $first = $NuevaCol-addChild('coleccion'); $attsNuevaCol = $first-addAttribute('nombre_col',

[PHP] detect a script crash

2010-07-02 Thread Ashley Sheridan
Hi all, Bit of a curve ball here (at least I couldn't find anything on Google yet) but I need a way to be able to detect if a particular php script crashes and generate some form of report from it. Here is the system setup: CentOS system, with the PHP scripts running as CLI called from a bash

Re: [PHP] detect a script crash

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 11:51 +0100, Ashley Sheridan wrote: Hi all, Bit of a curve ball here (at least I couldn't find anything on Google yet) but I need a way to be able to detect if a particular php script crashes and generate some form of report from it. Here is the system setup

RE: [PHP] php processing name vs. id field

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 08:49 -0400, Bob McConnell wrote: From: Ashley Sheridan Not sure if my other email got through earlier. Replacing the name attribute on form fields with the id one is not feasible at all. They don't even behave the same. What would happen if you had two forms

Re: [PHP] SELECT AVG(rating)

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 14:32 -0600, Ben Miller wrote: Hi - I have a MySQL table full of product reviews and I'm trying to select info for only the top 5 rated products. The only way I can figure out how to do it so far is something like: $query1 = mysql_query(SELECT * FROM products);

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 22:05 +, Carlos Sura wrote: Hello, this function does not work for me... And I really don't know what am I doing wrong... Any help?? This function is in a class, and I call it in a form, to create a new user.. $objEmploye=new Employe; if (

RE: [PHP] What's wrong in this function? Does not work for me.

2010-07-02 Thread Ashley Sheridan
On Fri, 2010-07-02 at 23:19 +, Carlos Sura wrote: Hello Ash, No, I don't get an error message, the thing is, my post form, isn't working... I can't post those fields in database when I fill them up in the form... But, I really don't know why... Do you want my form code? all the

Re: [PHP] PHP 5 Configuration

2010-07-01 Thread Ashley Sheridan
On Thu, 2010-07-01 at 19:24 +0100, Gustavo Carrasco wrote: I've been trying to install PHP5 with windows XP, but i had received the next errors: - Error trying to access the local web services Get Object failed. You will need manual configure the web server. - Error trying to access

RE: [PHP] PHP 5 Configuration

2010-07-01 Thread Ashley Sheridan
On Thu, 2010-07-01 at 19:38 +0100, Gustavo Carrasco wrote: Hi, nice to meet you. I had installed Apache, and his service is running good. There's any sequence about how to install this products? or maybe i need to modify some lines in httpd file or php.ini file?

Re: [PHP] NULL Date Entries...

2010-07-01 Thread Ashley Sheridan
On Thu, 2010-07-01 at 14:26 -0700, Don Wieland wrote: In one of my forms, I am building a variable that I can use as an INSERT string. On my form, I have several DATE fields which exist of 3 fields MM - DD - when I build my string it looks like this:

Re: [PHP] NULL Date Entries...

2010-07-01 Thread Ashley Sheridan
On Thu, 2010-07-01 at 23:48 +0200, Peter Lind wrote: On 1 July 2010 23:40, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-07-01 at 14:26 -0700, Don Wieland wrote: In one of my forms, I am building a variable that I can use as an INSERT string. On my form, I have

Re: [PHP] NULL Date Entries...

2010-07-01 Thread Ashley Sheridan
On Thu, 2010-07-01 at 23:56 +0200, Peter Lind wrote: On 1 July 2010 23:50, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-07-01 at 23:48 +0200, Peter Lind wrote: On 1 July 2010 23:40, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2010-07-01 at 14:26 -0700

Re: [PHP] php processing name vs. id field

2010-07-01 Thread Ashley Sheridan
On Thu, 2010-07-01 at 10:19 -0400, Paul M Foster wrote: On Thu, Jul 01, 2010 at 03:40:56PM +0200, Peter Lind wrote: snip Apart from that, html5 is not going to do away with the name attribute. And name is in xhtml1 and html4.01 and there's no mention of it being obsolete, deprecated

Re: [PHP] PHP QPay

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 15:49 +0100, Richard Quadling wrote: On 29 June 2010 15:41, Jay Blanchard jblanch...@pocket.com wrote: [snip] As QPay seems to be an Aussie company, you may need to think a little bigger than just the small market in the USA. [/snip] QPay is a Miami, FL based

Re: [PHP] PHP QPay

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 16:56 +0200, Peter Lind wrote: On 29 June 2010 16:51, Richard Quadling rquadl...@gmail.com wrote: On 29 June 2010 15:50, Daniel P. Brown daniel.br...@parasane.net wrote: On Tue, Jun 29, 2010 at 10:41, Jay Blanchard jblanch...@pocket.com wrote: [snip] As QPay seems

RE: [PHP] PHP QPay

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 11:07 -0500, Jay Blanchard wrote: [snip] Their WHOIS info shows that they don't want you to know who they really are, as well. They use a Portugal-based domain privacy service named Domain Discreet. Their web host is at http://hosting-advantage.com/ and

Re: [PHP] mail command failing

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 10:00 -0700, Mike Wright wrote: Hi all, I'm very puzzled by this. I've been using the php mail command for years but now I can't get it to work and can't figure out how to diagnose the problem. The code below was copied from the manual (addresses changed, etc);

Re: [PHP] Open Source SEO tool

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 13:02 -0400, Jack wrote: Hello All, Does anyone know of an open source tool for SEO that would check your positioning in the search engines and then email a result? Probably something that runs in cron and executes daily weekly etc? Thanks! Jack It

Re: [PHP] mail command failing

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 10:27 -0700, Mike Wright wrote: Ashley Sheridan wrote: On Tue, 2010-06-29 at 10:00 -0700, Mike Wright wrote: Hi all, I'm very puzzled by this. I've been using the php mail command for years but now I can't get it to work and can't figure out how

Re: [PHP] file_get_contents limit

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 16:53 -0300, Jo?o C?ndido de Souza Neto wrote: Ive got a file with only one line 21917 characters long but when I read this file using $varData = file_get_contents(file.txt) it gets only 21504 characters. Anyone would know why does it happen? Thanks in advance.

Re: [PHP] file_get_contents limit

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 17:02 -0300, Jo?o C?ndido de Souza Neto wrote: The characters are stripped off of the end of the file after that point. -- Joo Cndido de Souza Neto Ashley Sheridan a...@ashleysheridan.co.uk escreveu na mensagem news:1277841481.2253.39.ca...@localhost... On Tue

Re: [PHP] file_get_contents limit

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 16:37 -0400, Andrew Ballard wrote: On Tue, Jun 29, 2010 at 4:21 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-06-29 at 17:02 -0300, Jo?o C?ndido de Souza Neto wrote: The characters are stripped off of the end of the file after that point

Re: [PHP] Array form processing

2010-06-29 Thread Ashley Sheridan
On Tue, 2010-06-29 at 16:54 -0400, Ron Piggott wrote: I am trying to process a form where the user uses checkboxes: input type=checkbox name=painDesc[] value=1 /Sharp input type=checkbox name=painDesc[] value=2 /Stabbing input type=checkbox name=painDesc[] value=3 /Jabbing When I do:

Re: [PHP] Attachment to email from form.

2010-06-28 Thread Ashley Sheridan
On Mon, 2010-06-28 at 09:58 -0400, Andrew Ballard wrote: On Mon, Jun 28, 2010 at 8:53 AM, Richard Quadling rquadl...@gmail.com wrote: On 28 June 2010 13:44, Brandon Rampersad brandon.add...@gmail.com wrote: f**k no Enlightened criticism aside, why not? Or rather (as I'm willing to adapt)

Re: [PHP] Attachment to email from form.

2010-06-28 Thread Ashley Sheridan
On Mon, 2010-06-28 at 12:06 -0400, Paul M Foster wrote: On Mon, Jun 28, 2010 at 09:25:46AM -0400, Paul M Foster wrote: On Mon, Jun 28, 2010 at 01:53:47PM +0100, Richard Quadling wrote: On 28 June 2010 13:44, Brandon Rampersad brandon.add...@gmail.com wrote: fuck no On Mon,

RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Ashley Sheridan
On Sun, 2010-06-27 at 12:11 -0400, Alice Wei wrote: Date: Sun, 27 Jun 2010 12:01:50 -0400 To: aj...@alumni.iu.edu; php-general@lists.php.net From: tedd.sperl...@gmail.com Subject: Re: [PHP] Modifying Existing Text File From PHP Is Not Working At 7:20 AM -0400 6/27/10, Alice Wei

RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Ashley Sheridan
On Sun, 2010-06-27 at 12:23 -0400, Alice Wei wrote: Subject: RE: [PHP] Modifying Existing Text File From PHP Is Not Working From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: tedd.sperl...@gmail.com; php-general@lists.php.net Date: Sun, 27 Jun 2010 17:16:04 +0100

Re: [PHP] Attachment to email from form.

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 09:51 -0400, Gary wrote: I am trying to have an attachment to an email from a form. Email is working fine, am unable to get attachment. The attachment will be a word.doc. I am getting error message Warning: file_get_contents(attachment.zip)

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: Hi, I'm making a Facebook application that can generate images to user's albums. To publish a story a thumbnail of this image is stored on my server. Since this server currently is very limited I want to be able to clean these

Re: [PHP] Website content question CMS

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 14:00 -0400, Ernie Kemp wrote: Need a some help from the group. I’m adding some wordpress template programs to my site. I added a contact page “contact.php” to wordpress on my site. http://digitalbiz4u.com/wordpress/ When I click the

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: On 25 June 2010 19:35, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote: Hi, I'm making a Facebook application that can generate images to user's albums. To publish a story

Re: [PHP] Using fopen or SQL to check image

2010-06-25 Thread Ashley Sheridan
On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote: On 25 June 2010 20:59, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote: On 25 June 2010 19:35, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-06-25 at 19:31 +0200

Re: [PHP] Quick session question

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 16:24 +0200, Danny wrote: Hi guys, I always start new projects with the following session code-snippet: (In other words this is how I initialize my sessions in the index.php file.) ### START CODE SNIPPET

Re: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 11:22 -0700, Michael Calkins wrote: This is very straight forward, if password a and b are not equal to each other, how can I let the user know that with out losing all of the entered information on the registration form? I was trying this: ---$p1 = input

Re: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 14:29 -0400, Floyd Resler wrote: On Jun 24, 2010, at 2:22 PM, Michael Calkins wrote: This is very straight forward, if password a and b are not equal to each other, how can I let the user know that with out losing all of the entered information on the

RE: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 20:37 +0200, David Česal wrote: Yes, it is. D -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Thursday, June 24, 2010 8:32 PM To: Floyd Resler Cc: PHP Subject: Re: [PHP] Making a Password Confirmation in PHP On Thu

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