Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Phpster
I think there is a lot to be gained from using a framework. I have an extremely large web app in asp ( over 1500 pages ) and maintenance is a frigging nightmare as it's so imtertwined. Using the code ignitor framework reduces that dramatically and I now have 5 rules based classes that

Re: [PHP] retrieve result of a query

2008-12-28 Thread Phpster
Ajax is what you need to look at. JS can certainly accept the data being posted back from the server. Bastien Sent from my iPod On Dec 28, 2008, at 9:32 AM, Alain Roger raf.n...@gmail.com wrote: Hi, basically i have a php file with several parameter received in GET or POST. this PHP

Re: [PHP] Architecture patterns in PHP

2008-12-28 Thread Phpster
The pup architect framework Book on zend also has excellent detail on the mvc pattern Bastien Sent from my iPod On Dec 28, 2008, at 5:38 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Sun, Dec 28, 2008 at 3:29 PM, Michael C. Yates quw...@gmail.com wrote: Nathan Nobbe wrote:

Re: [PHP] mysql question

2008-12-29 Thread Phpster
The mysql forum is the best place. Note that their holiday schedule may mean some lag in getting answers. Bastien Sent from my iPod On Dec 29, 2008, at 7:51 AM, ann kok oiyan...@yahoo.ca wrote: Hi all Do you know any websites for mysql question? I do submit the mysql forum but I would

Re: [PHP] Is MD5 still considered safe for storing application user passwords?

2008-12-30 Thread Phpster
I would guess that a properly salted hash would still be safe enough for most sites. Just a hash of the password is not enough as there are readily available hash tables where you can look up the password just by supplying the hash. Sha-1 is a better alternative for hashing but I would

Re: [PHP] Encryption/decryption of PHP data

2008-12-31 Thread Phpster
In reading the license I believe it refers to the gnupg itself, not the application it may be embedded in. You are completely free to use gnupg as you choose including modifying it to meet your needs. Bastien Sent from my iPod On Dec 30, 2008, at 10:50 PM, Edward Diener

Re: [PHP] IE Problem Detecting Post Variables

2008-12-31 Thread Phpster
Try checking to see if the value was passed with var_dump($_REQUEST) Also try (!empty($_REQUEST['style'])) Bastien Sent from my iPod On Dec 31, 2008, at 10:24 AM, L. Herbert lherb...@iluvmydesign.com wrote: Hello all, Anyone have insight to share on the following issue: I have a

Re: [PHP] IE Problem Detecting Post Variables

2009-01-01 Thread Phpster
to the current page. The theme switcher script is at the top of each page and intercepts the posted variables. Any thoughts? On Dec 31, 2008, at 11:02 AM, Phpster wrote: Try checking to see if the value was passed with var_dump($_REQUEST) Also try (!empty($_REQUEST['style'])) Bastien

Re: [PHP] Number Punctuator

2009-01-03 Thread Phpster
Number_format() Bastien Sent from my iPod On Jan 3, 2009, at 10:47 AM, Alec Wright ale...@gmail.com wrote: Hey all, is there a php function to punctuate a number? eg 3482957239525 would become 3,482,957,239,525 and 274018 would become 274,018 etc Thanks :) -- PHP General Mailing List

Re: [PHP] setting up FTP account names via PHP

2009-01-05 Thread Phpster
What about just using an http upload? Bastien Sent from my iPod On Jan 5, 2009, at 9:55 AM, Merlin Morgenstern merli...@fastmail.fm wrote: Yes, it would be great if he could use the already existing username and password. It should not be a one time password. I am just now looking into

Re: [PHP] Re: hello

2009-01-09 Thread Phpster
-12C in Toronto Greets from sunny Ontario Bastien Sent from my iPod On Jan 9, 2009, at 5:19 PM, Simon J Welsh si...@welsh.co.nz wrote: On 10/01/2009, at 10:21 AM, Daniel Brown wrote: On Fri, Jan 9, 2009 at 16:16, Robert Cummings rob...@interjinn.com wrote: We're at -13C right now

Re: [PHP] Convert CMYK values to RGB values?

2009-01-09 Thread Phpster
I found a function on phpbuilder.com but can't copy it on the iPod keyboard. I did a google on php rbg to cmyk value Bastien Sent from my iPod On Jan 9, 2009, at 6:43 PM, Brian Dunning br...@briandunning.com wrote: I think your short answer is the right one. This explains why I didn't

Re: [PHP] Apache File Quesiton

2009-01-09 Thread Phpster
Check the httpd.conf file for the location of the web dir. It's the documentroot directive Bastien Sent from my iPod On Jan 9, 2009, at 9:13 PM, Gary gwp...@ptd.net wrote: Not sure how to word this, but I have just installed the XAMMP package with Apache, PHP for the purpose of having a

Re: [PHP] Editing in a text area field

2009-01-10 Thread Phpster
That can and should be done with a simple str_replace() on the display portion of the code. Bastien Sent from my iPod On Jan 10, 2009, at 5:01 PM, Stephen stephe...@rogers.com wrote: c...@l-i-e.com wrote: Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/

Re: [PHP] Unique Object Instance ID..?

2009-01-10 Thread Phpster
Unique()? Bastien Sent from my iPod On Jan 10, 2009, at 6:31 PM, Nathan Rixham nrix...@gmail.com wrote: Evening All, Not too often I ask a question here, but here goes; I'm making an Object class which all of my other classes extend, and I need each instance to have it's own unique id,

Re: [PHP] Suggestions?

2009-01-13 Thread Phpster
I have a fiscal calendar table that I use for the same thing, storing the date, day of the week and a column indicating whether the day is a weekday, a weekend or a holiday. This allows me flexibility to also use the table to set business shutdowns as a holiday. A simple date query can

Re: [PHP] PHP, Smarty, and Text

2009-01-13 Thread Phpster
What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13, 2009, at 9:49 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, I've been using PHP and Smarty for

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Phpster
Only allow a few markup tags, strip_tags() allows a limited lIst to be kept Bastien Sent from my iPod On Jan 13, 2009, at 11:18 PM, Daniel Kolbo kolb0...@umn.edu wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Phpster
For what it's worth, you are on my good guys list. Coming. From a Dba background I am in the camp of everything is a trade off. Ease of use for speed, functionality for complexity and so on. My two cents: zend has an advantage because you can use the bits and pieces without the need to

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Phpster
Core files are what my plans include too. Bastien Sent from my iPod On Jan 14, 2009, at 9:26 PM, Kyle Terry k...@kyleterry.com wrote: On Wed, Jan 14, 2009 at 6:17 PM, Paul M Foster pa...@quillandmouse.com wrote: On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote: Not to

Re: [PHP] how to display new icon for news posted within 2 days?

2009-01-14 Thread Phpster
Make it easy and store the date as a unix timestamp. Then it's a simple testto do If ((current timestamp - db timestamp) 172,800 ){ echo 'img src='new.gif''; } Conversely, you can use strtotime() to convert the date. Bastien Sent from my iPod On Jan 14, 2009, at 10:36 PM, paragasu

Re: [PHP] how to display new icon for news posted within 2 days?

2009-01-15 Thread Phpster
/09, Phpster phps...@gmail.com wrote: Make it easy and store the date as a unix timestamp. Then it's a simple testto do If ((current timestamp - db timestamp) 172,800 ){ echo 'img src='new.gif''; } Conversely, you can use strtotime() to convert the date. Bastien Sent from my iPod On Jan

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Phpster
On Jan 15, 2009, at 10:19 AM, Boyd, Todd M. tmbo...@ccis.edu wrote: -Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Wednesday, January 14, 2009 8:18 PM To: php-general@lists.php.net Subject: Re: [PHP] Zend Framework...where to start? -- don't. ---8---

Re: [PHP] Project management systems

2009-01-18 Thread Phpster
There are a number on sourceforge.net that are worth looking at Bastien Sent from my iPod On Jan 18, 2009, at 9:43 AM, Skip Evans s...@bigskypenguin.com wrote: Hey all (except Tony), I've been using dotProject for a few years now and have been quite happy with it, and have written my own

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-25 Thread Phpster
Dunno if it's a best practice, but I store all the translations in the db for easy manipulation and extraction to a file for others to translate. That obviously involves both import and export utilities. At work we to the translation in real time thru a render page that combined the data

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Phpster
Sorry guys, I meant that the current application database is not configured for utf-8 Bastien Sent from my iPod On Jan 27, 2009, at 6:04, Per Jessen p...@computer.org wrote: Jan Kaštánek wrote: Per Jessen: The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. It

Re: [PHP] Session won't pick up one variable

2009-01-30 Thread Phpster
You can set it where you are attempting to, but you need to have the sesion_start(); at the top of the file Bastien Sent from my iPod On Jan 30, 2009, at 17:20, Terion Miller webdev.ter...@gmail.com wrote: Think I'm setting this in the wrong place...someone help ...where do I set the

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Phpster
Show your code, but it sounds like maybe the HTML flag is not set. Consider using a class like phpmailer or the mime mail class from phpclasses.org Bastien Sent from my iPod On Feb 4, 2009, at 6:28, Bulend Kolay bma...@ihlas.net.tr wrote: I use php-5.2.6 and apache2.2.x on opensuse11 I

Re: [PHP] Clarity needed

2009-02-04 Thread Phpster
Yep, 3 tables is the way to go! One for tutors, one for courses and one to join them Bastien Sent from my iPod On Feb 4, 2009, at 17:24, tedd t...@sperling.com wrote: Hi gang: I need some fog removed. I have a problem where I have an unlimited number of tutors teaching an unlimited

Re: [PHP] PHP pop-up windows

2009-02-04 Thread Phpster
Forget using the two windows and avoid the cross window communication by using a couple of divs and Ajax. Bastien Sent from my iPod On Feb 4, 2009, at 20:22, Clancy clanc...@cybec.com.au wrote: I'm working on a website editor, primarily for my own use. Normally it will be used on my own

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Phpster
Asp(.net) has no real problems connecting to mysql. But it's slower than php. Bastien Sent from my iPod On Feb 5, 2009, at 16:39, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2009-02-05 at 16:19 -0500, Robert Cummings wrote: On Thu, 2009-02-05 at 21:03 +, Nathan Rixham

Re: [PHP] Question about version control.. sorta..

2009-02-05 Thread Phpster
My two cents, It's not bad, but you need to be aware of collisions. We set it up with a folder for each developer and it contains the main application code. The upside is that we each have our own code base so we don't affect each other when cutting new code. The downside is that we can

Re: [PHP] Pausing PHP scripts

2009-02-06 Thread Phpster
Sleep(20); will pause it for 20 secs Bastien Sent from my iPod On Feb 6, 2009, at 0:37, Ron Piggott ron@actsministries.org wrote: Is there a way to pause a PHP script while it is executing? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Read a XML (not a file)

2009-02-06 Thread Phpster
On Feb 6, 2009, at 9:12, Jônatas Zechim zechim@gmail.com wrote: Hi there, i want do read a XML like this: Server.php ?php header (content-type: text/xml); echo ?xml version=\1.0\ encoding=\iso-5718\ ? images image ID1/ID albumtestealbum path/images/teste.jpg/path /image /images;

Re: [PHP] Clarity needed OT

2009-02-06 Thread Phpster
And the pentagon was not hit by a jumbo jet. check the photos and ask yourself 'where are the wings'? Sorry couldn't resist after the conspiracy comment :-P Bastien Sent from my iPod On Feb 6, 2009, at 19:37, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-02-06 at 13:13

Re: [PHP] Using DLL with PHP

2009-02-06 Thread Phpster
Check out the com [www.php.net/com] functionality Bastien Sent from my iPod On Feb 6, 2009, at 15:58, Dan Shirah mrsqua...@gmail.com wrote: Howdy, I'm looking for a little guidance here. I'm trying to re-write a VB function in PHP. This is the function I'm working with: Private Declare

Re: [PHP] Session variables

2009-02-06 Thread Phpster
A Session is stored on the user browser in a session ( in memory cookie) and on the server as a file. The session mgmt tools will read the file as needed. Bastien Sent from my iPod On Feb 7, 2009, at 1:58, Paul M Foster pa...@quillandmouse.com wrote: I'm not too clear on HTTP headers,

Re: [PHP] Re: Some kind of Popup

2009-02-07 Thread Phpster
No, it's a generic solution, should be pretty much the same across browsers. Why not download more browsers and test? I would also add a window.focus() to the body tag in the popup to bring the window back on top when the user reclocks the link body onload='window.focus();' Bastien Sent

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-11 Thread Phpster
If you're not Dutch you're not much! Holland rocks! From a fellow dutchie, Bastien Sent from my iPod On Mar 11, 2009, at 4:47, Anton Heuschen anto...@gmail.com wrote: Thanks Thijs. My Father is from the Netherlands, but I wont try it all in Dutch myself... Ok slowly but surely and with

Re: [PHP] Problem with passing and Area in a $_POST

2009-03-15 Thread Phpster
I don't think that fieldorder needs to be an array. I don't see you using it as a multiselect. Does this field occur multiple times on the form? Bastien Sent from my iPod On Mar 15, 2009, at 11:56, Richard Kurth richardku...@centurytel.net wrote: Shawn McKenzie wrote: tedd wrote:

Re: [PHP] Frameworks Which Have A Bake Function?

2009-03-22 Thread Phpster
Qcodo and symfony both have an ORM layer that can do that. They will provide/return and basic set of classes that interact with those tables. Bastien Sent from my iPod On Mar 22, 2009, at 11:52, Nitsan Bin-Nun nit...@binnun.co.il wrote: Hi Guys, I have been using cakephp for a while as a

Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Phpster
Sorry for top posting, but here goes... Stopping third party js from running on the client will never happen. If so, you just killed your servers thru put in attempting to handle things like google maps, google analytics and other fun things coming out of companies like that ( google, zoho

Re: [PHP] Problem with header();

2009-03-30 Thread Phpster
Output buffering turned off? Bastien Sent from my iPod On Mar 30, 2009, at 15:03, Igor Escobar titiolin...@gmail.com wrote: Hi guys, probably everybody goes think: its the same problem ever HTML before header() functions ... but it is not. I has working on a project and this are a

Re: [PHP] Re: PHP task manager

2009-03-31 Thread Phpster
Zoho's project tool looks pretty good. Www.zoho.com Bastien Sent from my iPod On Mar 31, 2009, at 18:20, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and George Larson at 31/03/09 20:31 did gyre and gimble: We've got a homebrew ToDo list (task project) manager / mailer that

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Phpster
What about styling a link to look like a button with css? It won't be an exact match style wise but you can get close. I have done this succesfully Bastien Sent from my iPod On Apr 2, 2009, at 6:04, Angus Mann angusm...@pobox.com wrote: Hi all. I want to have several delete buttons with

Re: [PHP] Oracle's dump to MySQL

2009-04-03 Thread Phpster
Extract to csv/XML? Bastien Sent from my iPod On Apr 3, 2009, at 5:10, 9el le...@phpxperts.net wrote: On Fri, Apr 3, 2009 at 3:47 AM, Chris dmag...@gmail.com wrote: 9el wrote: I found this command from one guy for importing Oracle's dump to MySQL Shell mysql -uroot db_name -vvf

Re: [PHP] problem with PHP simplexml and doxygen generated XML

2009-04-03 Thread Phpster
On Apr 3, 2009, at 17:52, hessi...@hessiess.com wrote: I have bean trying to right a PHP script to generate XHTML code from the class documentation xml files created by Doxygen(the HTML it outputs is invalid, messy and virtually imposable to integrate into another web page). One thing has

Re: [PHP] AJAX with POST

2009-04-04 Thread Phpster
On Apr 4, 2009, at 17:30, Skip Evans s...@bigskypenguin.com wrote: Hey all, At the risk of being told this is a PHP and not a JS list, but also knowing the discussions on this list, to the benefit of all I believe, very wildly, I'm posting this JS code snippet for some advice. As I

Re: [PHP] ms-word reading from PHP on linux O.S

2009-04-04 Thread Phpster
On Apr 4, 2009, at 15:19, 9el le...@phpxperts.net wrote: On Tue, Feb 24, 2009 at 1:38 PM, Per Jessen p...@computer.org wrote: Srinivasa Rao D wrote: Hi all, * How better, i can read ms-word doc files from PHP on LINUX OS*. [snip] *Is there are any other softwares that can

Re: [PHP] Submitting URLs in IE

2009-04-04 Thread Phpster
On Apr 4, 2009, at 14:07, Skip Evans s...@bigskypenguin.com wrote: Hey all, I have an application that uses AJAX to submit a page created in the FCKeditor. It builds a URL and then submits that to the server with a JavaScript call like this: req.open('GET', url, false); In Firefox it

Re: [PHP] AJAX with POST

2009-04-04 Thread Phpster
parse the URL down in the function and build a proper post transaction, but my real problem is IE can't submit, apparently, more than 2K through a GET. Do you know if POST can handle more? Thanks tons for your reply! Skip PS. I'd very interested in seeing your set of functions. Phpster

Re: [PHP] RE: AJAX with POST

2009-04-04 Thread Phpster
Ajax can be both async and sync. Itsbthe fourth param in the open call and I believe by default it's a sync call not async Bastien Sent from my iPod On Apr 4, 2009, at 21:33, Skip Evans s...@bigskypenguin.com wrote: But my function using GET does seem to wait. Granted I cobbled it

Re: [PHP] RE: AJAX with POST

2009-04-05 Thread Phpster
On Apr 4, 2009, at 21:33, Skip Evans s...@bigskypenguin.com wrote: But my function using GET does seem to wait. Granted I cobbled it together from various samples and didn't author it from my own deep understanding of the exact process, but here's the snippet that does the real work.

Re: [PHP] Possible Server Infection?

2009-04-05 Thread Phpster
On Apr 4, 2009, at 21:51, TG tg-...@gryffyndevelopment.com wrote: Had to deal with a rogue PHP based backdoor situation recently. Two remote management scripts were installed somehow that would allow you to do something like what you describe. You probably want to download a fresh copy of

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Phpster
Misk.com is also good at $10/ yep Bastien Sent from my iPod On Apr 6, 2009, at 23:57, Michael Kubler mdk...@gmail.com wrote: DO NOT USE GO-DADDY. Sorry, just had to say that Go-Daddy will cause all sorts of issues when your domain expires, or if you check for a domain but don't purchase

Re: [PHP] PHP and Send Mail

2009-04-08 Thread Phpster
And not one RTFM? Bastien Sent from my iPod On Apr 8, 2009, at 20:58, Chris dmag...@gmail.com wrote: Alejandro Esteban Galvez wrote: Hi!, I am making a web system and i need known how send a mail using PHP http://www.php.net/manual/en/function.mail.php -- Postgresql php tutorials

Re: [PHP] A Tool For Building PHP Web Apps

2009-04-10 Thread Phpster
Roadsend is very beta when I last checked and while promising seemed to be geared more towards taking php and moving it to the desktop without using gtk. I could see the uses but I think adobe air fits that model better with less to worry about. Personally, I am leaning more and more

Re: [PHP] Re: unknown number of inputs

2009-04-10 Thread Phpster
On Apr 10, 2009, at 12:44, Al n...@ridersite.org wrote: PJ wrote: I have a script with $_POST and form to load data with text input. Situation: enter name of author(s) for book. I have the script set up to enter first_name, last_name for Author1 and the same for Author 2. Check if entry

Re: [PHP] Re: unknown number of inputs

2009-04-10 Thread Phpster
On Apr 10, 2009, at 15:21, Al n...@ridersite.org wrote: Phpster wrote: On Apr 10, 2009, at 12:44, Al n...@ridersite.org wrote: PJ wrote: I have a script with $_POST and form to load data with text input. Situation: enter name of author(s) for book. I have the script set up to enter

Re: [PHP] Random php

2009-04-11 Thread Phpster
On Apr 11, 2009, at 10:12, Gary gwp...@ptd.net wrote: Is there a way to have a php include called ramdomly? For example, I have an area that I am using to show various quotes and I would like the quotes to be ramdom. Thanks for your help Gary -- PHP General Mailing List

Re: [PHP] pear mdb2 and null

2009-04-12 Thread Phpster
On Apr 11, 2009, at 21:38, Michael A. Peters mpet...@mac.com wrote: I've run into a small issue with mdb2. I have a mysql database with a field set to longtext not null. inserting into that field works just dandy when using the mysql_ functions. However, when using mdb2 - it converts

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread Phpster
$_GET when the form uses get or parameters are passed via the querystring $_POST when the form method is post $_REQUEST does both Bastien Sent from my iPod On Apr 12, 2009, at 10:23, Ron Piggott ron@actsministries.org wrote: How do I know when to use $_GET verses $_POST? Is there

Re: [PHP] $_GET verses $_POST

2009-04-12 Thread Phpster
There are no real security issues with the $_REQUEST object. What needs to be taken into consideration is that the order that the PHP engine gathers data from the system ( GPCS ) and the potential issues having cookies or session data named the same as the actual data you are trying to

Re: [PHP] pup

2009-04-17 Thread Phpster
On Apr 17, 2009, at 1:06, ramesh.marimu...@wipro.com wrote: Thanks Jim. Is there a way to get the value of that unchecked box? -rummy -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, April 17, 2009 10:35 AM To: Ramesh Marimuthu (WT01 - Telecom Equipment)

Re: [PHP] Help me debug this

2009-04-20 Thread Phpster
On Apr 20, 2009, at 17:23, Patrick Moloney webpa...@gmail.com wrote: Some months ago I downloaded and installed Apache, PHP and MySql. With only light use they seem to be working. I have downloaded a Test Script from the VBulletin vendor that is supposed to determine if your setup could

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-21 Thread Phpster
On Apr 21, 2009, at 20:32, Edward Diener el...@tropicsoft.com wrote: I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an ATT address, such as my own as an ATT ISP customer, the mail never gets to me. If the 'to' address is anything other than an

Re: [PHP] Expression Engine

2009-04-24 Thread Phpster
On Apr 24, 2009, at 18:06, Skip Evans s...@bigskypenguin.com wrote: Hey all, Anyone have any experience with Expression Engine? I have a new client that wants me to use it to build a site and I must say I am rather underwhelmed. But I happen to be one of those people that believe in

Re: [PHP] I need ideas for things to code

2009-04-24 Thread Phpster
On Apr 24, 2009, at 19:00, Andrew Hucks andrewphpm...@gmail.com wrote: I've been coding PHP for about a year, and I'm running out of things to code that force me to learn new things. If you have any suggestions, I'd greatly appreciate it. What have you coded? How about a chat app? How

Re: [PHP] Change color of anything in double/single quotes

2009-04-25 Thread Phpster
On Apr 25, 2009, at 13:40, Andrew Hucks andrewphpm...@gmail.com wrote: If I have something like $string = 'hello there'; (the word hello is in double quotes, if you can't see it), how would I output it as something like font color=colorhello/font there. -- PHP General Mailing List

Re: RES: [PHP] inexplicable behaviour

2009-04-26 Thread Phpster
What parameters are you pasing in the link? That will be the telling point of what you are doing wrong. You could pass the search params ( though these are best kept in a session or cookie ) and the offset counter to get the next block of results. Sorry for top posting. Bastien Sent from

Re: [PHP] Re: Generating dynamic PDFs

2009-05-05 Thread Phpster
There are way too many php based options to even waste time with this. Bastien Sent from my iPod On May 5, 2009, at 17:54, O. Lavell olav...@xs4all.nl wrote: Kevin Kaiser wrote: [..] All you have to do is sign up for an API key, upload your document templates and POST data to our server.

Re: RES: [PHP] CURL problems still

2009-05-11 Thread Phpster
On May 11, 2009, at 16:01, Miller, Terion tmil...@springfi.gannett.com wrote: The error I get is from my INSERT statement It does insert the records up to C page though... The problem area: // Build your INSERT statement here $query = INSERT into warrants (wid, name,

Re: RES: [PHP] CURL problems still

2009-05-11 Thread Phpster
On May 11, 2009, at 17:53, Miller, Terion tmil...@springfi.gannett.com wrote: Bastien, could you give me an example of what you mean? would it be $Name = like that? Thanks for the ideas everyone! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Create multipart email

2009-05-28 Thread Phpster
Use phpmailer, makes it simple Bastien Sent from my iPod On May 28, 2009, at 4:47, Guus Ellenkamp ellenkamp_g...@hotmail.com wrote: I'm trying to attach an uploaded file to an e-mail which I receive in Outlook. Neither the first part, nor the second part displays properly. The header

Re: [PHP] mysql_query takes long time...

2009-05-31 Thread Phpster
You can also stack the queries to run multiple rows in one insert Insert into table values (row1col1, row1col2,'row1col3'), (row2col1,row2col2,'row2col3'),...(rowNcol1,rowNcol2,'rowNcol3') Bastien Sent from my iPod On May 31, 2009, at 8:18, דניאל דנון danondan...@gmail.com wrote: I've a

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Phpster
That would be about it, unless you need a fancy GUI with all the bells and whistles Bastien Sent from my iPod On Jun 1, 2009, at 15:35, Tom Worster f...@thefsb.org wrote: assuming one had suitable hardware, what does it cost to start developing for asp? i guess you'd need to buy a copy of

Re: [PHP] PHP Security

2009-06-02 Thread Phpster
H, how about some details on OS, etc Bastien Sent from my iPod On Jun 2, 2009, at 17:26, Grant Peel gp...@thenetnow.com wrote: Hi all, I am currently setting up the next generation web server for our company and am in need of general consulting/advice on php set up security issues.

Re: [PHP] Why doesn't mySQL stop a query when the browser tab is closedL

2009-06-02 Thread Phpster
On Jun 2, 2009, at 21:13, Daevid Vincent dae...@daevid.com wrote: I just noticed a horrible thing. I have a query (report) that can take 15 minutes or more to generate with mySQL. We have 500 Million rows. This used to be done in real time when we had less rows, but recently we got a

Re: [PHP] how to manage permissions for file uploader

2009-06-03 Thread Phpster
This is fairly simple to do as an http upload. With the folder above the web root, it less if an issue since general users can't gain access, a script can do all the interaction needed. Plus you can chown the permissions with php Bastien Sent from my iPod On Jun 3, 2009, at 17:24, Lamp

Re: [PHP] Re: Periodic Actions in PHP?

2009-06-13 Thread Phpster
On Jun 13, 2009, at 9:11, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Parham Doustdar at 13/06/09 09:42 did gyre and gimble: Hi there, I'm going to create a small chat script with PHP. The messages you want others to see will be added to a flat file (I.E. TXT file), and

Re: [PHP] mysql_query blocking

2009-06-27 Thread Phpster
Bastien Sent from my iPod On Jun 27, 2009, at 4:13 PM, Daniel Kolbo kolb0...@umn.edu wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: Hello, When a MySQL table is locked a

Re: [PHP] mysql_query blocking

2009-06-27 Thread Phpster
On Jun 27, 2009, at 7:17 PM, Daniel Kolbo kolb0...@umn.edu wrote: Phpster wrote: Bastien Sent from my iPod On Jun 27, 2009, at 4:13 PM, Daniel Kolbo kolb0...@umn.edu wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: On Sat

Re: [PHP] check a variable after EACH function

2009-06-30 Thread Phpster
On Jun 30, 2009, at 10:48 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Jun 30, 2009 at 06:31:54PM -0500, Flint Million wrote: This might seem silly but here's what I'm trying to do Suppose I have some kind of check variable - say for example $abort_now. Or it could be a

Re: [PHP] Cleaning up automatically when leaving a page

2009-06-30 Thread Phpster
On Jun 30, 2009, at 10:59 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Jun 30, 2009 at 06:38:19PM -0700, Mary Anderson wrote: Hi all, I have a php application for which I have a page which creates temporary junk and puts it into a persistent store (in this case a

Re: [PHP] Select and compare problems still ...

2009-07-01 Thread Phpster
On Jul 1, 2009, at 10:56 AM, Miller, Terion tmil...@springfi.gannett.com wrote: Why doesn't this work? $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress' ; $result = mysql_query($query) or die(mysql_error()); echo $result; $row =

Re: [PHP] is there a way to get more info about *why* the initial (DB PEAR) connect to db is failing?

2009-07-03 Thread Phpster
On Jul 3, 2009, at 7:31 PM, Govinda govinda.webdnat...@gmail.com wrote: my code: require 'DB.php'; // $db=DB::connect('db_program://user:passw...@hostname/database'); if (DB::isError($db)) { die(Can't connect: . $db-getMessage ()); } is returning: Can't connect: DB Error:

Re: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread Phpster
On Jul 9, 2009, at 5:50 PM, Govinda govinda.webdnat...@gmail.com wrote: The atmosphere is weird now so you all may think I am out there. . but this is a sincere question- (and not due to dumb oversight of my HTML code) I have a mysterious f character (Yes, just the letter f )

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Phpster
On Jul 10, 2009, at 5:25 PM, workerho...@studysite.eu workerho...@studysite.eu wrote: first thanks to all who have read ;-) your solution looks like the method how i done it actually, i have tested the last hours the solution with sql lite on application server the Solution: 3

Re: [PHP] MySql Injection advice

2009-07-11 Thread Phpster
On Jul 10, 2009, at 10:12 PM, Haig Dedeyan hdede...@videotron.ca wrote: Hi everyone, I'm starting to experiment with an edit form and I am seeing the following behaviour: $fname = mysql_real_escape_string($fname); $lname = mysql_real_escape_string($lname); $sql = UPDATE phonedir

Re: [PHP] Internal PHP caching methodology

2009-07-16 Thread Phpster
On Jul 16, 2009, at 5:50 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, Call me a dreamer...but I got to ask. Is there any software for helping speed up PHP by utilizing internal PHP caching? I am not talking about the external php cache/header control. Smarty caching doesn't give

Re: [PHP] Back from the dead with a racing question!

2009-07-18 Thread Phpster
On Jul 18, 2009, at 9:45 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-07-17 at 14:01 -0400, Bastien Koert wrote: On Fri, Jul 17, 2009 at 1:54 PM, Jason Pruimja...@jasonpruim.com wrote: On Jul 17, 2009, at 11:56 AM, Bastien Koert wrote: On Fri, Jul 17, 2009 at

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-21 Thread Phpster
On Jul 21, 2009, at 3:12 PM, Guruprasad lgp171...@gmail.com wrote: Hi all, I have a doubt with creating and destroying sessions in PHP using session_destroy(). Supposing there is a PHP-based website hosted on a web server. Now I add another site that I developed using PHP on that web

Re: [PHP] Language translation

2009-07-26 Thread Phpster
On Jul 25, 2009, at 9:37 PM, Skip Evans s...@bigskypenguin.com wrote: Hey all, We got a new project and language translation of content is a major priority. I've googled around and seen lots of options, but I'd like to hear from the list about more real world experiences about what

Re: [PHP] Clean break.

2009-07-31 Thread Phpster
On Jul 31, 2009, at 5:22 PM, Paul Halliday paul.halli...@gmail.com wrote: Whats the cleanest (I have a really ugly) way to break this: [21/Jul/2009:00:00:47 -0300] into: date=21/jul/2009 time=00:00:47 Caveats: 1) if the day is 10 the beginning of the string will look like

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

2009-07-31 Thread Phpster
On Jul 31, 2009, at 5:24 PM, Miller, Terion tmil...@springfi.gannett.com wrote: I'm still struggling with using ranges... Can they be passed to a query somehow... I have this so far but it pulls nothing: //Show all with $letter not between A and Z if ($ $result =

Re: [PHP] file upload question

2009-08-03 Thread Phpster
On Aug 3, 2009, at 7:04 AM, seb sebast...@triponthis.net wrote: Hey all, i am using move_upload function to upload files to the server, but i want to add a feature that will allow files to be archived that have been uploaded already. so, the problem is: i upload a file that i want

Re: [PHP] Re: Buffered Logging?

2009-08-07 Thread Phpster
On Aug 7, 2009, at 9:25 PM, Waynn Lue waynn...@gmail.com wrote: Hey PHPers, We've been doing sampled logging to the database in our application for awhile, and now I'm hoping eventually to blow that out to a larger scale. I'm worried about the performance implications of logging to

Re: [PHP] Notification system

2009-08-07 Thread Phpster
On Aug 2, 2009, at 7:59 AM, Dušan Novaković ndu...@gmail.com wrote: Hi, Does anyone has any idea how to create notification system with combination of php, mysql and javascript. It should be something similar to facebook notification system (when someone make some action it should be

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

2009-08-09 Thread Phpster
On Aug 9, 2009, at 7:43 PM, John Butler govinda.webdnat...@gmail.com wrote: Hi sunday coders, I've been using this kind of logic on one PHP site I work on to display one thing or another depending on whether the form was submitted or not: and it works great on that site. But

Re: [PHP] Sending email w/ attachments

2009-08-11 Thread Phpster
On Aug 10, 2009, at 11:22 PM, Skip Evans s...@bigskypenguin.com wrote: Bastien Koert wrote: Use PHPMailer or one of the other classes available...makes life so much easier eric cartman Kick Ass!!! /eric cartman Yes! Wow! Was that a breeze! That class rocks! Thanks tons, Bastien!

  1   2   >