[PHP] echo or print ?

2007-04-16 Thread Christian Haensel
Good morning fellow coders I've been working with PHP for a little over 5 years now, and it even got me a cute office and a good salary... but even though I can make a living off of it, I am still wondering about a few little things. Whenever I see people put their code up for review, I reali

[PHP] Re: [PHP-DB] Re: Problems when trying to use ibm_db2 extension

2007-04-16 Thread David Mitchell
I'd say that on Windows, when you, or software you install, modifies the PATH environment variable, and a service, like apache, relies on a directory being in the path, you have to restart Windows in order for that service to "see" the new path. In other words, services get the new path only afte

[PHP] Re: Problems when trying to use ibm_db2 extension

2007-04-16 Thread Leo Jokinen
Problem solved: I restarted my computer and after that apache loaded ibm_db2 extension. My conclusion: 1. When you add some extensions to php.ini, you need to restart windows in order to get those extensions available through apache 2. However, those extensions are instantly available if you use

Re: [PHP] Images again

2007-04-16 Thread Børge Holen
On Tuesday 17 April 2007 01:58, Richard Lynch wrote: > On Fri, April 13, 2007 8:02 pm, Børge Holen wrote: > > Before mr lynch starts beating up those already dead and probably long > > since > > burried horses... > > > > Images in a database! > > Feh. > > Read the archives. > > > See I was just won

Re: [PHP] Problems with Curl and POST

2007-04-16 Thread mbneto
Hi Richard, I am using the same script. And it is using the CURLOPT_POST. - mb On 4/16/07, Richard Lynch <[EMAIL PROTECTED]> wrote: HEAD is just like GET, only it gets just the headers (hence the name) usually to see if the document has changed according to LastModified: before doing a full-

Re: [PHP] isset

2007-04-16 Thread Robert Cummings
On Mon, 2007-04-16 at 19:05 -0500, Richard Lynch wrote: > On Mon, April 16, 2007 6:10 pm, Jochem Maas wrote: > > if I know it's an array I'll definitely use empty() over count() > > count() needs to actually count the items where as empty() can return > > false > > as soon as it finds a singel

RE: [PHP] Dreamhost! PHP as CGI!???

2007-04-16 Thread Richard Lynch
On Fri, April 13, 2007 7:15 pm, Buesching, Logan J wrote: > You can't really do `php -v` on the command line, unless you know > which > php you are using. If you have several installations of PHP, then > doing > `php -v` will just get you the version of PHP for which is loaded > first > from your

Re: [PHP] Dreamhost! PHP as CGI!???

2007-04-16 Thread Richard Lynch
On Fri, April 13, 2007 5:48 pm, Micky Hulse wrote: >> Actually, dreamhost is only the primary, and there's a fail-safe >> roll-over to another box if dreamhost goes down. (again) > > Ahhh, hehe. Good call on the backup server. I have never built a > big > enough site to where I needed a backup

Re: [PHP] Re: WYSIWYG vs. the 'power-user'

2007-04-16 Thread Richard Lynch
On Fri, April 13, 2007 7:29 pm, Børge Holen wrote: > On Thursday 12 April 2007 18:18, Chetan Graham wrote: >> To set the record straight for both camps, in the web apps that come >> to me >> I simply do the PHP, javascript, etc. The files come to me already >> PhotoShopped and Dreamweaed. > >

RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-16 Thread Richard Lynch
On Fri, April 13, 2007 8:14 pm, Robert Cummings wrote: >> > peacepipe in one hand, broadsword in the other - lets hack on :-) >> >> ***BIG SMILE*** > > And WHAT are you smiling at??? Staves beat peacepipes and broadswords > anyday! Maybe he's smiling because of what's IN his peacepipe... :-) That

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 9:35 am, tedd wrote: > For example, we all use pint_r() to show us what values our variables > hold -- it helps in debugging. The same goes for css, try using the > rule "border: 1px solid red;" the next time you're wondering about > why something isn't placed where you want

RE: [PHP] how to get var name and value from function?

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 12:10 pm, Ford, Mike wrote: > No, not "just another array" (although I agree about the function > being pretty useless!) -- $GLOBALS is a superglobal array that > contains a reference to every variable defined in the global scope, so > that accessing $GLOBALS['var'] from anyw

Re: [PHP] how to get var name and value from function?

2007-04-16 Thread Richard Lynch
On Fri, April 13, 2007 7:49 pm, Afan Pasalic wrote: > I have to assign value of an array to variable named after key of the > array several times in my project to , e.g. after I submit a form with > personal info I have > $_POST['name'] = 'john doe'; > $_POST['address'] = '123 main st.'; > $_POST['

Re: [PHP] isset

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 6:10 pm, Jochem Maas wrote: > if I know it's an array I'll definitely use empty() over count() > count() needs to actually count the items where as empty() can return > false > as soon as it finds a singel element ... maybe I'm mistaken - if so > please > put me right.

Re: [PHP] Images again

2007-04-16 Thread Richard Lynch
On Fri, April 13, 2007 8:02 pm, Børge Holen wrote: > Before mr lynch starts beating up those already dead and probably long > since > burried horses... > > Images in a database! Feh. Read the archives. > See I was just wondering, and that at times leads to late nights > I used to read the images

Re: [PHP] Json.php

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 10:20 am, Tijnema ! wrote: > And btw, I think it's better not to create a new link to the class > each time the function is called, but just use :: > if (!function_exists('json_encode')) { >function json_encode($data) { >return Services_JSON::encode($d

Re: [PHP] isset

2007-04-16 Thread Al
I've been using empty() for about 5 years, obeying the rules for empty() in the php manual "Appendix P. PHP type comparison tables" and have never seen it generate any type of error message. If you guys know of at least one exception, please clue us in on it. Jim Lucas wrote: Stut wrote: te

Re: [PHP] Json.php

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 9:33 am, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-04-16 14:03:55 +0200: >> Jochem Maas wrote: >> > >> >that's going to make it completely impossible to use then isn't it. >> >no way you could possibly wrap the class/objects functionality in a >> wrapper >> >functio

Re: [PHP] Json.php

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 3:11 am, Otto Wyss wrote: > I've seen a json.php file somewhere in a project for cases where the > json module isn't installed (e.g. PHP4), yet I can't find that project > again. Is there an official or unofficial download site for json.php? > > Why isn't this available in th

Re: [PHP] Problems installing php with pdflib

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 3:55 am, Merlin wrote: > I am moving to a new box and want to install php with pdflib again. > After configure I get an error saying: > pdflib.h not found! Check the path passed to --with-pdflib > > The path is just fine: > '--with-pdflib=/usr/local/lib' configure needs to f

Re: [PHP] warning message to hide

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 12:12 pm, Tijnema ! wrote: >> try putting an @ sign before this line. something like this: >> @$conn = pg_connect($conn_string); > > According to the manual: > http://www.php.net/manual/en/language.operators.errorcontrol.php > the @ should be placed before the function, so li

Re: [PHP] warning message to hide

2007-04-16 Thread Richard Lynch
Short-term, you can toss an @ in front of pg_eonnect. Long-term: http://php.net/set_error_handler Also check out ini_set for error_log and friends. After you've done it the Right Way, get rid of the @ On Sat, April 14, 2007 8:44 am, Alain Roger wrote: > Hi, > > Today i discovered that when my ho

Re: [PHP] Protecting individual files/dirs from access

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 10:47 am, tedd wrote: > At 4:56 PM -0500 4/13/07, Richard Lynch wrote: >>Put the files outside the webtree, and have a PHP script that >> controls >>access and is your gate-keeper. > > Richard: > > How secure is this: I can't answer that question definitely just looking from

Re: [PHP] isset

2007-04-16 Thread Jochem Maas
Richard Lynch wrote: > On Mon, April 16, 2007 5:35 pm, Tim Earl wrote: >> What about in the following context? >> >> $arr = array(); >> If (!empty($arr)) { } >> >> This is where i have found it to be the most usefull... > > If I'm already certain that it's an array, I just use 'count' personally.

RE: [PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 12:14 pm, Jay Blanchard wrote: > [snip] > web 2.0 > [/snip] > > There is a new web? Do you have an example of the shiny floor? Does it > look like the one in my kitchen or one of those old Java water > effects? Actually, I just saw a comment on some blog that Web 2.0 is alre

Re: [PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 12:06 pm, Graham Anderson wrote: > Has anyone created that web 2.0 "shiny floor" effect with the GD > Library? > I have seen it dynamically created by passing variables into a Flash > movie. Has this been done with GD? I think you're going to have to provide some sample im

Re: [PHP] isset

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 11:18 am, Jim Lucas wrote: > these two lines are not the same infact, with the first, you will not > get a E_NOTICE warning, but > with the second you will. I dunno what you are thinking of, but the manual says: "empty() is the opposite of (boolean) var, except that no warn

RE: [PHP] isset

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 5:35 pm, Tim Earl wrote: > What about in the following context? > > $arr = array(); > If (!empty($arr)) { } > > This is where i have found it to be the most usefull... If I'm already certain that it's an array, I just use 'count' personally. 'empty' takes a mixed data type,

Re: [PHP] isset

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 11:12 am, tedd wrote: > I've been accuse of that too, but what's your solution? *MY* solution: Don't use empty because its behaviour changed wrt "0" in various versions, so it's just gonna bite you in the butt like it did me. :-) I generally do this basic algorithm: #1 Us

RE: [PHP] isset

2007-04-16 Thread Tim Earl
> -Message d'origine- > De : Robert Cummings [mailto:[EMAIL PROTECTED] > Envoyé : lundi 16 avril 2007 20:28 > À : Edward Vermillion > Cc : php Lists > Objet : Re: [PHP] isset > > On Mon, 2007-04-16 at 13:16 -0500, Edward Vermillion wrote: > > On Apr 16, 2007, at 12:30 PM, Robert Cummin

Re: [PHP] isset

2007-04-16 Thread Richard Lynch
On Sun, April 15, 2007 12:07 pm, [EMAIL PROTECTED] wrote: > I have E_NOTICE turned off. :) Your first mistake. :-) E_NOTICE on is a royal pain at first, but will catch bugs for you, and save you development time in the long run. Turn it on for your next new project and try it. -- Some people

Re: [PHP] isset

2007-04-16 Thread Richard Lynch
On Sat, April 14, 2007 8:36 pm, Richard Kurth wrote: > What do you do when isset does not work? If I send data in a > $_REQUEST['var'] like > if (isset($_REQUEST['var'])) { > } > Put var has no data it still says it is set. Because $_REQUEST['var'] > = "" > and isset thinks "" is set It *is* set.

Re: [PHP] preg_replace and regular expressions.

2007-04-16 Thread Richard Lynch
http://php.net/preg_replace_all And be sure to use Ungreedy flag to your pattern: /pattern/U On Sat, April 14, 2007 11:22 pm, Travis Moore wrote: > Okay, so what I have is a BB code type of thing for a CMS, which I for > obvious reasons can't allow HTML. > > Here's the snippet of my function: > >

Re: [PHP] secure login

2007-04-16 Thread Richard Lynch
On Sun, April 15, 2007 4:15 am, Ross wrote: > > I am creating a single user secure login based on this: > > http://www.phpnoise.com/tutorials/26/1 For just one user, I'd just tossing in an .htaccess and .htpasswd file, personally, and not bother with page after page of PHP. > Can anyone see any p

Re: [PHP] simple form web site up date

2007-04-16 Thread Richard Lynch
See PHP manual section titled "Handling File Uploads" On Sun, April 15, 2007 1:56 pm, Joker7 wrote: > I have said I would host a couple of friends CV's as a web page,here's > the > situation I'd like to set it up so that it can updated it via a simple > form.I've googled the subject a fair bit a

Re: [PHP] Appending into associative arrays

2007-04-16 Thread Richard Lynch
On Sun, April 15, 2007 2:20 pm, Otto Wyss wrote: > I want to sort directories according there modification time and > thought > accociative arrays would be perfect. But when I add an element like > > $dirs = array (filemtime($d) => $d) > > the previous ones are lost. I tried array_push but that doe

Re: [PHP] auto page generation

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 12:31 am, Jeremy Adams wrote: > I'm building a website right now that will be a database of > attractions in > the Carolina and Virginia area. > The idea is that attraction owners can submit data to the database and > the > database will automatically generate a page containi

Re: [PHP] Problems with Curl and POST

2007-04-16 Thread Richard Lynch
HEAD is just like GET, only it gets just the headers (hence the name) usually to see if the document has changed according to LastModified: before doing a full-blown GET. There shouldn't be a HEAD done before a POST... Are you sure you are doing a CURLOPT_POST and not CURLOPT_GET...? On Mon, Apr

Re: [PHP] Importing data in to mysql with some control

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 12:43 am, Richard Kurth wrote: > I am trying to write a import script for loading data into an existing > mysql > table. I want to show the import data on the screen and let the user > select > the column number to go with which mysql field. Now some of the fields > are > man

Re: [PHP] post via text message?

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 9:14 am, blackwater dev wrote: > I'm working on a site where I need to allow someone to send me a text > message and let the code take their message and respond or post it in > the > db. Can someone point me in the right direction on how this is done? You mean like a cellph

[PHP] Problems with Curl and POST

2007-04-16 Thread mbneto
Hi, I am tring to use curl to access, via POST, a remote 'service'.I've managed to test it fine but when I use real data to feed the curl it gives me strange results. When I check the logs of the remote web server one thing that alarms me is that with test data I see A.B.C.D - - [16/Apr/200

Re: [PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 9:21 am, Leo Jokinen wrote: > Also, phpinfo() won't say nothing that module ibm_db2 is in use Did you re-start Apache? Actually, Windows being Windows, just re-boot the dang thing... You should be used to that. :-) Is the php.ini file named in phpinfo() the one you are edi

Re: [PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Richard Lynch
On Mon, April 16, 2007 11:16 am, Ross wrote: > any reason why this should be? Things that could go wrong: 1. output_buffering can make "header" work when it shouldn't because it will buffer HTML (or other) output and then it "works" 2. Location: URLs are supposed to be full-blown URLs. Maybe it

Re: [PHP] isset

2007-04-16 Thread Stut
Robert Cummings wrote: On Mon, 2007-04-16 at 09:27 -0700, Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because

Re: [PHP] Array remove function?

2007-04-16 Thread Tijnema !
On 4/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: > On Wed, April 11, 2007 9:00 pm, Jochem Maas wrote: >> [PS - I've the pleasure of listening to a colleague do a manual >> install >> of Vista over an existing copy of XP and then get the really tricky >> stuff >> like the so

Re: [PHP] I make a patch, how I report?

2007-04-16 Thread Jochem Maas
Fernando chucre wrote: > Hello all, > > I buid a patch for wrapper php fopen. In this patch I create a way for > the script access the filedescriptos opened by process. Ex: > > php file.php 3file_out.txt > > In this case the script can't read the filedescriptor 3 and 7. Not > have way for read o

Re: [PHP] I make a patch, how I report?

2007-04-16 Thread Tijnema !
On 4/16/07, Fernando chucre <[EMAIL PROTECTED]> wrote: Hello all, I buid a patch for wrapper php fopen. In this patch I create a way for the script access the filedescriptos opened by process. Ex: php file.php 3file_out.txt In this case the script can't read the filedescriptor 3 and 7. Not hav

[PHP] I make a patch, how I report?

2007-04-16 Thread Fernando chucre
Hello all, I buid a patch for wrapper php fopen. In this patch I create a way for the script access the filedescriptos opened by process. Ex: php file.php 3file_out.txt In this case the script can't read the filedescriptor 3 and 7. Not have way for read or write in filedescriptor opends by prec

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-04-16 Thread Tijnema !
On 4/16/07, Tim <[EMAIL PROTECTED]> wrote: ... > You could use AJAX to get things from/to PHP, but why should > you? You can use session within javascript too i believe. > > > > > Tijnema > > > > > > ps. Maybe you could also use AJAX instead of submitting forms the > > > whole time. ... > Real

Re: [PHP] isset

2007-04-16 Thread Edward Vermillion
On Apr 16, 2007, at 1:28 PM, Robert Cummings wrote: On Mon, 2007-04-16 at 13:16 -0500, Edward Vermillion wrote: On Apr 16, 2007, at 12:30 PM, Robert Cummings wrote: [snip] Bleh, my mistake... I'm so adverse to empty() I forgot it doesn't generate notices. Strings only containing only s

[PHP] Re: PHP Dynamic Form Generator

2007-04-16 Thread Manuel Lemos
Hello, on 04/16/2007 11:14 AM Tom Chubb said the following: > Dear list, > I'm currently reviewing a load of scripts to dynamically generate a form > for > a membership system. > I have designed a registration form, and once registered and logged in > there > are a load of different options releva

[PHP] Re: post via text message?

2007-04-16 Thread Manuel Lemos
Hello, on 04/16/2007 11:14 AM blackwater dev said the following: > I'm working on a site where I need to allow someone to send me a text > message and let the code take their message and respond or post it in the > db. Can someone point me in the right direction on how this is done? You need sev

Re: [PHP] isset

2007-04-16 Thread Robert Cummings
On Mon, 2007-04-16 at 13:16 -0500, Edward Vermillion wrote: > On Apr 16, 2007, at 12:30 PM, Robert Cummings wrote: > > [snip] > > > > > > > Bleh, my mistake... I'm so adverse to empty() I forgot it doesn't > > generate notices. > > Strings only containing only spaces are not empty. Strings conta

Re: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Philip Thompson
On Apr 16, 2007, at 12:44 PM, Ross wrote: ok I have a page that calls my my functions, basically a 6 step signup. All the steps look like this function step_one() { $_SESSION['property_id'] =$_POST['property_id']; $property_id = $_POST['property_id']; $postcode= $_POST['postcode']; Escape

Re: [PHP] isset

2007-04-16 Thread Edward Vermillion
On Apr 16, 2007, at 12:30 PM, Robert Cummings wrote: [snip] Bleh, my mistake... I'm so adverse to empty() I forgot it doesn't generate notices. Lemme guess... You don't like empty() because it thinks null/0/'' is empty? Or is there some other reason? Agreed, it can be tricky if you ju

RE: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Tim
> -Message d'origine- > De : Tim [mailto:[EMAIL PROTECTED] > Envoyé : lundi 16 avril 2007 19:54 > À : 'Ross'; php-general@lists.php.net > Objet : RE: [PHP] Re: header('Location:') works locally but > not remotely > > > > > -Message d'origine- > > De : Ross [mailto:[EMAIL PR

Re: [PHP] how to get var name and value from function?

2007-04-16 Thread Jim Lucas
Afan Pasalic wrote: hi, this one I can't figure out: I have to assign value of an array to variable named after key of the array several times in my project to , e.g. after I submit a form with personal info I have $_POST['name'] = 'john doe'; $_POST['address'] = '123 main st.'; $_POST['city'] =

RE: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Tim
> -Message d'origine- > De : Ross [mailto:[EMAIL PROTECTED] > Envoyé : lundi 16 avril 2007 19:45 > À : php-general@lists.php.net > Objet : [PHP] Re: header('Location:') works locally but not remotely > > ok I have a page that calls my my functions, basically a 6 > step signup. All the

[PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Ross
ok I have a page that calls my my functions, basically a 6 step signup. All the steps look like this function step_one() { $_SESSION['property_id'] =$_POST['property_id']; $property_id = $_POST['property_id']; $postcode= $_POST['postcode']; $query = "INSERT INTO properties (property_id, postcode

RE: [PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Buesching, Logan J
My first guess would be to make sure that the version of PHP that you are running from CLI is the same as the one running as an apache module, and that they are configured the same. When running the CLI, do an And compare the output with what you get from doing the same thing from the web. -L

TR: [PHP] auto page generation

2007-04-16 Thread Tim
tim says: forwarding to list as was sent to me directly: Thanks everyone, I'll look into all of this. I'm trying to learn all of this since I'm starting school next semester for Computer programming and am trying to get some understanding of the concepts by building web pages. If anyone wa

RE: [PHP] Saving css state in javascript and passing to php via form submit

2007-04-16 Thread Tim
... > You could use AJAX to get things from/to PHP, but why should > you? You can use session within javascript too i believe. > > > > > Tijnema > > > > > > ps. Maybe you could also use AJAX instead of submitting forms the > > > whole time. ... > Really, it's not that hard to use AJAX. You mi

Re: [PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Graham Anderson
Many Thanks :) That would be it. On Apr 16, 2007, at 10:25 AM, Richard Davey wrote: Graham Anderson wrote: Has anyone created that web 2.0 "shiny floor" effect with the GD Library? I have seen it dynamically created by passing variables into a Flash movie. Has this been done with GD?

Re: [PHP] isset

2007-04-16 Thread Robert Cummings
On Mon, 2007-04-16 at 18:16 +0100, Stut wrote: > Jim Lucas wrote: > > Stut wrote: > >> tedd wrote: > >>> At 4:08 PM +0100 4/16/07, Stut wrote: > Jim Lucas wrote: > > Richard Kurth wrote: > >> What do you do when isset does not work? If I send data in a > >> $_REQUEST['var'] like if

Re: [PHP] isset

2007-04-16 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Stut wrote: tedd wrote: At 4:08 PM +0100 4/16/07, Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. B

Re: [PHP] how to get var name and value from function?

2007-04-16 Thread Tijnema !
On 4/16/07, Ford, Mike <[EMAIL PROTECTED]> wrote: On 16 April 2007 16:18, Tijnema ! wrote: > On 4/16/07, Ford, Mike <[EMAIL PROTECTED]> wrote: > > On 14 April 2007 13:16, Afan Pasalic wrote: > > > > > Tijnema ! wrote: > > > > On 4/14/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: > > > > > function

Re: [PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Richard Davey
Graham Anderson wrote: Has anyone created that web 2.0 "shiny floor" effect with the GD Library? I have seen it dynamically created by passing variables into a Flash movie. Has this been done with GD? http://reflection.corephp.co.uk Cheers, Rich -- Zend Certified Engineer http://www.corep

RE: [PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Jay Blanchard
[snip] Here is an example of a 'Shiny Floor' effect (dynamically generated with flash). http://alistapart.com/d/semanticflash/shiny/ [/snip] Ah, so it really isn't Web 2.0, it is just a neat graphics effect. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] auto page generation

2007-04-16 Thread Tim
> -Message d'origine- > De : tedd [mailto:[EMAIL PROTECTED] > Envoyé : lundi 16 avril 2007 15:59 > À : Jeremy Adams > Cc : php-general@lists.php.net > Objet : Re: [PHP] auto page generation > > At 1:31 AM -0400 4/16/07, Jeremy Adams wrote: > >I'm building a website right now that will

Re: [PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Graham Anderson
Here is an example of a 'Shiny Floor' effect (dynamically generated with flash). http://alistapart.com/d/semanticflash/shiny/ look like the one in my kitchen or one of those old Java water effects? Personally, I prefer the Quicktime 'Fire' effect. As to the effect itself, I wanted to see i

Re: [PHP] isset

2007-04-16 Thread Stut
Jim Lucas wrote: Stut wrote: tedd wrote: At 4:08 PM +0100 4/16/07, Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQ

RE: [PHP] how to get var name and value from function?

2007-04-16 Thread Ford, Mike
On 16 April 2007 16:18, Tijnema ! wrote: > On 4/16/07, Ford, Mike <[EMAIL PROTECTED]> wrote: > > On 14 April 2007 13:16, Afan Pasalic wrote: > > > > > Tijnema ! wrote: > > > > On 4/14/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: > > > > > function value2var($array, $print=0) > > > > > { > > > > >

Re: [PHP] isset

2007-04-16 Thread Robert Cummings
On Mon, 2007-04-16 at 09:27 -0700, Jim Lucas wrote: > Stut wrote: > > Jim Lucas wrote: > >> Richard Kurth wrote: > >>> What do you do when isset does not work? If I send data in a > >>> $_REQUEST['var'] like if (isset($_REQUEST['var'])) { > >>> } > >>> Put var has no data it still says it is set. B

RE: [PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Jay Blanchard
[snip] web 2.0 [/snip] There is a new web? Do you have an example of the shiny floor? Does it look like the one in my kitchen or one of those old Java water effects? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset

2007-04-16 Thread Edward Vermillion
On Apr 16, 2007, at 11:27 AM, Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST ['var'] = "" a

Re: [PHP] isset

2007-04-16 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = "" and isset thinks "" is set I use this combination

[PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Graham Anderson
Has anyone created that web 2.0 "shiny floor" effect with the GD Library? I have seen it dynamically created by passing variables into a Flash movie. Has this been done with GD? many thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Dave Goodchild
Provide some code...?

Re: [PHP] isset

2007-04-16 Thread Afan Pasalic
that was actually my point. :) -afan Stut wrote: tedd wrote: At 4:08 PM +0100 4/16/07, Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it

Re: [PHP] isset

2007-04-16 Thread Jim Lucas
Stut wrote: tedd wrote: At 4:08 PM +0100 4/16/07, Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = ""

[PHP] header('Location:') works locally but not remotely

2007-04-16 Thread Ross
any reason why this should be? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset

2007-04-16 Thread Stut
tedd wrote: At 4:08 PM +0100 4/16/07, Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = "" and isset thi

Re: [PHP] isset

2007-04-16 Thread tedd
At 4:08 PM +0100 4/16/07, Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = "" and isset thinks "" is set

Re: [PHP] isset

2007-04-16 Thread Jim Lucas
Robert Cummings wrote: On Mon, 2007-04-16 at 09:27 -0700, Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because

Re: [PHP] Json.php

2007-04-16 Thread Tijnema !
On 4/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Otto Wyss wrote: > Tijnema ! wrote: >> >> *ROFLMFAO*...Did you actually try google for json.php? >> Second result: >> http://mike.teczno.com/JSON/JSON.phps >> > This doesn't have a json_encode but needs a $json object which then > could be used a

Re: [PHP] how to get var name and value from function?

2007-04-16 Thread Tijnema !
On 4/16/07, Ford, Mike <[EMAIL PROTECTED]> wrote: On 14 April 2007 13:16, Afan Pasalic wrote: > Tijnema ! wrote: > > On 4/14/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: > > > function value2var($array, $print=0) > > > { > > >foreach ($_POST as $key => $value) > > > > I think you should chang

Re: [PHP] Json.php

2007-04-16 Thread Jochem Maas
Robert Cummings wrote: > On Mon, 2007-04-16 at 10:49 -0400, tedd wrote: >> At 8:41 AM -0500 4/16/07, Philip Thompson wrote: >>> On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote: >>> Otto Wyss wrote: > Tijnema ! wrote: >> *ROFLMFAO*...Did you actually try google for json.php? >> Secon

Re: [PHP] isset

2007-04-16 Thread Stut
Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = "" and isset thinks "" is set I use this combination a lot: if (

Re: [PHP] auto page generation

2007-04-16 Thread Tijnema !
On 4/16/07, tedd <[EMAIL PROTECTED]> wrote: At 1:31 AM -0400 4/16/07, Jeremy Adams wrote: >I'm building a website right now that will be a database of attractions in >the Carolina and Virginia area. >The idea is that attraction owners can submit data to the database and the >database will automat

Re: [PHP] Json.php

2007-04-16 Thread Robert Cummings
On Mon, 2007-04-16 at 10:49 -0400, tedd wrote: > At 8:41 AM -0500 4/16/07, Philip Thompson wrote: > >On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote: > > > >>Otto Wyss wrote: > >>>Tijnema ! wrote: > > *ROFLMFAO*...Did you actually try google for json.php? > Second result: > http://m

Re: [PHP] isset

2007-04-16 Thread Jim Lucas
Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = "" and isset thinks "" is set I use this combination a lot: if ( isset($_GET['somet

Re: [PHP] Json.php

2007-04-16 Thread tedd
At 8:41 AM -0500 4/16/07, Philip Thompson wrote: On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote: Otto Wyss wrote: Tijnema ! wrote: *ROFLMFAO*...Did you actually try google for json.php? Second result: http://mike.teczno.com/JSON/JSON.phps This doesn't have a json_encode but needs a $json o

Re: [PHP] isset

2007-04-16 Thread tedd
At 12:16 PM -0500 4/15/07, Larry Garfield wrote: If you want your syntax to be a bit simpler, I frequently use helper functions along these lines: function http_get_int($var, $default=0) { return isset($_GET[$var]) ? (int) $_GET[$var] : $default; } if (http_get_int('var') ==5) { // Do stuff

Re: [PHP] Json.php

2007-04-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-04-16 14:03:55 +0200: > Jochem Maas wrote: > > > >that's going to make it completely impossible to use then isn't it. > >no way you could possibly wrap the class/objects functionality in a wrapper > >function. > > > At the moment it's sufficient, since I've now time to fi

[PHP] Problems when trying to use ibm_db2 extension

2007-04-16 Thread Leo Jokinen
Hi all, I've been banging my head into the wall cause I can't get ibm_db2 extension working with Apache 2.0.59 and PHP 5.2.1 (as apache module). (Operating system is winxp pro SP2) For some reason, this code is working on command line but not when placed to htdocs folder: Command line o

Re: [PHP] Array remove function?

2007-04-16 Thread Jochem Maas
Richard Lynch wrote: > On Wed, April 11, 2007 9:00 pm, Jochem Maas wrote: >> [PS - I've the pleasure of listening to a colleague do a manual >> install >> of Vista over an existing copy of XP and then get the really tricky >> stuff >> like the soundcard to work ... for the last week :-/] > > Give

[PHP] post via text message?

2007-04-16 Thread blackwater dev
I'm working on a site where I need to allow someone to send me a text message and let the code take their message and respond or post it in the db. Can someone point me in the right direction on how this is done? Thanks!

[PHP] PHP Dynamic Form Generator

2007-04-16 Thread Tom Chubb
Dear list, I'm currently reviewing a load of scripts to dynamically generate a form for a membership system. I have designed a registration form, and once registered and logged in there are a load of different options relevant to people's profile (which will all be radio check boxes) in a 2nd form

RE: [PHP] NEWBIE guide

2007-04-16 Thread Jay Blanchard
[snip] What ever happened to the NEWBIE guide we were talking about providing last year? Did anyone do anything about it? [/snip] We had periodically published a newbie guide to the list, for a while it was automated by one of the group, then I would send out manually from time-to-time. These are

[PHP] NEWBIE guide

2007-04-16 Thread tedd
Hi gang: What ever happened to the NEWBIE guide we were talking about providing last year? Did anyone do anything about it? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

  1   2   >