Re: [PHP] Generating PINs

2002-05-13 Thread Evan Nemerson
Usually software uses a specific serial number format, rather than a remote database of valid numbers. for instance, the fifth character must be the third % tenth. Something like that. 3HH5R could be random, and E59VB and 7SX99 would be determined by a complex algorithm operating on the five c

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Protection"

2002-05-13 Thread Miguel Cruz
Step 1: Run the files through a prettyprinter. That instantly restores the indentation and line breaks. Step 2: Open up in a text editor like TextPad that has multi-file search-and-replace and rename all the functions back from their garbled names as you determine what they do. Unless it was writ

RE: [PHP] Generating PINs

2002-05-13 Thread Niklas Lampén
Well, you could produce those randomly. Store all the PINs to a database and before storing compare that it doesn't exist yet. Here is a piece of code to produce PINs in _exactly_ that format you want. I've done it for myself, but feel free to use it in any way you like: Niklas -Original

Re: [PHP] Problem on fread!

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 13:56, Jack wrote: > Dear all > I had a problem with fread function! > I had a text file containning a date, so inside the text file, it was > something look like this : 05032002 > then now i want to read this file but want to seperate the dd -mm-, so > i want to get the

Re: [PHP] ini_set()

2002-05-13 Thread Gerard Samuel
I think I remember that thread. Ill track it down tomorrow. Thanks Jason Wong wrote: >On Tuesday 14 May 2002 13:43, Jason Wong wrote: > > > >>>Is there something else I can do so I can have the old scripts work >>>while php is has register_globals off. >>> >>> >>As you're running your o

[PHP] Problem on fread!

2002-05-13 Thread Jack
Dear all I had a problem with fread function! I had a text file containning a date, so inside the text file, it was something look like this : 05032002 then now i want to read this file but want to seperate the dd -mm-, so i want to get the first two digit as the (day), then nex two as the (mo

Re: [PHP] ini_set()

2002-05-13 Thread Gerard Samuel
I didn't know about the run-time issue, I guess I didnt see that. Thanks for the heads up... Jason Wong wrote: >On Tuesday 14 May 2002 13:32, Gerard Samuel wrote: > > >>Im running php 4.1.2 on a test box, and Im doing some recoding on an >>application Im writing. >>The new version, I intend be

Re: [PHP] ini_set()

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 13:43, Jason Wong wrote: > > Is there something else I can do so I can have the old scripts work > > while php is has register_globals off. > > As you're running your own server, set it in php.ini Oops, sorry wrong answer. Correct answer is: you have to manually/explicity

Re: [PHP] ini_set()

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 13:32, Gerard Samuel wrote: > Im running php 4.1.2 on a test box, and Im doing some recoding on an > application Im writing. > The new version, I intend be be compliant with php new $_* global arrays. > But I dont want to waste time redoing the old version, so I tried settin

[PHP] ini_set()

2002-05-13 Thread Gerard Samuel
Im running php 4.1.2 on a test box, and Im doing some recoding on an application Im writing. The new version, I intend be be compliant with php new $_* global arrays. But I dont want to waste time redoing the old version, so I tried setting ini_set('register_globals', 1); at the top of the main c

Re: [PHP] Generating PINs

2002-05-13 Thread Daniel Tryba
On Tue, May 14, 2002 at 12:13:08PM +0800, Alvin Tan wrote: > I have a client who wants to release a unique PIN for each product they > sell which works as a key to get more goodies on the website. How/where can > I get a large number of PINs, much like a software key (e.g. > 3HH5R-E59VB-7SX99 o

[PHP] Generating PINs

2002-05-13 Thread Alvin Tan
Hi All, This is not really a PHP question, but seeing that the final application will be in PHP, I figured this'll be the best place to start. I have a client who wants to release a unique PIN for each product they sell which works as a key to get more goodies on the website. How/where can I

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-13 Thread SP
As an example, someone provided this link on the PHP Obfuscator http://pobs.mywalhalla.net and I'm just quoting what it says it does: "POBS replaces user-defined (NOT predefined) functions, constants and variables with a MD5 key of 8 characters ... The first letter of the new functionname is a "F

RE: [PHP] Where's the error?

2002-05-13 Thread Martin Towell
that'll prob. be: $lastdate = getmydate($fcontents[count($fcontents)-1]); remember that array indexes start at 0, hence the "-1" bit -Original Message- From: Josh Edwards [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Where's the er

Re: [PHP] Where's the error?

2002-05-13 Thread Josh Edwards
Fixed !!! It should be $line = $fcontents[$i]; not $line = $fcontents[i]; Would you know the syntax to get the the last date? ie $lastdate = getmydate($line[(count($line))]); echo "$lastdate"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

RE: [PHP] How to stop site flipping?

2002-05-13 Thread Cal Evans
sweet. Very nice solution. * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:18 PM To: David McInnis; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Re: [PHP] Where's the error?

2002-05-13 Thread Josh Edwards
I put 'print_r($fcontents);' in and it outputted the array of my log file so I'm not sure what's wrong. Here's a section of the log file. I'm trying to get the date of the first access and the last access. 203.29.154.13 - - [08/May/2002:21:21:22 +1000] "GET /A1.html HTTP/1.1" 304 - "-" "Mozill

Re: [PHP] How to stop site flipping?

2002-05-13 Thread Justin French
This might help: I have a php file in my doc root called email.php. Instead of linking an email address with mailto:[EMAIL PROTECTED]";>, I link it like this: Justin French (Actually I do it with a function, but for clarity sake, I'll leave the above in place). email.php isn't a HTML page, it

RE: [PHP] Where's the error?

2002-05-13 Thread Martin Towell
$line = $fcontents[i]; should read $line = $fcontents[$i]; -Original Message- From: Josh Edwards [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Where's the error? Thanks heaps for your help I really appreciate it. I have made

Re: [PHP] Enabling Java in a web browser using PHP script

2002-05-13 Thread Mike Vanecek
Ditto. I would view this as a severe breach of privacy and security. It's one thing for a web page to use the resources of a browser that is currently available - but it's another thing to have a web page alter and control the resources of the browser. I certainly hope, and believe that most b

[PHP] Re: make hitting enter in a text box =

2002-05-13 Thread caocao
You can use Javascript to do so. When user submits, the script will replace all \n with . Or you can do it with your php script on server. There is a function called nl2br(). "Rob Packer" <[EMAIL PROTECTED]> дÈëÏûÏ¢ÐÂÎÅ :[EMAIL PROTECTED] > I have a simple script for a newsletter, with a text ar

Re: [PHP] Where's the error?

2002-05-13 Thread Lars Torben Wilson
On Mon, 2002-05-13 at 20:01, Josh Edwards wrote: > Thanks heaps for your help I really appreciate it. I have made the changes > you suggested but now I only get a blank screen. > > function getmydate($hit) > { > $single = explode (" ",$hit); > return $single[3].$single[4]; > } > > $filename =

[PHP] OS X Problems

2002-05-13 Thread Mitch Vincent
Hey guys, I just installed PHP 4.2 on my Powerbook this past week and started developing on it.. I use the Smarty template engine (smarty.php.net) and I started having a lot of trouble with it yesterday. Several people on the smarty list said that it was a problem with PHP 4.2 and OS X.. Smarty ma

Re: [PHP] How to stop site flipping?

2002-05-13 Thread John S. Huggins
If they reveal themselves in the AGENT info of each web request, you could act on that accordingly in your PHP code by looking at the REQUEST_AGENT variable. I use this tactic to prevent web sucking programs from access my site all at once. On Mon, 13 May 2002, David McInnis wrote: >-I have bee

Re: [PHP] Where's the error?

2002-05-13 Thread Josh Edwards
Thanks heaps for your help I really appreciate it. I have made the changes you suggested but now I only get a blank screen. function getmydate($hit) { $single = explode (" ",$hit); return $single[3].$single[4]; } $filename = ("combined_log"); //fopen ($filename, "r"); $fcontents = file($file

Re: [PHP] Enabling Java in a web browser using PHP script

2002-05-13 Thread Michael P. Carel
sorry for that what i mean is Javascript not Java. thanks for all who replied. - Original Message - From: "Lars Torben Wilson" <[EMAIL PROTECTED]> To: "Michael P. Carel" <[EMAIL PROTECTED]> Cc: "php" <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 10:25 AM Subject: Re: [PHP] Enabl

Re: [PHP] make hitting enter in a text box =

2002-05-13 Thread list peters
hi, i use nl2br($string) which replaces carriage returns with breaks on the output page chad > I have a simple script for a newsletter, with a text area box for someone to > type in their newsletter. Is it possible to make it so when someone hits > enter with the text box it will equal ? > >

[PHP] Re: css sheets in designs

2002-05-13 Thread Gary
Dennis Gearon wrote: > CSS sheets have to be in the document root somewhere, don't they? > > I'm trying to move as much, or at least what I consider security > related, from the phpnuke in the document root to a directory outside of > the document root. > style sheets works the same as any o

Re: [PHP] Where's the error?

2002-05-13 Thread Lars Torben Wilson
On Mon, 2002-05-13 at 19:32, Josh Edwards wrote: > This is meant to grab a date out of a log file from the first line of the > array but I'm getting a parse error on line 13. Any ideas? > > function getdate($hit) There is already a PHP function named 'getdate()'; you'll need another name here.

RE: [PHP] Re: One more Regular Expression Question...

2002-05-13 Thread Matt Friedman
$regex = "]*>(.*)"; is probably better. Plus, use eregi for case insensitive matching. This is probably not perfect, but it'll do what you want. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: Mo

[PHP] Where's the error?

2002-05-13 Thread Josh Edwards
This is meant to grab a date out of a log file from the first line of the array but I'm getting a parse error on line 13. Any ideas? function getdate($hit) { $single = explode (" ",$hit); return $single[3].$single[4]; } $filename = ("combined_log"); fopen ($filename, "r"); $fcontents = file

Re: [PHP] Enabling Java in a web browser using PHP script

2002-05-13 Thread Lars Torben Wilson
On Mon, 2002-05-13 at 18:03, Michael P. Carel wrote: > Hi to all, > > How could i automatically enable Java in a Web browser to execute java > script using PHP. I have some javascripts line's in my PHP script and im > worried that it will not work if the browser was not java enabled. Or is > ther

[PHP] Re: One more Regular Expression Question...

2002-05-13 Thread Brad Melendy
Thanks Philip. This gives me everything before the "'>" that I'm looking for but I believe it is because it occurs more than once. I think I need to count the times that "'>" occurs and then try to target the specific occurance that I need. But I'm guessing a little. Thanks for your help. ...

Re: [PHP] How to stop site flipping?

2002-05-13 Thread Jason Morehouse
A good start is: http://www.neilgunton.com/spambot_trap/ Though it has some specific details for mod_perl, much of the information can be tied to php. On Mon, 13 May 2002, David McInnis wrote: > I have been running a newswire service since 97 and recently noticed an > increase in the number of

Re: [PHP] building a "crawler" with PHP

2002-05-13 Thread Miguel Cruz
On Mon, 13 May 2002, Robert Mena wrote: > Hi, I'd like to know if anyone has good references > (links, ps, pdf etc) about building a crawler and tips > regarding doing that with PHP. > > This would be mostly for learning purposes. I'll just give you one tip: Keep track of your stack size! It's

RE: [PHP] Problem with the double quotes

2002-05-13 Thread Manisha
The file is HTML file. Actually I am sending email with message as this HTML file's content. I changed the header of email to accommodate HTML. Reading the file in array and putting array values as a message - whether still double quotes will not give problem ? manisha At 11:51 AM 5/14/02 +1

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Protection"

2002-05-13 Thread Miguel Cruz
Well, I promise you that I can re-activate any solely PHP-based remote killswitch in a matter of minutes - maybe hours if the person was really good. It's just too easy when you have the source code for the interpreter. Likewise the only truly effective PHP encoder would be one that created c

[PHP] How to stop site flipping?

2002-05-13 Thread David McInnis
I have been running a newswire service since 97 and recently noticed an increase in the number of people flipping our site to harvest email addresses contained in the news releases posted on our site. (prweb.com) I am running apache and php on a linux box. Can anyone suggest something that I can

Re: [PHP] building a "crawler" with PHP

2002-05-13 Thread olinux
I'm guessing that you want to build an external crawler, which I'm not sure about. [fopen() will probably be useful]. If you want to build an internal crawler have a look at the directory and filesystem functions. http://www.php.net/manual/en/ref.dir.php http://www.php.net/manual/en/ref.filesyste

Re: [PHP] Problem with the double quotes

2002-05-13 Thread Philip Olson
Please read the following: Using Strings in PHP http://www.zend.com/zend/tut/using-strings.php Strings http://www.php.net/manual/en/language.types.string.php Notice stripslashes(), addslashes(), the PHP directive magic_quotes_gpc and the use of ' vs ". Regards, Philip Olson On Tue

[PHP] [Q] Blocked in fread()

2002-05-13 Thread glory
I tried to write PHP code interacting with Windows-based application. function send_recv($ip, $port, $timeout, $QUERY) { $fp = fsockopen($ip, $port, $errno, $errstr, $timeout); if (!$fp) return NULL; fputs($fp, $QUERY); $REPLY = fread($fp, 128); while (!feof($fp)) { $REPLY. = frea

RE: [PHP] make hitting enter in a text box =

2002-05-13 Thread John Holmes
Or you could use nl2br(), which is what the function was designed for. Use it only when you echo the data to the browser, not when you store it to a database. Also note that there is a slight difference. nl2br() will leave the "\n" in there and _add_ a . The str_replace() example will, umm, repla

RE: [PHP] inputted value not being correctly ready by php

2002-05-13 Thread John Holmes
Is register globals on in your PHP.ini? Are you sure there isn't a cookie or session value of $user that's overwriting your POST value? I really hope this is the case, it's such a perfect argument for why PHP 4.2 is the way it is... :) ---John Holmes... > -Original Message- > From: Pete

RE: [PHP] Problem with the double quotes

2002-05-13 Thread Martin Towell
You shouldn't need to addslashes() if you read from a file, only for string literals, like in your test. Are the file(s) you're reading in, just text files? If so, try doing your code with the file read commands and you should see you don't need to addslashes() -Original Message- From: M

[PHP] Problem with the double quotes

2002-05-13 Thread Manisha
I want to display the content of a file containing double quotes. It is giving me error. I experimented with one small string variable. If I add 'Slash' manually, then it is ok. But addslashes function is not working $str1 = addslashes("this is the " " msg "); This gives me error. But $str

RE: [PHP] make hitting enter in a text box =

2002-05-13 Thread Martin Towell
when the data gets to php, do a $str = str_replace("\n", "", $str); (not tested, but should work) HTH Martin -Original Message- From: Rob Packer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 2:33 PM To: [EMAIL PROTECTED] Subject: [PHP] make hitting enter in a text box = I h

RE: [PHP] inputted value not being correctly ready by php

2002-05-13 Thread Peter
I am displaying the results here... this is just a very rough implemtation of what I want it to do ... my main issue was with $aSQL1 = "INSERT INTO table2 ( user_name, nameid) VALUES ( '$user', LAST_INSERT_ID() )"; and the actual submitted value of $user that was being inputted into the DB.

[PHP] building a "crawler" with PHP

2002-05-13 Thread Robert Mena
Hi, I'd like to know if anyone has good references (links, ps, pdf etc) about building a crawler and tips regarding doing that with PHP. This would be mostly for learning purposes. thanks. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience ht

[PHP] make hitting enter in a text box =

2002-05-13 Thread Rob Packer
I have a simple script for a newsletter, with a text area box for someone to type in their newsletter. Is it possible to make it so when someone hits enter with the text box it will equal ? TIA Robert -- -- NRC ONLINE -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

RE: [PHP] inputted value not being correctly ready by php

2002-05-13 Thread John Holmes
> $sql = "SELECT id, user_name, name FROM table1, table2, table3 WHERE ('id > = > table1.id') AND ('table1.userid = table2.id') AND ('table2.nameid = > table3.id')"; > $result=mysql_query( $sql ); > > > echo ("your id is $id"); > echo (""); > echo ("your name is $name"); > echo (""); > echo ("yo

[PHP] PHP Redhat 7.1 - apache issues

2002-05-13 Thread Bradley Goldsmith
Hi, Has anyone managed to get RedHat 7.1 and php 4.1.2 working together? I am trying to get away with using the stock rpm version of apache that comes with RH (for reasons beyond logic) - but I need to recomile php to support various other bits and pieces When I enable

RE: [PHP] version differences

2002-05-13 Thread Martin Towell
a little look at: http://www.php.net/manual/en/function.sprintf.php shows: (PHP 3, PHP 4 >= 4.0.0) and a look at: http://www.php.net/manual/en/function.floatval.php shows: (PHP 4 >= 4.2.0) So that's where your problem is Martin -Original Message- From: baldey_uk [mailto:[EMAIL PROTECT

[PHP] Enabling Java in a web browser using PHP script

2002-05-13 Thread Michael P. Carel
Hi to all, How could i automatically enable Java in a Web browser to execute java script using PHP. I have some javascripts line's in my PHP script and im worried that it will not work if the browser was not java enabled. Or is there any why to execute a java script line in PHP without enabling t

Re: [PHP] template logic problem

2002-05-13 Thread list peters
HI miguel, thanks for your answer. I was hoping i could do something like you suggested. Cold Fusion has a tag called that will include anything within the tags. You can call this function even on the last line of your php template. I used this a lot. Has anyone written a function like thi

RE: [PHP] Re: PHP and mySQL

2002-05-13 Thread John Holmes
Why can't you use one query? UPDATE Book2 SET stock = stock - $quantity WHERE stock >= $quantity AND booktitle = '$booktitle' ---John Holmes... > -Original Message- > From: Matthew Ward [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 13, 2002 11:52 AM > To: [EMAIL PROTECTED] > Subject: [

[PHP] MSSQL 2000's 'real' type kills php

2002-05-13 Thread Jerome Houston
Hi, i'm working on a win2k server running php 4.1.1 accessing MSSQL server 2000 on a win2k server. i've got a problem with a table that has 'real' numbers in it. codeinventory name PRC01 2.33 Prince Brand Chips FCA13 9.934E-2 Frozen Calamari when i mssql_query("se

[PHP] textarea problem

2002-05-13 Thread Enrique Vadillo
Hi, I'm not sure if this is purely a PHP problem but here it goes: i have a form that sends text data to a PHP script, i have some textarea field which goes like this: everytime i POST this, $mynote is truncated to 1867 bytes, i have repeatedly tried to submit text 2500 bytes long but it's al

[PHP] Remote test if file exists w/ fopen w/ u and p in url

2002-05-13 Thread Tad Coffin
of the function. I hope this clears up some confusion. /// When I use this code with a URL like: http://user:[EMAIL PROTECTED]/data/i37/20020513.trn it returns "The file exists" whether it does or doesn't. If I change the domain name to one that doesn't exist, then it retur

[PHP] Re: One more Regular Expression Question...

2002-05-13 Thread Philip Hallstrom
$string1 = "Here's the Schedule"; ereg(">(.*)", $string1, $matches); $string2 = $matches[1]; Something close to that anyway... On Mon, 13 May 2002, Brad Melendy wrote: > Hello, > I'm pretty stuck here. I wish to assign a variable the value of a > particular substrint of text from a second var

[PHP] inputted value not being correctly ready by php

2002-05-13 Thread Peter
Hi all, with the script below can any one see why the value of $user is always something like MjpwZXRlcmg6YWNhYjQ4M2IzMThjMmNiMzk2NDE3NmEyODFkNzBiZTk6MTA6OjA6MDowOjE6OjQw OTY= instead of the value inserted in the form, everything else works as it's suposed to with in the script/form. ");

[PHP] segmentation fault?

2002-05-13 Thread Kavin Stewart
I'm a bit of a PHP newbie, so please forgive me if this question is stupid =). Anyways, I am writing a script using curl to check a list of proxies to make sure that they can connect to google. Unfortunately, when I run the script I always end up getting a segmentation fault around iteration 250+.

[PHP] Question: overlaying PNG-8 w/ transparency

2002-05-13 Thread Hugh Bothwell
I've been reading through the documentation, and before going further I'll ask if someone's done this before: I'm putting a simple 2d tile-based game together; I have a series of tiles saved as 8-bit PNG images with transparency (the lowest tile has no transparent pixels). I have a bit-vector te

[PHP] version differences

2002-05-13 Thread baldey_uk
Hi all, Can anyone tell me whether or not the sprintf function existed in php 4.12? I have the following line: $order_value=sprintf('%.2f', floatval($quantity)*7.0); Which works at home on my version 4.2 of php but whne i upload to the server running 4.12 the script just seems to stop there and

Re: [PHP] Session Login and Redirect Problem

2002-05-13 Thread Dennis Moore
Issue resolved... For some reason if the $request_uri was empty, the redirect failed because it was going to itself. I enclosed the redirect around an if statement checking the request_uri variable. BTW, $request_uri is a hidden form variable that captures the actual $REQUEST_URI global varia

[PHP] One more Regular Expression Question...

2002-05-13 Thread Brad Melendy
Hello, I'm pretty stuck here. I wish to assign a variable the value of a particular substrint of text from a second variable. It's HTML so I've got something like: $string1 = "Here's the Schedule" I want to create a variable $string2 and assign it the value of whatever is between ">" and "".

RE: RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-13 Thread SHEETS,JASON (Non-HP-Boise,ex1)
I've watched this thread now I'll comment because it applies to many other things. Yes even if you take some steps to protect your code it may still be distributed, but it WILL be distributed if you don't. Think about security, as a sysadmin I can't just not apply security updates, you apply eve

RE: [PHP] Genus who came up with "Self Destruct Code" & "CopyPro tection"

2002-05-13 Thread Jason Soza
For what it's worth, it's been my experience that people that have the freetime to hack other people's work find pleasure in hacking other people's work, regardless of the time and talent it takes. If they had the motivation to write their own programs, they'd have a good programming job. Mayb

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-13 Thread Collins, Robert
This thread was started to discuss how a contract programmer can protect himself from getting ripped of by an dishonest person or company not every little hacker in the world. It only takes one person with some free time to break your protection scheme, and then the cat's out of the bag. If th

Re: RE: [PHP] Genus who came up with "Self Destruct Code" &"Copy Pro tection"

2002-05-13 Thread Jason Soza
I think the point of all this, and I'm sure I'll be corrected if I've misunderstood, you can spend your time encrypting, obfuscating, whatever, but either your program will get distributed as-is, reverse engineered, etc. If someone wants to do it, they'll do it. Using your example, sure, you'r

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-13 Thread SP
Everyone is arguing that these encoders can be cracked. Does anyone know of one, have you done it yourself? How long did it take? I mean I'm not going to leave my door unlocked cuz someone can pick it open. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: May 13, 2

[PHP] Re: [PHP-DEV] Timeline for Apache 2 full use?

2002-05-13 Thread Richard Archer
At 5:05 PM -0400 13/5/02, Eli White wrote: >We strive to provide the best possible >experience for everyone, and knowingly breaking for someone, when we didn't >have to, is 'bad'. (bad use of government money too, at least seen as >such). So I can test on my spare server, load it myself as I se

[PHP] Session Login and Redirect Problem

2002-05-13 Thread Dennis Moore
I am using Sessions with mod PHP4.0.6 with trans-sid set on.  Everything works fine.  However, after loggin in, I want to automatically redirect the user to a specific page if they came from an external site or were given a link via emal.   I realize that a session variable is not actually s

[PHP] Re: css sheets in designs

2002-05-13 Thread Michael Kimsal
Dennis Gearon wrote: > CSS sheets have to be in the document root somewhere, don't they? > > I'm trying to move as much, or at least what I consider security > related, from the phpnuke in the document root to a directory outside of > the document root. In our experience it's better to just hav

[PHP] String comparison...

2002-05-13 Thread Robert Cummings
Anyone know of a function for comparing two strings and (if God answers my prayer for sweet features) which can trigger a user defined function for the start and end of each block of text not found in the other?? If not maybe I'll write an extension addition myself :) cheers, Rob. -- .--

[PHP] Re: [PHP-DEV] Timeline for Apache 2 full use?

2002-05-13 Thread Eli White
At 01:00 PM 5/13/2002 -0700, Aaron Bannert wrote: >We would appreciate any feedback you could give, but if you are looking >for a committment on our part to some guarantee of code quality, I >suggest you review the license. No, I wasn't ... I just initially wanted to know if there was any planned

Re: [PHP] changing language on fly

2002-05-13 Thread Miguel Cruz
Well, you can do that, but it's a lot more work than the way I suggested (since Apache's mod_mime is already set up to handle language extensions like .en and .ru). For your way, you'd have to either set up a bunch of softlinks (ln -s index.php indexr.php), or write some very tricky mod_rewrite ru

Re: [PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread Miguel Cruz
On Tue, 14 May 2002, John Ngo wrote: > actually i looked up pjpeg > turns out its an actual filetype in its own right haha > > pjpeg uses progressive encoding as opposed to normal jpeg or something > whats weirder is everyfile i've tried on my computer appears to be pjpeg > encoded You're probab

Re: [PHP] template logic problem

2002-05-13 Thread Miguel Cruz
On Mon, 13 May 2002, list peters wrote: > This is my first project with php after using cold fusion for the last few > years! So far I have been pretty happy with php, but I have a problem with > my application logic (not a php problem, but hoping for a sexy solution.) > > I am using a template

Re: [PHP] css sheets in designs

2002-05-13 Thread Miguel Cruz
On Mon, 13 May 2002, Dennis Gearon wrote: > CSS sheets have to be in the document root somewhere, don't they? > > I'm trying to move as much, or at least what I consider security > related, from the phpnuke in the document root to a directory outside of > the document root. If you're linking to

RE: [PHP] ImageLines with styles

2002-05-13 Thread Leotta, Natalie (NCI/IMS)
Thank you so much! I'd looked all over, but apparently not in the right places. Thanks again!! -Natalie -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 4:32 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] ImageLin

Re: [PHP] ImageLines with styles

2002-05-13 Thread Rasmus Lerdorf
http://www.php.net/manual/en/function.imagesetthickness.php On Mon, 13 May 2002, Leotta, Natalie (NCI/IMS) wrote: > Hello. I'm drawing line graphs and for each line they want a different > style (dots, dashes, etc.). I can't find a way to make the line draw > thicker than normal, and the regul

[PHP] ImageLines with styles

2002-05-13 Thread Leotta, Natalie (NCI/IMS)
Hello. I'm drawing line graphs and for each line they want a different style (dots, dashes, etc.). I can't find a way to make the line draw thicker than normal, and the regular thickness isn't thick enough. I've tried drawing 3 lines next to each other, which works fine with solid lines, but it

Re: [PHP] Combine 2 Db Columns with an Array?

2002-05-13 Thread 1LT John W. Holmes
So you are taking your results and putting it in an array, right? And you basically want to create two rows in your result array, for each row in the table? $result = mysql_query("SELECT Title, Alt_Title, Size, Price, More, Comment FROM table"); while($row = mysql_fetch_array($result)) { $Title

[PHP] a little authentification handler doesnt work ...

2002-05-13 Thread David D
Hi all, I try to use your session handler, but didnt mange to I can debug the script and notice that $GLOBALS['HTTP_SESSION_VARS']; doesnt exist ...so $_SESSION became null ? I donwload that at http://adnoctum.netfirms.com/auth/. The shity code : /** * Utility function called implicitly wh

Re: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-13 Thread Analysis & Solutions
On Mon, May 13, 2002 at 05:49:04PM +0200, Sebastian A. wrote: > function elementContent($parser, $data, $attrs='') { > global $tag, $p; > > $ti = sizeof( $tag ) - 1; > > if ( $tag[$ti] == 'LIST_ITEM' ) { > $p->ART_ID[] = $data; > } > } You're not

[PHP] css sheets in designs

2002-05-13 Thread Dennis Gearon
CSS sheets have to be in the document root somewhere, don't they? I'm trying to move as much, or at least what I consider security related, from the phpnuke in the document root to a directory outside of the document root. -- If You want to buy computer parts, see the reviews at: http://www.cne

[PHP] Re: [PHP-DEV] Timeline for Apache 2 full use?

2002-05-13 Thread Aaron Bannert
On Mon, May 13, 2002 at 03:23:17PM -0400, Eli White wrote: > *cackle* Ok, and after I get fired for having to explain to my boss that > it was my fault that the server was down because I was playing with > experimental code, I'll have plenty of time to write you back about the > problems I enc

RE: [PHP] PHP Boolean Interpreter - Need to search a mySQL database

2002-05-13 Thread SpamSucks86
This is no good because it doesn't check for single or double quotes. Inputting anything with quotes gives ugly ugly errors. Plus, Boolean interpreters should group quoted words as a single term. It doesn't check for malicious code input at all. I tried editing it to make it better, but after lots

Re: [PHP] Need help with Arrays

2002-05-13 Thread Miguel Cruz
Can you be more specific about what you mean by "I'm having a lot of trouble passing the values in the first array to the second array"? You have a lot more than two arrays, so we don't know which are the first and second. And you are passing a lot of things around, so we don't know where you are

Re: [PHP] Combine 2 Db Columns with an Array?

2002-05-13 Thread Miguel Cruz
On 13 May 2002, PHP User wrote: > I am trying to find the best way to combine 2 columns in a MySQL Db call into > one by using an array. I’ve tried array_push, implode, explode, array_merge and > extract all with no luck. I feel I am close but have read all I can and still am > hitting a dead end.

Re: [PHP] Genus who came up with "Self Destruct Code" & "Copy Protection"

2002-05-13 Thread Miguel Cruz
On 13 May 2002, Udo Giacomozzi wrote: > If the whole thing is designed the right way. > A copy protection I like for example are dongles. Ok, they are not > applicable to PHP and aren't 100% secure either [don't want to start a > discussion about this now]. But this system makes no problems for

[PHP] Re: [PHP-DEV] Timeline for Apache 2 full use?

2002-05-13 Thread Eli White
*cackle* Ok, and after I get fired for having to explain to my boss that it was my fault that the server was down because I was playing with experimental code, I'll have plenty of time to write you back about the problems I encountered :) Seriously though, if at this point, all the 'base code

[PHP] Re: Question about string replace -PHP

2002-05-13 Thread Bram van Leur
Replacing a constant string by another constant string works easily with str_replace (http://www.php.net/str_replace). More advanced replacements (with dynamic parts for example) can be replace using Regular expressions (look that up in the Manual, it's quite complex). Could give an example of

Re: [PHP] Question about string replace -PHP

2002-05-13 Thread Jason Wong
On Tuesday 14 May 2002 03:06, Dan McCullough wrote: > I have a script pulling in certain text from a site. I want the script to > then from that retrieved text, to replace the incorrect domain with another > domain. > > What is a way that I can do that, I know the domain that its going to put > i

Re: [PHP] session problems...

2002-05-13 Thread 1LT John W. Holmes
In addition to what Kevin said: $_SESSION and $_session are not the same variables. Use quotes in your session_register(), too: session_register("u_name"), although you don't need session_register() at all, if you are using $_SESSION['u_name'] = "value"; syntax. ---John Holmes... > > Ok I thin

Re: [PHP] header-sending misbehaving

2002-05-13 Thread 1LT John W. Holmes
> On Monday 13 May 2002 23:47, erich wrote: > > suppose i want to login to a privileged area sending header info to > > browser, however, i get header warning as follows when i go to a db system > > named eskuel: > > Warning: Cannot add header information - headers already sent by (output > > star

[PHP] Question about string replace -PHP

2002-05-13 Thread Dan McCullough
I have a script pulling in certain text from a site. I want the script to then from that retrieved text, to replace the incorrect domain with another domain. What is a way that I can do that, I know the domain that its going to put in the script, and I know the domain that I want to point it t

Re: [PHP] How *not* to assume MySQL will return data?

2002-05-13 Thread 1LT John W. Holmes
$result = mysql_query("..."); if($row = mysql_fetch_array($result)) { do { //loop through results }while($row = mysql_fetch_array($result)); } else { echo "No rows returned"; } You could also just check mysql_num_rows() to see if any were returned and base your if off of that. ---John Ho

[PHP] Re: Reading dir contents...

2002-05-13 Thread Jas
here is a function to read the contents of a directory that then pulls it into a drop down select list. You may want to modify it for your needs but this should work for you. $dir_name = "/virtual/path/to/images/directory/"; $dir = opendir($dir_name); $file_list .= " "; while ($file_name = read

[PHP] Re: [PHP-DEV] Timeline for Apache 2 full use?

2002-05-13 Thread Aaron Bannert
On Mon, May 13, 2002 at 02:19:42PM -0400, Eli White wrote: > As the subject says, can anyone give me a timeline estimate for full > usage (not experimental) of PHP within Apache 2.0? > > I ask because I am the maintainer of a server that recently got LOADS of > hits, and was brought to it's kne

  1   2   >