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

2007-03-30 Thread Jochem Maas
Tijnema ! wrote: > On 3/30/07, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Tim wrote: >> > > > > > > ... >> personally I prefer JSON formatted data, for which there are even a >> couple of >> functions available in newer versions of php (otherwise you can find >> code on the net >> easily enough t

RE: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Jake McHenry
> -Original Message- > From: Tijnema ! [mailto:[EMAIL PROTECTED] > Sent: Friday, March 30, 2007 6:04 PM > To: Jake McHenry > Cc: tedd; php-general@lists.php.net > Subject: Re: [PHP] Alternative/Addition to using a CAPTCHA > > On 3/31/07, Tijnema ! <[EMAIL PROTECTED]> wrote: > > On 3/30/07

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
Ok, this is working good, except for one problem... I have variable $pay_rate and $pay_rate_bap ... It finds $pay_rate first and then it never finds $pay_rate_bap because it changes it to say.. 21_bap... Anyone know of anything else that may work? I have been messing around with eval, and I havn'

RE: [PHP] Parsing database variables

2007-03-30 Thread Chris Boget
> But this is a much better way of doing this than using eval(). eval is an evil little function! eval() isn't so bad if you have absolute, total and complete control over the data you are pulling or using. But once someone else becomes involved (particularly the front end user), you are probabl

Re: [PHP] Parsing database variables

2007-03-30 Thread Jim Lucas
Jake McHenry wrote: Hi everyone, I have been searching and trying to do this for the past hour without success yet I have a database table with this in it: $name Period Ending Date: $ppe Etc... And in my script, these variables exist and have values. Is there a way for me to get t

[PHP] FastCGI + PHP5

2007-03-30 Thread Stevie
Hi all. anyone using FastCGI + PHP + Apache 1.3. ? I've been trying for two days and i can't seem to configure apache with php fastcgi. i have php set with: ../configure --enable-fastcgi \ --enable-discard-path \ --enable-force-cgi-redirect \ --with-mysql=/usr/local/mysql \ --with-xml \ --wit

Re: [PHP] Parsing database variables

2007-03-30 Thread Jochem Maas
Jake McHenry wrote: > Sorry.. Typos... But that's not the point... I looked the function... Dunno > how I missed it Thanks... Do you know if eval() has any size limitations > to it? The database fields are about a page each about a page each heh that's like saying 'How Long is a china

Re: [PHP] Parse error help.., thanks..

2007-03-30 Thread Ian
Thanks very much for the help, Davi,, no more such errors.. :) Ian "Davi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Em Sexta 30 Março 2007 18:55, Ian escreveu: > Parse error: syntax error, unexpected ';' in > /hxxx/x/domains/x.com/public_html/blog/labels.php on line 15 >

Re: [PHP] Parse error help.., thanks..

2007-03-30 Thread Ian
Hehe.., didn't i told i am poor in this, actually, never learn PHP before.. :) No more such errors anymore thank you Tijnema! =) Ian ""Tijnema !"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 3/30/07, Ian <[EMAIL PROTECTED]> wrote: >> Hi everyone, i am new to PHP, but not a

Re: [PHP] PHP sample code for XMLHttprequest with jQuery

2007-03-30 Thread Jochem Maas
Otto Wyss wrote: > I'm currently evaluating jQuery as a Javascript library for my web site > but first would like to see a working sample with PHP doing > XMLHttprequest. Is anyone else using jQuery and has some sample code to > look at? post.php - >8 now point your 'aj

Re: [PHP] Parse error help.., thanks..

2007-03-30 Thread Tijnema !
On 3/30/07, Ian <[EMAIL PROTECTED]> wrote: Hi everyone, i am new to PHP, but not a programmer.., i got this php code to workout on something on my blog, but it seems that it gives me the following error: Parse error: syntax error, unexpected ';' in /hxxx/x/domains/x.com/public_html/blog/

Re: [PHP] Parse error help.., thanks..

2007-03-30 Thread Davi
Em Sexta 30 Março 2007 18:55, Ian escreveu: > Parse error: syntax error, unexpected ';' in > /hxxx/x/domains/x.com/public_html/blog/labels.php on line 15 > > http://.x.com/labels'); 2 define('SEARCH_DIR','//x/domains/x.com/public_html/blog/labels'); 3 define('THIS_FIL

Re: [PHP] PHP sample code for XMLHttprequest with jQuery

2007-03-30 Thread Tijnema !
On 3/30/07, Otto Wyss <[EMAIL PROTECTED]> wrote: I'm currently evaluating jQuery as a Javascript library for my web site but first would like to see a working sample with PHP doing XMLHttprequest. Is anyone else using jQuery and has some sample code to look at? O. Wyss This is nearly 100% PHP

[PHP] Parse error help.., thanks..

2007-03-30 Thread Ian
Hi everyone, i am new to PHP, but not a programmer.., i got this php code to workout on something on my blog, but it seems that it gives me the following error: Parse error: syntax error, unexpected ';' in /hxxx/x/domains/x.com/public_html/blog/labels.php on line 15 http://.x.c

Re: [PHP] Ide help needed

2007-03-30 Thread Tijnema !
On 3/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am a beginer with php and i need to know which IDE is best suited under windows and linux both i have seen dreamweaver working and have heard about GoLive too but don't know whichone to go for can you please help me decide and also tell

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

2007-03-30 Thread Tijnema !
On 3/30/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Tim wrote: > > > > > > >> I think you want to use sessions for this :) > Ok, i can put the data in the session variable, but i can only get the > "current" state through javascript > > ie:onsubmit="getstate()"; which wou

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Tijnema !
On 3/31/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/30/07, Jake McHenry <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: tedd [mailto:[EMAIL PROTECTED] > > Sent: Friday, March 30, 2007 3:06 PM > > To: Tijnema !; John Comerford > > Cc: php-general@lists.php.net > > Subject

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Tijnema !
On 3/30/07, Jake McHenry <[EMAIL PROTECTED]> wrote: > -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Friday, March 30, 2007 3:06 PM > To: Tijnema !; John Comerford > Cc: php-general@lists.php.net > Subject: Re: [PHP] Alternative/Addition to using a CAPTCHA > > At 3:37

Re: [PHP] Environment variables in php.ini

2007-03-30 Thread Jim Lucas
Abdullah Ramazanoglu wrote: Hello, I have a Linux shared hosting environment with PHP running over CGI. With CGI I can't use httpd.conf or .htaccess files for PHP related parameters, so all the parameters should be given in one central php.ini file, AFAIK. So how can I give parameters, in effect

Re: [PHP] Parsing database variables

2007-03-30 Thread Myron Turner
Myron Turner wrote: Jake McHenry wrote: thought about that, I would need to do one ereg for each variable then correct? as of right now, there are 0 variables in the first field, and 17 in the second... so it would be 17 ereg replaces... then if i add or change anything, possibly more... T

Re: [PHP] Parsing database variables

2007-03-30 Thread Myron Turner
Jake McHenry wrote: thought about that, I would need to do one ereg for each variable then correct? as of right now, there are 0 variables in the first field, and 17 in the second... so it would be 17 ereg replaces... then if i add or change anything, possibly more... This will work, but was h

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
thought about that, I would need to do one ereg for each variable then correct? as of right now, there are 0 variables in the first field, and 17 in the second... so it would be 17 ereg replaces... then if i add or change anything, possibly more... This will work, but was hoping for an easier wa

RE: [PHP] Parsing database variables

2007-03-30 Thread Jay Blanchard
[snip] Sorry.. Typos... But that's not the point... I looked the function... Dunno how I missed it Thanks... Do you know if eval() has any size limitations to it? The database fields are about a page each [/snip] Not that I know of -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
Sorry.. Typos... But that's not the point... I looked the function... Dunno how I missed it Thanks... Do you know if eval() has any size limitations to it? The database fields are about a page each Thanks, Jake > -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED]

RE: [PHP] Parsing database variables

2007-03-30 Thread Jay Blanchard
[snip] I have a database table with this in it: $name Period Ending Date: $ppe Etc... And in my script, these variables exist and have values. Is there a way for me to get the output from mysql_query to use the current script variables in place of the same variable name within the database

[PHP] Parsing database variables

2007-03-30 Thread Jake McHenry
Hi everyone, I have been searching and trying to do this for the past hour without success yet I have a database table with this in it: $name Period Ending Date: $ppe Etc... And in my script, these variables exist and have values. Is there a way for me to get the output from mysql_q

Re: [PHP] Ide help needed

2007-03-30 Thread Mario Guenterberg
On Fri, Mar 30, 2007 at 11:09:02PM +0530, [EMAIL PROTECTED] wrote: > I am a beginer with php and i need to know which IDE is best suited > under windows and linux both > > i have seen dreamweaver working and have heard about GoLive too but don't > know whichone to go for > > can you please help m

[PHP] PHP sample code for XMLHttprequest with jQuery

2007-03-30 Thread Otto Wyss
I'm currently evaluating jQuery as a Javascript library for my web site but first would like to see a working sample with PHP doing XMLHttprequest. Is anyone else using jQuery and has some sample code to look at? O. Wyss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Jake McHenry
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Friday, March 30, 2007 3:06 PM > To: Tijnema !; John Comerford > Cc: php-general@lists.php.net > Subject: Re: [PHP] Alternative/Addition to using a CAPTCHA > > At 3:37 PM +0200 3/30/07, Tijnema ! wrote: > >On 3/30/07,

Re: [PHP] Audio CAPTCHA review request

2007-03-30 Thread tedd
At 8:20 PM -0400 3/29/07, TG wrote: > Not as hard as you might think. You don't have to identify it as a pig but rather as the spectral properties that a pig image displays. > It's like part recognition on an assembly line. Are you incinerating pigs and doing spectral analysis on them to se

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Jason Pruim
On Mar 30, 2007, at 3:17 PM, tedd wrote: At 12:54 PM -0400 3/30/07, <[EMAIL PROTECTED]> wrote: Maybe I'm missing something.. if the intent is to have 'hidden' fields that a user would end up submitting but a bot wouldn't.. that wouldn't work very well. A bot could easily see the hidden

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tg-php
Ah ok.. that makes a bit more sense. Even still.. anyone who's going out of their way to program a bot to defeat your specific CAPTCHA mechanism will probably notice the failure in testing. Unless you made a failure behave similar to a success but put them in a situation where ultimately they

Re: [PHP] Audio CAPTCHA review request

2007-03-30 Thread tedd
Trivia: FedEx and UPS boxes use Simplex locks. Typically 5 digits that can only be pressed once each. You can press multiple buttons at once though, adding to the permutation a little bit. But in the end, this still only provides roughly 1000 unique combinations. The average child's Master Lock

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tg-php
hah.. I was going to let this discussion die a bit because a lot of it is fairly off-topic. But here and there we've hit on some PHP specific topics. I just had to say Kudos to tedd for providing a fairly interesting and possibly very functional CAPTCHA solution. True, a simple blue dot could

Re: [PHP] tabbed navegation PHP

2007-03-30 Thread tedd
At 3:05 PM +0200 3/30/07, Dwayne Heronimo wrote: Dear All, I have made a tabbed navegation with CSS. And if you set class="active" to one of the tabs, it will then be highlighted. So I thought to make this dymamic with PHP. Using the $_GET variable I can get the page name above with something li

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tedd
At 12:54 PM -0400 3/30/07, <[EMAIL PROTECTED]> wrote: Maybe I'm missing something.. if the intent is to have 'hidden' fields that a user would end up submitting but a bot wouldn't.. that wouldn't work very well. A bot could easily see the hidden fields and submit them along with whatever othe

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tedd
At 3:37 PM +0200 3/30/07, Tijnema ! wrote: On 3/30/07, John Comerford <[EMAIL PROTECTED]> wrote: I was reading the current tread on CAPTCHA and possible cracks and I thought maybe I'd throw this out to the group to see what you think. Recently I saw a forum where in order to post you first had t

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Davi
My mistake: Try $found_catcode=$row_show_cat['catcode']; -- Davi Vidal [EMAIL PROTECTED] [EMAIL PROTECTED] -- Agora com fortune: "Thus mathematics may be defined as the subject in which we never know what we are talking about, nor whether what we are saying is true. -- Bertran

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Davi
Em Sexta 30 Março 2007 14:35, Dwayne Heronimo escreveu: > I have included some code but have to do it a little different because if > the query construct. but this shows only the 404. is this correct? > > if (!function_exists("GetSQLValueString")) { > function GetSQLValueString($theValue, $theType

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Nathan Ziarek
Got it. After putting .gnome2 folders every where I could think of, I accidentally put one in /var/www/ and it worked. I guess PHP considers the root of my web site to its home (which makes sense, but not what I was expecting. Now, having a writable folder in the server path seems like a

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
Sorry for the really rough example. I just re-read my message and realized how much stuff (closing tags, etc) I forgot to include. The general idea should be fairly clear, though. ""Steve"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The point was to have the hidden fields tha

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
The point was to have the hidden fields that the bot would populate and the user wouldn't. So for instance, let's use my example from before. (hideSpamCatcher is a reference to a javascript function that hides the spamcatcher div. Name: Password: Now, the user comes along and doesn

Re: [PHP] Date/time format?

2007-03-30 Thread Jason Pruim
On Mar 29, 2007, at 4:52 PM, Zoltán Németh wrote: (I assume you want this calculation within one given day) you could read all rows into an array like $timeinfo = array(); $sql = "SELECT minute, sequence FROM table WHERE day='$day'"; $result = mysql_query($result); while ($row = mysql_fe

Re: [PHP] Ide help needed

2007-03-30 Thread Davi
Em Sexta 30 Março 2007 14:39, [EMAIL PROTECTED] escreveu: > I am a beginer with php and i need to know which IDE is best suited > under windows and linux both > > i have seen dreamweaver working and have heard about GoLive too but don't > know whichone to go for > > can you please help me decide >

[PHP] Ide help needed

2007-03-30 Thread exjohnian
I am a beginer with php and i need to know which IDE is best suited under windows and linux both i have seen dreamweaver working and have heard about GoLive too but don't know whichone to go for can you please help me decide and also tell me some other IDE's if possible

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
I have included some code but have to do it a little different because if the query construct. but this shows only the 404. is this correct? "Davi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Em Sexta 30 Março 2007 14:01, Dwayne Heronimo escreveu: > wierd.. your code is behavi

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

2007-03-30 Thread Jochem Maas
Tim wrote: > > > > > > >> I think you want to use sessions for this :) > Ok, i can put the data in the session variable, but i can only get the > "current" state through javascript > > ie:onsubmit="getstate()"; which would get the id's of the blocks that > are set

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

2007-03-30 Thread Juergen Wind
Tijnema ! wrote: > > You can use session within javascript too i believe. > no, sessions are completely serverside, but you can use js to pass variables using the query string when sending a xmlHttpRequest. -- View this message in context: http://www.nabble.com/Saving-css-state-in-javascri

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Davi
Em Sexta 30 Março 2007 14:01, Dwayne Heronimo escreveu: > wierd.. your code is behaving exactly the same as mine did. > it will display the error and the page.. but both at the same time :S > > it is working but somehow it continues to execute. > > http://arubaguide.org/arubaguide/categories.php?ca

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
wierd.. your code is behaving exactly the same as mine did. it will display the error and the page.. but both at the same time :S it is working but somehow it continues to execute. http://arubaguide.org/arubaguide/categories.php?catcode=art http://arubaguide.org/arubaguide/categories.php?catcode

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tg-php
Maybe I'm missing something.. if the intent is to have 'hidden' fields that a user would end up submitting but a bot wouldn't.. that wouldn't work very well. A bot could easily see the hidden fields and submit them along with whatever other data they were sending. If the intention is to trick

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Nathan Ziarek
I appreciate everyone's help. I think I may have to throw in the towel in a second here. I create a directory /home/www-data. I chown'd, chgrp'd and chmod'd it to www-data/www-data and 777 (I figured if it worked I could scale it back later). No dice. I then create a .gnome directory inside ther

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Davi
Em Sexta 30 Março 2007 13:42, Dwayne Heronimo escreveu: > Yes but this file does not exist. It is just to use for my queries. so I > think I cannot use the file_exists function. Which other function I would > use to do this? > I already have setup the .htaccess file to point also to a 404 page. but

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
Yes but this file does not exist. It is just to use for my queries. so I think I cannot use the file_exists function. Which other function I would use to do this? I already have setup the .htaccess file to point also to a 404 page. but this works only if the URL is totally wrong. like www.arubag

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Edward Vermillion
~ is an alias for /home/USERNAME so it's probably trying to create it in /home/www-data On Mar 30, 2007, at 11:20 AM, Nathan Ziarek wrote: I'm capturing the output of exec in an array -- exec("command", $array); Shouldn't $array have the error from bash? Researching this more, I found

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Davi
Em Sexta 30 Março 2007 13:17, Dwayne Heronimo escreveu: > where getting there .. now i have this.. but now it will only show the 404 > page. I think somehow that the firstpart is not working? the include part? > http://arubaguide.org/arubaguide/categories.php?catcode=activities > > > > > > $cat_i

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Nathan Ziarek
I'm capturing the output of exec in an array -- exec("command", $array); Shouldn't $array have the error from bash? Researching this more, I found this command that returns the error: exec(gnomevfs-info file.doc 2>&1) --- gives me this: (gnomevfs-info:27496): libgnomevfs-WARNING **: Unab

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
where getting there .. now i have this.. but now it will only show the 404 page. I think somehow that the firstpart is not working? the include part? http://arubaguide.org/arubaguide/categories.php?catcode=activities wrote in message news:[EMAIL PROTECTED] > 2007. 03. 30, péntek keltezéssel

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Myron Turner
Nathan Ziarek wrote: Hmmm. This may have nothing to do with it, but, running a command I know doesn't exist (say "hghswks") at the command line tells me "-bash: hghswks: command not found" When I run that same command through exec(), I get nothing back. The plot thinkens? The return value to ex

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
2007. 03. 30, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: > I tried every thing. But it works in a way. Because if I issue: > http://arubaguide.org/arubaguide/categories.php?catcode=dghdfg > > it will display the 404 page but it all also continue to display the rest. > > And if you iss

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

2007-03-30 Thread Tim
> It's not too hard, but if you already did a lot of work on > the form processing, you prefer not to write it all over > again i think ;) Actually thanx, that solves my problem if i process my forms/table clicks the ajax way i wont have to reload the page and that takes care of storing the cur

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Rahul Sitaram Johari
Ave, I'll add the Checking stuff immediately - I guess that was really just laziness on my part to get the job done. I'll make sure he's being a good dog and behaving himself ;) Will definitely get rid of '@'. Still not sure, as Tijnema pointed, if this is the most secure way to do this. I'm sur

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
I tried every thing. But it works in a way. Because if I issue: http://arubaguide.org/arubaguide/categories.php?catcode=dghdfg it will display the 404 page but it all also continue to display the rest. And if you issue: http://arubaguide.org/arubaguide/categories.php?catcode=activities It will di

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

2007-03-30 Thread Tim
> > > > > > > > > > I think you want to use sessions for this :) > > > > > > > > Ok, i can put the data in the session variable, but i can > > > only get the > > > > "current" state through javascript > > > > > > > > ie:onsubmit="getstate()"; which would get the id's of the > > > blocks that > > >

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Nathan Ziarek
Hmmm. This may have nothing to do with it, but, running a command I know doesn't exist (say "hghswks") at the command line tells me "-bash: hghswks: command not found" When I run that same command through exec(), I get nothing back. The plot thinkens? On 3/30/07, Nathan Ziarek <[EMAIL PROTECTED

[PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
I read something (I think on Slashdot) a while back about another method that could be used to avoid CAPTCHAs. Basically on top of your standard form field, you place some input fields in a javascript hidden div around your page conveniently named things like "email", "address", or "phone." Bec

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread tg-php
I agree with Tijnema on the fact that visual positioning doesn't really matter to the bots. They don't really "see" the page the way we see it. Most tricks you're going to try using HTML and JS are going to be readable by a bot. You could take your example and replace the alert() with a window

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

2007-03-30 Thread Tijnema !
On 3/30/07, Tim <[EMAIL PROTECTED]> wrote: > -Message d'origine- > De : Tijnema ! [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 30 mars 2007 17:06 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] Saving css state in javascript and passing > to php via form submit > > On 3/

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

2007-03-30 Thread Tim
> -Message d'origine- > De : Tijnema ! [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 30 mars 2007 17:06 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] Saving css state in javascript and passing > to php via form submit > > On 3/30/07, Tim <[EMAIL PROTECTED]> wrote: > >

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

2007-03-30 Thread Tijnema !
On 3/30/07, Tim <[EMAIL PROTECTED]> wrote: > -Message d'origine- > De : Tijnema ! [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 30 mars 2007 16:56 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] Saving css state in javascript and passing > to php via form submit > > On 3/

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

2007-03-30 Thread Tim
> -Message d'origine- > De : Tijnema ! [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 30 mars 2007 16:56 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] Saving css state in javascript and passing > to php via form submit > > On 3/30/07, Tim <[EMAIL PROTECTED]> wrote: > >

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

2007-03-30 Thread Tijnema !
On 3/30/07, Tim <[EMAIL PROTECTED]> wrote: Hello all, I have a little dilemna here: I am using php/css/mysql to generate a hierarchical table of categories and sub-categories and sub-sub.. Etc.. A screenshot can be found here: http://www.internet46.fr/mehim/screenshot.jpg Now i'm also using

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Jochem Maas
Rahul Sitaram Johari wrote: > Ave, > > You will probably find this code pretty inefficient, although it works > flawlessly, but I ran into a problem with Internet Explorer 7, which instead > of giving the "Save as" dialog box, tried opening the file within the > Internet Explorer 7 window and disp

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Tijnema !
On 3/30/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, You will probably find this code pretty inefficient, although it works flawlessly, but I ran into a problem with Internet Explorer 7, which instead of giving the "Save as" dialog box, tried opening the file within the Internet Expl

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Rahul Sitaram Johari
Ave, You will probably find this code pretty inefficient, although it works flawlessly, but I ran into a problem with Internet Explorer 7, which instead of giving the "Save as" dialog box, tried opening the file within the Internet Explorer 7 window and displayed millions of bizarre characters on

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

2007-03-30 Thread Tim
Hello all, I have a little dilemna here: I am using php/css/mysql to generate a hierarchical table of categories and sub-categories and sub-sub.. Etc.. A screenshot can be found here: http://www.internet46.fr/mehim/screenshot.jpg Now i'm also using javascript to hide show blocks of divs to hid

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Rahul Sitaram Johari
Tijnema, In fact this same Question popped into my head - which one should I choose and why to choose one over the other? I tried both of the codes and compared them. While I can't comment on any security benefits of using either, I have to say, I did find glob() to be slightly faster in bringin

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Tijnema !
On 3/30/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, This Works!!! ".basename($value)." "; } ?> Dug up glob() in the manual, followed examples and details ­ works like a charm! Full code: function openVox(form) { var newIndex = form.voxSelect.selectedIndex;

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Jochem Maas
Rahul Sitaram Johari wrote: > Ave, > ... > VALUE='takekey_download.php?F=vox/".basename($value)."'>".basename($value)." show us the code for takekey_download.php, we may be able to save you on a major security issue with regard to the way you use the F get parameter. > "; > } > ?> >

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Nathan Ziarek
"as you can see..." -- Helps to provide the feedback I am getting: Array ( [0] => [1] => class.fileSystem.php [2] => tester.php [3] => [4] => PHP script text [5] => PHP script text ) Nate On 3/30/07, Nathan Ziarek <[EMAIL PROTECTED]> w

Re: [PHP] Gnome and MIME types

2007-03-30 Thread Nathan Ziarek
Ooooh. That would have been likely, too. It is typed in correctly in the script. Just to test, my entire script is nothing more than: " . print_r($array, true) . ""; ?> I was using it to test the output, which works on both "ls" and "file." Running "gnomevfs-info" without a file pumps out "Usag

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Rahul Sitaram Johari
Ave, This Works!!! ".basename($value)." "; } ?> Dug up glob() in the manual, followed examples and details ­ works like a charm! Full code: function openVox(form) { var newIndex = form.voxSelect.selectedIndex; if (newIndex == 0) { //alert( "Pleas

Re: [PHP] Date/time format?

2007-03-30 Thread Jason Pruim
On Mar 29, 2007, at 6:16 PM, Jim Lucas wrote: you stated in a different email that there are 6 possible values/ settings for the sequence col. what are they, and what do they mean? One person asked about missed punches. What happens if someone forgets to clock out? Is an entry made for

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
2007. 03. 30, péntek keltezéssel 15.56-kor Dwayne Heronimo ezt írta: > When I echo the $pagename it returns the correct string. I also tried to > rename the $pagename to something I am sure that wouldn't come up in other > scripts. > One thing that is coming up in other scripts is the $_GET['catc

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
When I echo the $pagename it returns the correct string. I also tried to rename the $pagename to something I am sure that wouldn't come up in other scripts. One thing that is coming up in other scripts is the $_GET['catcode'] because I am using queries with this to show the categories. wierd i

Re: [PHP] What is wrong with this INSERT?

2007-03-30 Thread Rahul Sitaram Johari
A definite improvement!! Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/29/07 7:31 PM, "Chris" <[EMAIL PROTECTED]>

Re: [PHP] Link to download files on another part of system

2007-03-30 Thread Rahul Sitaram Johari
Yes, and while I dig up on glob(), to be quite honest, the exec is working very effectively and fast for my searches & download application - so can't complain about it one bit. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjo

Re: [PHP] Environment variables in php.ini

2007-03-30 Thread Tijnema !
On 3/30/07, Abdullah Ramazanoglu <[EMAIL PROTECTED]> wrote: Hello, I have a Linux shared hosting environment with PHP running over CGI. With CGI I can't use httpd.conf or .htaccess files for PHP related parameters, so all the parameters should be given in one central php.ini file, AFAIK. So how

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
well, I don't know what may be wrong... try echoing out $pagename and is your script only this? or are there other parts? if so, those other parts might be screwing things up... greets Zoltán Németh 2007. 03. 30, péntek keltezéssel 15.36-kor Dwayne Heronimo ezt írta: > hey zoltan, > > I used you

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Tijnema !
On 3/30/07, John Comerford <[EMAIL PROTECTED]> wrote: I was reading the current tread on CAPTCHA and possible cracks and I thought maybe I'd throw this out to the group to see what you think. Recently I saw a forum where in order to post you first had to click on a div that was placed at a random

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
hey zoltan, I used your code but this still is displaying both the 404 and the normal page: http://arubaguide.org/arubaguide/categories.php?catcode=activities ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007. 03. 30, péntek keltezéssel 15.10-kor Dwayne

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
yes the index.php?page=gsfgsfg is working fine. But is it only when you want to use the categories.php?catcode=asdfad It is now displaying both the 404 and the normal page. ""Tom Chubb"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I think I'm missing something, but this works

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
well, then it's pretty sure that you have mixed up the two variable names somewhere... decide which one you want to use for this and make sure you always use that one in your script greets Zoltán Németh 2007. 03. 30, péntek keltezéssel 14.20-kor Tom Chubb ezt írta: > I think I'm missing something

Re: [PHP] Link to download files on another part of system

2007-03-30 Thread Tijnema !
On 3/30/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Rahul Sitaram Johari wrote: > Ave, > > This is actually a continuation of my previous ³Show files using Wildcards² > thread, but a different problem. > > Code: > > exec("find /Users/rjohari/Documents/XFER/espi -type f -name > ".$row['PHO

Re: [PHP] tabbed navegation PHP

2007-03-30 Thread Dwayne Heronimo
you are right.. i still need to learn alot.. ;) this is my first php site. :-( ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007. 03. 30, péntek keltezéssel 15.05-kor Dwayne Heronimo ezt írta: >> Dear All, >> >> I have made a tabbed navegation with CSS. And if

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Tom Chubb
I think I'm missing something, but this works: http://arubaguide.org/arubaguide/index.php?page=advertise and if I put in a type such as: http://arubaguide.org/arubaguide/index.php?page=advertisd I get the 404 error page. I think the problem with using $_GET[catcode]??? On 30/03/07, Dwayne He

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Zoltán Németh
2007. 03. 30, péntek keltezéssel 15.10-kor Dwayne Heronimo ezt írta: > indeed.. it should be catcode instead of page.:-(. but still its not working > :S > > > > > /* function to get an external file into a vatiable */ > function get_include_contents($filename) { >if (is_file($filename)) {

Re: [PHP] tabbed navegation PHP

2007-03-30 Thread Zoltán Németh
2007. 03. 30, péntek keltezéssel 15.05-kor Dwayne Heronimo ezt írta: > Dear All, > > I have made a tabbed navegation with CSS. And if you set class="active" to > one of the tabs, it will then be highlighted. > So I thought to make this dymamic with PHP. Using the $_GET variable I can > get the p

RE: [PHP] tabbed navegation PHP

2007-03-30 Thread Edward Kay
> -Original Message- > From: Dwayne Heronimo [mailto:[EMAIL PROTECTED] > Sent: 30 March 2007 14:06 > To: php-general@lists.php.net > Subject: [PHP] tabbed navegation PHP > > > Dear All, > > I have made a tabbed navegation with CSS. And if you set > class="active" to > one of the tabs, it

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
indeed.. it should be catcode instead of page.:-(. but still its not working :S ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007. 03. 30, péntek keltezéssel 14.45-kor Dwayne Heronimo ezt írta: >> Dear All, >> >> I have made a simple php script that will

  1   2   >