[PHP] Open source curiosity

2005-04-06 Thread john
Hi Just out of curiosity, if you write your PHP under an open source licence, how do you hide the codes to get into your database? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anybody getting these also?

2005-04-06 Thread Burhan Khalid
Jay Blanchard wrote: [snip] I wouldn't lose sleep over it. I think the people here at work are actually making fun of me when they 'changed my title'. Maybe it's because at almost 40, I still collect comic books, and watch Star Trek. :o [/snip] Well, I'm between 45 and 50 and still collect foo

[PHP] Re: Locking in PHP (Question for PHP Gurus)

2005-04-06 Thread Manuel Lemos
Hello, on 04/06/2005 10:56 PM Cabbar Duzayak said the following: I am using PHP on Apache/Linux with mod_php4. I need to implement a lazy cache for some resource which should be updated say every 1 hour in a way that the first person who arrives after an hour will be updating the cache. As you can

Re: [PHP] Locking in PHP (Question for PHP Gurus)

2005-04-06 Thread Rasmus Lerdorf
Lars B. Jensen wrote: I would use a cronjob to make the entry rather than a user, why let the poor guy wait for you to create the content You may have 2 requests both trying to create the new cache entry, but that is much cleaner than having to deal with locking. Do a tempnam() to get a temp fi

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread Adrian
Just make your template engine compile templates to "native" php code. i.e. write a parser which replaces {if $foo}{$var}{/if} with templateVars['var'];?> To check if the template must be recompiled, just compare filemtimes. The assign function could be look like this then: = function assign($

Re: [PHP] language files

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 7:52 pm, Ryan A said: > I was just wondering which is the best/most efficient way of having > language > files for a site? I can't really speak to this, as I've never gotten around to multi-language support, but this always looked like a winner to me: http://php.net/gettext

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 8:07 pm, James Williams said: > Thanks everybody, but is this not already a really simple parser? I dunno what a CS Major would say, even though I was one, once upon a time, but I'd say "No." I don't call it a parser until you start tearing apart the text, and making decisio

Re: [PHP] Alternative control structure syntax

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 8:21 pm, Dan Rossi said: > Does anyone use it, is it more efficient on the compiler and coding to > do this > > switch($i): > case 0: > > break; > endswitch; > > instead of this ? > > switch($i) { > case 0: > > break; > } The alternative syntax, as far

Re: [PHP] Help with proper post method...

2005-04-06 Thread Richard Lynch
On Tue, April 5, 2005 10:23 pm, Joey said: > OK I am migrating some sites from an old school server to one with MySQL 4 > & > newest PHP, however certain things aren't running because of the > register_globals variable on the new server is set to OFF for security > reasons. > > What I am trying to

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Ryan A
On 4/7/2005 5:19:24 AM, [EMAIL PROTECTED] wrote: > On Wed, April 6, 2005 6:09 am, Ryan A said: > > > when the user gives me a number, i have to check if its in the array > and > > > delete that entry...how do i do that? > > > I have looked at the manual but have gotten confused with array > > > po

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Richard Lynch
On Tue, April 5, 2005 11:41 pm, Kim Madsen said: > >> -Original Message- >> From: Jay Blanchard [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, April 05, 2005 3:42 PM > > >> > having apache be the groupowner doesn´t change anything > >> You may also need to change the user/owner, depending on w

Re: [PHP] include with remoted address

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 12:00 am, [EMAIL PROTECTED] said: > Hi to all, > I've wrote a program with a web-browser interface (IE) and > a built-in server (INDY) which call the php-cgi.exe CGI application > and redirect stdio/stdout/sterr to pass .php scripts readed from > a crypted and zipped sets of f

Re: [PHP] select several files and download them simultaneous

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 1:29 am, Thomas Franz said: > is there a way to download a set of files at once, without zipping them. No, not really. > I want to offer my visitors to select several files for download. Now i > don't know how i can handle the download at once. I guess you *COULD* do someth

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
Richard Lynch wrote: On Wed, April 6, 2005 9:14 am, Eric Gorr said: "Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] IE dropped support (or severely neutered it) for username:password in URLs a while back. If anyone is interested, I found this document which appears to prov

Re: [PHP] if question

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 1:47 am, William Stokes said: > I need to test if a variable value is 3 or 6 or 9 or 12 or 15 or 18 ... > goes > on like this. > > How this can be done? To be pedantic, in addition to using % (modulus) operator, you'd want to check: $x > 0 in order to rule out 0, -3, -6, -9

Re: [PHP] Locking in PHP (Question for PHP Gurus)

2005-04-06 Thread Lars B. Jensen
I would use a cronjob to make the entry rather than a user, why let the poor guy wait for you to create the content You may have 2 requests both trying to create the new cache entry, but that is much cleaner than having to deal with locking. Do a tempnam() to get a temp file to write to and the

Re: [PHP] noob need help for sessions

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 1:59 am, [EMAIL PROTECTED] said: > I'm having problem with my session, when I login my session is registered > ok but > when I click on another page it's canceled again. > I use that kind of link: > index.php?menu=voyage&sid=$sess_id > > then on top of the page I use: > > > if

Re: [PHP] swf and getimagesize problem

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 3:34 am, Å£À¤ said: > I've got some swf file to be tested their size with php. > But it worked on some of the swf files. Some don't. > I wonder if someone could tell me why. > Any help will be appreciated:) > Thanks in advance. For the ones that don't work, put them up somewh

Re: [PHP] sprintf and arrays.

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 4:23 am, Duncan Hill said: > I have a snippet of code that looks something like: > if (is_array($p_sub_values)) { > foreach ($p_sub_values as $i => $v) { > $p_sub_values_str[$i] = "'$v'"; > } > $s = join(',', $p_sub_values_str); > $r =

Re: [PHP] Locking in PHP (Question for PHP Gurus)

2005-04-06 Thread Rasmus Lerdorf
Cabbar Duzayak wrote: Hi All, I am using PHP on Apache/Linux with mod_php4. I need to implement a lazy cache for some resource which should be updated say every 1 hour in a way that the first person who arrives after an hour will be updating the cache. As you can imagine, I need to implement a writ

Re: [PHP] language files

2005-04-06 Thread Ryan A
Hey, Glad that you replied coz you would have had more experience with this than the average php joe being the author of a forum. Isnt your approach a lot like this one: > $get_user="Enter your username:"; > $get_pass="Enter your password:"; except that you are using arrays? have you ever doubl

[PHP] Alternative control structure syntax

2005-04-06 Thread Dan Rossi
Does anyone use it, is it more efficient on the compiler and coding to do this switch($i): case 0: break; endswitch; instead of this ? switch($i) { case 0: break; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 6:09 am, Ryan A said: > when the user gives me a number, i have to check if its in the array and > delete that entry...how do i do that? > I have looked at the manual but have gotten confused with array > pop,splice,array_key_exists etc http://php.net/array_search http://php.

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread James Williams
Thanks everybody, but is this not already a really simple parser? class tpl { // // USER ACCESIBLE VARIABLES // // // PRIVATE CLASS VARIABLES // var $_template; // // USER DEFINED VARIABLES // var $tpl_directory; // REQUIRED - LOCATION OF THE TEMPLATES var $var_brace

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 9:14 am, Eric Gorr said: >> "Duncan Hill" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>>IE dropped support (or severely neutered it) for username:password in >>> URLs >>>a >>>while back. > > If anyone is interested, I found this document which appears t

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread Drewcore
a parser is a program that i will take some preformatted text, extract the information from it, and then do work with that information. xml programs users parses to pull data from between the <> tags. in your case, you'd have to have some sort of declaration in your code that sets apart code block

Re: [PHP] Need help: change a string in a file

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 10:07 am, Saswat Praharaj said: > I need some help in searching string in a file. > > My requirement is to search the string,append something to the string . > Write the string back to the file without changing other parts of the > file. > > e.g > Suppose I have the following

Re: [PHP] language files

2005-04-06 Thread James Williams
Ryan A wrote: Hey, I was just wondering which is the best/most efficient way of having language files for a site? eg: if $lang=english then it should include lang.en.inc.php if $lang=swedish then it should include lang.se.inc.php etc One way I did it before was to have an array like so: $lang_en[0]

[PHP] language files

2005-04-06 Thread Ryan A
Hey, I was just wondering which is the best/most efficient way of having language files for a site? eg: if $lang=english then it should include lang.en.inc.php if $lang=swedish then it should include lang.se.inc.php etc One way I did it before was to have an array like so: $lang_en[0]="Enter user

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread James Williams
Richard Lynch wrote: On Wed, April 6, 2005 7:04 pm, James Williams said: Hey fellas, I'm makin a forum right now and as a sub project, I'm making a template engine / class. Right now all it does is variable replacement, however I am curious as to how I can implement support for loops and if statem

Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread Richard Lynch
On Wed, April 6, 2005 7:04 pm, James Williams said: > Hey fellas, I'm makin a forum right now and as a sub project, I'm making > a template engine / class. Right now all it does is variable > replacement, however I am curious as to how I can implement support for > loops and if statements. I woul

[PHP] Re: 4.3.11 and PEAR

2005-04-06 Thread Greg Beaver
Jakob Goldbach wrote: > Hi, > > What happened to all the pear packages that were in 4.3.10 ? > > I don't see this change in the changelog :-) > > $ tar ztf php-4.3.10.tar.gz | grep tar | grep pear > php-4.3.10/pear/packages/HTTP-1.2.2.tar > php-4.3.10/pear/packages/Net_Socket-1.0.1.tar > php-4.3

[PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread James Williams
Hey fellas, I'm makin a forum right now and as a sub project, I'm making a template engine / class. Right now all it does is variable replacement, however I am curious as to how I can implement support for loops and if statements. I would appreciate any ideas that you may have, thank-you! Che

Re: [PHP] plug-in forum

2005-04-06 Thread James Williams
Ryan A wrote: Hey James, I've actually decided to go with FudForum as it has a lot of features and everything that this project requires...and some that it does not :-), but since its open source and free I cant really complain, once i get paid I plan to donate a few bucks to support the project. I

[PHP] Locking in PHP (Question for PHP Gurus)

2005-04-06 Thread Cabbar Duzayak
Hi All, I am using PHP on Apache/Linux with mod_php4. I need to implement a lazy cache for some resource which should be updated say every 1 hour in a way that the first person who arrives after an hour will be updating the cache. As you can imagine, I need to implement a write lock in this case,

RE: [PHP] exec command

2005-04-06 Thread Mike
> when running a simple php script, below, with exec, I recieve: > sh: /whoami: No such file or directory > > // outputs the username that owns the running php/httpd > process // (on a system with the "whoami" executable in the > path) echo exec('whoami'); ?> > You may want to try using the f

[PHP] exec command

2005-04-06 Thread cragland
when running a simple php script, below, with exec, I recieve: sh: /whoami: No such file or directory Thanks very much, cole mailto:[EMAIL PROTECTED] "MMS " made the following annotations on 04/06/2005 05:37:11 PM --

[PHP] Re: left

2005-04-06 Thread Ken Robinson
Marco J.L wrote: > Hello, > > how can I change the lenght of an value in basuc it's called LEFT or RIGHT > and MID . I read the filenames but I want to strip the extension from the > filename. > > SCRIPT == > > $handle=opendir('news'); > while (false!==($file = readdir($hand

Re: [PHP] plug-in forum

2005-04-06 Thread Ryan A
> Hey Ryan... I am actually coding a forum that meets all of you're > > > requirements, however it isn't done yet and I currently have another > project which takes priority. I should have an alpha out by the end of > april or may at the latest. When do you need this forum? > Hey James, I've act

Re: [PHP] plug-in forum

2005-04-06 Thread James Williams
Ryan A wrote: Hi, a client wants me to add a forum to his existing site...which is not a problem, the problem is he wants it to work off his existing site eg: once someone logs in to the main site they dont have to relogin or create new accounts in the forum section a one login gets you total s

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Robert S
>If you need more recent LAMP stuff on Woody (ex php5) add these lines >in your /etc/apt/sources.list: >deb http://packages.dotdeb.org ./ >deb-src http://sources.dotdeb.org ./ > >This will use recent Debian packages (backported for Woody) >from http://dotdeb.org/ That looks like what I'm after >T

Re: [PHP] SQL ternary thing

2005-04-06 Thread Mattias Thorslund
Rory Browne wrote: Hi I appreciate this is an SQL issue, more than a PHP issue, but since it isn't a DB specific issue, and I'm planning on using it with PHP(and I'm not subscribed to any SQL lists), I thought I'd post it here. I have a table a bit like the following: create table thing (name char(

Re: [PHP] SQL ternary thing

2005-04-06 Thread Philip Hallstrom
CASE should do it... http://www.postgresql.org/docs/7.4/interactive/functions-conditional.html Say's it's SQL compliant so it should be fine for other db's as well... something like: SELECT name, CASE WHEN value=1 THEN name_if_true ELSE name_if_false END FROM thing; Migh

[PHP] SQL ternary thing

2005-04-06 Thread Rory Browne
Hi I appreciate this is an SQL issue, more than a PHP issue, but since it isn't a DB specific issue, and I'm planning on using it with PHP(and I'm not subscribed to any SQL lists), I thought I'd post it here. I have a table a bit like the following: create table thing (name char(10), value boole

Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Rasmus Lerdorf
Jay Blanchard wrote: Let's say I have a form and the action is thus; \n"; Note the 'bid' attribute. Now, I have a case statement in which stuff takes place since the form has called it because of the 'bid' attribute. Before I break from the case I do this; unset($_GET['bid']); SIDEBAR: You should a

Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread John Nichel
Jay Blanchard wrote: Let's say I have a form and the action is thus; \n"; Note the 'bid' attribute. Now, I have a case statement in which stuff takes place since the form has called it because of the 'bid' attribute. Before I break from the case I do this; unset($_GET['bid']); SIDEBAR: You should a

Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Mattias Thorslund
Jay Blanchard wrote: [snip] Am I missing something here? It's obvious that the 'bid' parameter will appear in the query string... That's how the form posts it. Yes, you can unset it if you like, but the form will still add it to the URL that it posts to, unless you change the "action" attribute of

RE: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Jay Blanchard
[snip] Am I missing something here? It's obvious that the 'bid' parameter will appear in the query string... That's how the form posts it. Yes, you can unset it if you like, but the form will still add it to the URL that it posts to, unless you change the "action" attribute of the form tag. A

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Mattias Thorslund
But, Jay: Am I missing something here? It's obvious that the 'bid' parameter will appear in the query string... That's how the form posts it. Yes, you can unset it if you like, but the form will still add it to the URL that it posts to, unless you change the "action" attribute of the form tag.

[PHP] Interesting, yet goofy behavior

2005-04-06 Thread Jay Blanchard
Let's say I have a form and the action is thus; \n"; Note the 'bid' attribute. Now, I have a case statement in which stuff takes place since the form has called it because of the 'bid' attribute. Before I break from the case I do this; unset($_GET['bid']); SIDEBAR: You should all note that I ma

[PHP] OT - Re: [PHP] Anybody getting these also?

2005-04-06 Thread Leif Gregory
Hello John, Wednesday, April 6, 2005, 10:29:48 AM, you wrote: J> First requirement is to still have in your possession, a computer from J> the Atari/Commodore/Timex days. Root on your mail server helps too. Heheh... I've still got (and most still working): Commodore 64 Commodore 128 Atari 2600

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Charles Hamel
"Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 06 April 2005 17:02, Charles Hamel wrote: >> "Duncan Hill" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > One way to handle this is to write a wrapper script that accepts the >> > file >

Re: [PHP] Need help: change a string in a file

2005-04-06 Thread Philip Hallstrom
I need some help in searching string in a file. My requirement is to search the string,append something to the string . Write the string back to the file without changing other parts of the file. e.g Suppose I have the following string in a file Set-Cookie: T_COOKIE=127.0.0.1-saswat-9; path=/ The f

RE: [PHP] Simple array question, part 2

2005-04-06 Thread Ryan A
Nope, array_shift()... is taking off the last one too Josip sent me the solution: $array = array_values($array); Cheers, Ryan On 4/6/2005 6:45:40 PM, Jay Blanchard ([EMAIL PROTECTED]) wrote: > [snip] > > Nope, array_pop is just deleting the last key/valuei need to reindex > > it > > with

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Brent Baisley
Just so you know what is happening, the numbers are keys (index) for each array element, not the order number. It's the same as if you had named the elements themselves. Like this: ['zero']=>158 ['one']=>169926 ['two']=>169931 ... Or [0]=>158 [12]=>169926 [5]=>169931 ... Deleting an element won'

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Ryan A
PERFECT! Thanks mate. -Ryan On 8/6/2005 6:47:22 PM, Josip Dzolonga ([EMAIL PROTECTED]) wrote: > Ryan A wrote: > > > > >what function should i lookup/use? > > > > > >Thanks, > > >Ryan > > > > > This will do the job : > > $array = array_values($array); > > > > Hope this helps, > > > >

[PHP] Need help: change a string in a file

2005-04-06 Thread Saswat Praharaj
Hi All, I need some help in searching string in a file. My requirement is to search the string,append something to the string . Write the string back to the file without changing other parts of the file. e.g Suppose I have the following string in a file Set-Cookie: T_COOKIE=127.0.0.1-saswat

[PHP] Re: PDO and Oracle

2005-04-06 Thread M. Sokolewicz
Jason Barnett wrote: Charles FENDT wrote: I try to use PDO with Oracle and PHP 5.0.4 on windows... my php.ini includes php_pdo.dll and when I try to create an object, I got an error message "could not find driver" Any idea ? regards, FENDT Charles I have never used Oracle or PDO I think you need t

Re: [PHP] sprintf and arrays.

2005-04-06 Thread Brent Baisley
Making life groovy has been difficult since the 60's. You want to have sprintf look at the contents of the variable instead of the variable itself. Anytime you want to do something like this you use the eval() function to evaluate the contents of the variable. On Apr 6, 2005, at 12:46 PM, Duncan

RE: [PHP] Anybody getting these also?

2005-04-06 Thread Jay Blanchard
[snip] I wouldn't lose sleep over it. I think the people here at work are actually making fun of me when they 'changed my title'. Maybe it's because at almost 40, I still collect comic books, and watch Star Trek. :o [/snip] Well, I'm between 45 and 50 and still collect football cards, play dis

Re: [PHP] Anybody getting these also?

2005-04-06 Thread John Nichel
Jay Blanchard wrote: Dammittohell! No ÜberGeek for me. It's just as well, I can't pronounce it or anything. I wouldn't lose sleep over it. I think the people here at work are actually making fun of me when they 'changed my title'. Maybe it's because at almost 40, I still collect comic books, a

RE: [PHP] Anybody getting these also?

2005-04-06 Thread Jay Blanchard
[snip] Jay Blanchard wrote: > [snip] > First requirement is to still have in your possession, a computer from > the Atari/Commodore/Timex days. Root on your mail server helps too. > [/snip] > > Does the Trash-80 count? I thought about giving it to an archaeology > group for study, but it is hold

RE: [PHP] Simple array question, part 2

2005-04-06 Thread Jay Blanchard
[snip] Nope, array_pop is just deleting the last key/valuei need to reindex it without deleteing anything. [/snip] Always reply to the list ('reply all') as the individual who answered you might not be there. Always. I mean it. You shouldn't just delete an item from an array, it is improper h

Re: [PHP] sprintf and arrays.

2005-04-06 Thread Duncan Hill
On Wednesday 06 April 2005 16:40, Brent Baisley wrote: > For one, you are missing a right parenthesis ) in all of your examples. > htmlentities( sprintf( $tmp[0], $s, ENT_QUOTES ) Meh, syntax blip from the cut and paste. > Second, the string you are trying to format only has one variable > argum

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Duncan Hill
On Wednesday 06 April 2005 17:02, Charles Hamel wrote: > "Duncan Hill" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > One way to handle this is to write a wrapper script that accepts the file > > name > > as a parameter. The script verifies that the user is allowed to access >

Re: [PHP] Anybody getting these also?

2005-04-06 Thread John Nichel
Jay Blanchard wrote: [snip] First requirement is to still have in your possession, a computer from the Atari/Commodore/Timex days. Root on your mail server helps too. [/snip] Does the Trash-80 count? I thought about giving it to an archaeology group for study, but it is holding down a stack of b

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Philip Hallstrom
Hey, I have a $data array like this: [0] => 158 [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 then when i delete the first one ([0] => 158) it becomes like this: [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 how do I get it to sort again from 0,1,2,3

Re: [PHP] Simple array question, part 2

2005-04-06 Thread Josip Dzolonga
Ryan A wrote: what function should i lookup/use? Thanks, Ryan This will do the job : $array = array_values($array); Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

RE: [PHP] Anybody getting these also?

2005-04-06 Thread Jay Blanchard
[snip] First requirement is to still have in your possession, a computer from the Atari/Commodore/Timex days. Root on your mail server helps too. [/snip] Does the Trash-80 count? I thought about giving it to an archaeology group for study, but it is holding down a stack of box lids in my garage.

RE: [PHP] Simple array question, part 2

2005-04-06 Thread Jay Blanchard
[snip] I have a $data array like this: [0] => 158 [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 then when i delete the first one ([0] => 158) it becomes like this: [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 how do I get it to sort again fr

Re: [PHP] Anybody getting these also?

2005-04-06 Thread John Nichel
Jochem Maas wrote: John makes it all sounds so easy, I'll console myself with the fact that John 'carries' the title Ubergeek :-) (a title I can only hope to live upto :-) First requirement is to still have in your possession, a computer from the Atari/Commodore/Timex days. Root on your mail ser

[PHP] Simple array question, part 2

2005-04-06 Thread Ryan A
Hey, I have a $data array like this: [0] => 158 [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 then when i delete the first one ([0] => 158) it becomes like this: [1] => 169926 [2] => 169931 [3] => 169932 [4] => 169933 how do I get it to sort again from

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
"Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] IE dropped support (or severely neutered it) for username:password in URLs a while back. If anyone is interested, I found this document which appears to provide more details... http://support.microsoft.com/kb/834489 -- PH

Re: [PHP] Anybody getting these also?

2005-04-06 Thread Jochem Maas
John Nichel wrote: Andy Pieters wrote: -- Forwarded Message -- Subject: Date: Wednesday 06 April 2005 07:30 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Thank you for contacting ActiveWire Inc! Nope, /dev/null gets it for me. ;) John makes it all sounds so easy, I'll console my

[PHP] Re: PDO and Oracle

2005-04-06 Thread Jason Barnett
Charles FENDT wrote: > I try to use PDO with Oracle and PHP 5.0.4 on windows... > my php.ini includes php_pdo.dll > and when I try to create an object, I got an error message "could not > find driver" > > Any idea ? > > regards, > > FENDT Charles I have never used Oracle or PDO I think you need t

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Charles Hamel
"Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 06 April 2005 16:23, Charles Hamel typed: >> Hi >> >> I am bulding a secure intranet.(php, mysql, apache) >> I am using a session and Mysql to handel the user accounts. Everythying >> works fine with that. >>

[PHP] PDO and Oracle

2005-04-06 Thread Charles FENDT
I try to use PDO with Oracle and PHP 5.0.4 on windows... my php.ini includes php_pdo.dll and when I try to create an object, I got an error message "could not find driver" Any idea ? regards, FENDT Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
Duncan Hill wrote: On Wednesday 06 April 2005 16:32, Eric Gorr typed: Perhaps, https? HTTPS is a transport security layer, not an authentication or access control layer. I understand that. However, some pages can only be accessed if a user uses https. I though this might be the case here, but pe

Re: [PHP] sprintf and arrays.

2005-04-06 Thread Brent Baisley
For one, you are missing a right parenthesis ) in all of your examples. htmlentities( sprintf( $tmp[0], $s, ENT_QUOTES ) Second, the string you are trying to format only has one variable argument: $s. Fred likes %1$s on his %2$s You have it numbered for ordering, but you are still ordering one

[PHP] PDO and Oracle

2005-04-06 Thread Charles FENDT
I try to use PDO with Oracle and PHP 5.0.4 on windows... my php.ini includes php_pdo.dll and when I try to create an object, I got an error message "could not find driver" Any idea ? regards, FENDT Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Duncan Hill
On Wednesday 06 April 2005 16:32, Eric Gorr typed: > Perhaps, https? HTTPS is a transport security layer, not an authentication or access control layer. -- My mind not only wanders, it sometimes leaves completely. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Duncan Hill
On Wednesday 06 April 2005 16:23, Charles Hamel typed: > Hi > > I am bulding a secure intranet.(php, mysql, apache) > I am using a session and Mysql to handel the user accounts. Everythying > works fine with that. > > The client now needs to share word/pdf document with the registered user. I > cre

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
Charles Hamel wrote: Hi I am bulding a secure intranet.(php, mysql, apache) I am using a session and Mysql to handel the user accounts. Everythying works fine with that. The client now needs to share word/pdf document with the registered user. I created a secure directory using .htaccess for thi

[PHP] secure document : solution wanted

2005-04-06 Thread Charles Hamel
Hi I am bulding a secure intranet.(php, mysql, apache) I am using a session and Mysql to handel the user accounts. Everythying works fine with that. The client now needs to share word/pdf document with the registered user. I created a secure directory using .htaccess for this purpose and it wor

Re: [PHP] Re: registering session with user and password

2005-04-06 Thread Jason Barnett
Tomás Rodriguez Orta wrote: ... > what is the differnece between isset($_session['use']) and > session_is_registered('user') ? session_register() and session_is_registered() rely on the php.ini directive register_globals. Register_globals *can* be an ugly monster that gives crackers an easy

Re: [PHP] Critical Thinking, or Several "Why" Questions

2005-04-06 Thread Jason Barnett
> > I do not question usefulness of include_once(). In fact, currently I'm > developing application that might use it exactly the way you described. > There are many API functions in several files, and there are cases when > I do not need all of them. That is exactly why I am concerned with it's >

[PHP] Re: Simple array question, array delete

2005-04-06 Thread Satyam
Anyway, as the replies already show, you have to have a key to identify the record to be deleted, otherwise, I don't see there can be a way. Why don't use the data as key as well? Satyam "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, > I have a $data_recs array li

Re: [PHP] Anybody getting these also?

2005-04-06 Thread John Nichel
Andy Pieters wrote: -- Forwarded Message -- Subject: Date: Wednesday 06 April 2005 07:30 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Thank you for contacting ActiveWire Inc! Nope, /dev/null gets it for me. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTEC

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread kalinga
just download the php4-cli deb package and install it, i think this should work, and correct me if it's a stupid idea. and Sarge is ok for me, i'm running a production e-mail server for last 6 months with a heavy load on it, i'm using php4-cli on it for my 'home made' exim4 administration utility,

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Christophe Chisogne
Robert S a écrit : I am running a Woody server. I'd like to run php scripts from the command line, but I note that the php/php4 executable is not in my PATH. just install php4-cgi package (apt-get install php4-cgi) and the PHP 4 CLI will be install : /usr/bin/php4 Next time, try to use 'apt-cache

[PHP] setcookie ???

2005-04-06 Thread Ken
On Apr 6, 2005 2:30 PM, William Stokes <[EMAIL PROTECTED]> wrote: > > This doesn't set the cookie? Can you see why? I can't... > > $showbrowseteam = 'somejargon'; > setcookie("showbrowseteam","$showbrowseteam",0,"/"); > > Thanks > -will > > -- > PHP General Mailing List (http://www.php.net/) >

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Ken
On Apr 6, 2005 3:27 PM, Ken <[EMAIL PROTECTED]> wrote: > > On Apr 6, 2005 3:09 PM, Ryan A <[EMAIL PROTECTED]> wrote: > > > Hey, > > I have a $data_recs array like this: > > > > 12 > > 445 > > 45655 > > 4 > > 343 > > etc > > > > when the user gives me a number, i have to check if its in the

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Ken
On Apr 6, 2005 3:09 PM, Ryan A <[EMAIL PROTECTED]> wrote: > > Hey, > I have a $data_recs array like this: > > 12 > 445 > 45655 > 4 > 343 > etc > > when the user gives me a number, i have to check if its in the array and > delete that entry...how do i do that? > I have looked at the manual bu

Re: [PHP] Simple array question, array delete

2005-04-06 Thread Josip Dzolonga
Ryan A wrote: Hey, I have a $data_recs array like this: 12 445 45655 4 343 etc when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten confused with array pop,splice,array_key_exists etc Thanks, R

Re: [PHP] include with remoted address

2005-04-06 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: A this point to include a file in a my script I must use for each .PHP file: There is another way (i think to php.ini) to set default include, require_once, working area to my 'http://localhost:xxx/' avoid to manually insert upon code ? There is the include_dir directive i

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread Andy Pieters
Hi You might want to download the php source and compile the cli binary yourself (Command Line Interface) It takes only little time compared to compiling it as an apache module Once you got thing setup, you can drop the php extension and just put a shebang like this #! /usr/bin/php At the s

Re: [PHP] Call a Function Held in a $_GET Var

2005-04-06 Thread Josip Dzolonga
Shaun wrote: Hi, If I have a function name held in a $_GET variable for example ...&func=print_user_list how can I call the function dynamically? ie. $_GET['func']() Thanks for your help Well, call_user_func() [ http://www.php.net/call_user_func ] will do the job. But that is really bad, b

[PHP] Simple array question, array delete

2005-04-06 Thread Ryan A
Hey, I have a $data_recs array like this: 12 445 45655 4 343 etc when the user gives me a number, i have to check if its in the array and delete that entry...how do i do that? I have looked at the manual but have gotten confused with array pop,splice,array_key_exists etc Thanks, Ryan --

RE: [PHP] Preventing automated account creation

2005-04-06 Thread Mikey
> Well, CAPTCHA ( http://en.wikipedia.org/wiki/Captcha) is a > pretty neat solution ( > http://www.pear.php.net/package/Text_CAPTCHA ). You can also > generate random numbers (www.php.net/rand > www.php.net/mt_rand) and combining it with this PEAR package > http://www.pear.php.net/package/Numb

[PHP] Call a Function Held in a $_GET Var

2005-04-06 Thread Shaun
Hi, If I have a function name held in a $_GET variable for example ...&func=print_user_list how can I call the function dynamically? ie. $_GET['func']() Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >