[PHP] sorting arrays

2005-03-08 Thread Gabino Travassos
Hello List I've looked at array_multisort( ), but it doesn't seem like the right function. Here's an example of my array, it's a listing of CD reviews: $cds=array(array("Lowest of the Low", 20050105,9,"Toronto"), array("Heavy Blinkers",20041020,6,"Chicago"), array("Apple,Fiona",20050308,5,"Seattl

Re: [PHP] Value in URL issue

2004-06-16 Thread Gabino Travassos
Maybe you should post all the relevant code. - Original Message - From: "Mike R" <[EMAIL PROTECTED]> To: "Gabino Travassos" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 2:36 PM Subject: RE: [PHP] Value in URL issue &g

Re: [PHP] Value in URL issue

2004-06-16 Thread Gabino Travassos
$_SERVER['QUERY_STRING'] should get anything after the "?" in your url. - Original Message - From: "Mike R" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 1:45 PM Subject: [PHP] Value in URL issue > > I have an issue where I have a value in a link like this:

Re: [PHP] Javascript Question

2004-06-07 Thread Gabino Travassos
I would do two things. 1. Test your print() function on the same frame. Create a div called "printableText" and see if you can print it. If that works, then your print() function is okay. 2. Test your targeting. Use a different function, such as trying to change the text or rollover an img in anoth

Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Gabino Travassos
> I've looked at the php.net tutorial, and though I'm learning some things > from it, it's still a bit over my head. It seems to presuppose a comfort > level with programming which I do not have. > > Can anyone recommend a simple, hand-holding, introductory tutorial > suitable for someone with no

[PHP] xml ignore whitespace

2004-05-17 Thread Gabino Travassos
Howdy Here's where I'm at. $DomDocument = domxml_open_file("myFile.xml"); $RootDomNode = $DomDocument->document_element(); print_r($RootDomNode); // just to test $listItems = $RootDomNode -> child_nodes(); print_r("there are ". count($listItems)." child nodes"); // 35! print_r($listItems); Wh

Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos
Thanks for the suggestions. Between the online manual and the books I have I think I'll get there eventually. Sometimes my logic just sux. What I needed to do was have the user fill out a form and if they make changes to the XML file I would update the file. So, my long way around was to go throug

Re: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos
I forgot to mention that in my XML file, inside the quotes in this attribute >>> backColour="xx" the x's will be variable..., so I need some kind of wildcard to select everything from "backColour" + the next 8 or 9 characters, cuz it might be backColour="333990" or whatnot. 'backColour' will

[PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Gabino Travassos
Hello I'm wondering if Regular Expressions are the same in Perl and PHP (and possibly Actionscript)? They look the same and smell the same, but if I see a book in a store for Perl Regular Expressions that's $10 cheaper than the PHP one (is there one?), then is it the same thing? While we're on th

Re: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Gabino Travassos
> If you are saving to SQL you can limit this from the SQL end as well > as the PHP code, but it's worth doing at the PHP level too. By contraining the size of the string to "tiny" or whatever, right? I could also use Javascript, but I like that PHP is more of an invisible hand. I'm not using myS

Re: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Gabino Travassos
> GT> seems to be the common behavior. Is there a way someone can extract my php > GT> file without this transformation? > > In a nutshell - no. > > Not without your server being compromised (i.e. hacked into or > misconfigured). > > GT> One of the things I'm starting with is a simple blog/guestboo

[PHP] transformation to htm file when downloaded

2004-04-15 Thread Gabino Travassos
Hello All I'm just starting to get PHP, and I'm wondering about the security of the code I write. It _seems_ that when I try to download the PHP file directly (like using Save Target As...) it will download only as an HTML file and my PHP code is gone. I've tried this on a few other people's sites