Re: [PHP] My new toy!

2001-07-07 Thread Tom Carter
point 1...make you password fields of type password rather than text INPUT TYPE=password rather than INPUT TYPE=text Okay I need some people to jump in and try to use my site to see if it is working OK. I know I have a lot of work to do on it but I just want some feed back and to get a little

[PHP] Real Estate Catalog

2001-07-07 Thread Joe Smith
I am working on my first MySQL/PHP app. It is a real estate catalog. To build it, I am modifying the shopping cart found in Welling Thomson's PHP MySQL Development. I think I am getting the gist of the process, but could use a little help from more experienced folks out there. When the app

Re: [PHP] Real Estate Catalog

2001-07-07 Thread [EMAIL PROTECTED]
on 7/7/01 2:43 AM, Joe Smith at [EMAIL PROTECTED] wrote: If you'd rather I bore everyone with the details, let me know and I'll post my questions to this thread for all to see and chime in on. If your questions are clear, and if you don't post too much code people here seem to be very nice.

[PHP] file function. please help..

2001-07-07 Thread Doron
hello. how can i make the file function to put the first 9 lines, in values 01, 02, 03, 04, 05, 06, 07, 08, 09 instead of 1, 2, 3, 4, 5, 6, 7, 8, 9? 10x... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] file function. please help..

2001-07-07 Thread ReDucTor
huh, explain a little more??? - Original Message - From: Doron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 6:09 PM Subject: [PHP] file function. please help.. hello. how can i make the file function to put the first 9 lines, in values 01, 02, 03, 04, 05,

RE: [PHP] file function. please help..

2001-07-07 Thread Don Read
On 07-Jul-01 Doron wrote: hello. how can i make the file function to put the first 9 lines, in values 01, 02, 03, 04, 05, 06, 07, 08, 09 instead of 1, 2, 3, 4, 5, 6, 7, 8, 9? file ? numbers ? ... gotta be the example from the manual (somebody reads it, Halleluja!). Have you looked at

[PHP] never mind. i have already solved my problam.. 10x anyway.

2001-07-07 Thread Doron
ReDucTor [EMAIL PROTECTED] wrote in message 00a001c106b4$07dd2d20$0200a8c0@ReDucTor">news:00a001c106b4$07dd2d20$0200a8c0@ReDucTor... huh, explain a little more??? - Original Message - From: Doron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 6:09 PM Subject:

[PHP] how do i remove the first 3 characters from a variable?

2001-07-07 Thread Doron
10x -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] can I fopen an https url?

2001-07-07 Thread Jeff Orrok
and assuming I can, will this dump the resulting page to the browser? $fp = fopen( $buildURI, r ); fpassthru( $fp ); fclose( $fp ); -- :-J -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] robot.txt file

2001-07-07 Thread Tom Carter
Hi Don, How do you work this out? ie how do you know when you are spidered? I'm interested in what logs and what patterns lead you to know this? Thanks, Tom On 07-Jul-01 Mark Lo wrote: Hi, I don't know how to write a robot.txt file. Can anyone send me a link or a sample

RE: [PHP] how do i remove the first 3 characters from a variable

2001-07-07 Thread Don Read
On 07-Jul-01 Doron wrote: 10x 12x 10x; I win. Normally the question is presented in the message text. (yure not from 'round here, areya ?) . -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the

Re: [PHP] how do i remove the first 3 characters from a variable?

2001-07-07 Thread Doron
and how do i do that? Maxim Maletsky [EMAIL PROTECTED] wrote in message news:DC017B079D81D411998C009027B7112A015ED367@EXC-TYO-01... If you loop one then Yes. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED]

Re: [PHP] how do i remove the first 3 characters from a variable?

2001-07-07 Thread Chris Lambert - WhiteCrown Networks
To loop: unset($temp); $vars = array(this, that); foreach ($vars as $var) { $temp[] = substr($var, 0, 3); } $vars = $temp; Single array element: $vars = array(this, that); $vars[1] = substr($vars[1], 0, 3); /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats

Re: [PHP] how do i remove the first 3 characters from a variable?

2001-07-07 Thread Doron
does it work on arrays too?? Maxim Maletsky [EMAIL PROTECTED] wrote in message news:DC017B079D81D411998C009027B7112A015ED364@EXC-TYO-01... php.net/substr $var = how do i remove the first 3 characters from a variable; $substract = substr($var, 3); // returns ' do i remove the first 3

Re: [PHP] robot.txt file

2001-07-07 Thread rm
Everything you need to know about robots.txt files but were afraid to ask g http://www.robotstxt.org/wc/robots.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing List

[PHP] How to build this SQL statement?

2001-07-07 Thread ckieninger
Hello, i've to build a SQL Statement from a table with the following resultset table with rows id subid roleid rolebundle name 50 0 0 50.0.0 header1 50 1 0 50.1.0 subheader1 50

Re: [PHP] How to apply something to every variable

2001-07-07 Thread teo
Hi Chris! On Fri, 06 Jul 2001, Chris Anderson wrote: I was playing around trying to find a way to addslashes() to all my variables, and I came up with this snippet. Hope it helps someone why don't you turn on magic_quotes_gpc then? $keys = array_keys($HTTP_POST_VARS); $post_size =

Re: [PHP] Very urgent!!!

2001-07-07 Thread Henrik Hansen
Duy B [EMAIL PROTECTED] wrote: 1. (*) text/plain Dear all, Is there anybody know how to upload a file gif or jpg from a form into Oracle database? I am very keen to solve that problem. Please show me soon. insert the image data into a BLOB field, using normal sql syntax.

[PHP] Re (2): [PHP] PHP 4.0.6 and Apache 1.3.6 ?

2001-07-07 Thread Micha Ober
I'm using the Win32 version of apache 1.3.6 ! in httpd.conf i added the following: LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php

RE: [PHP] how do i remove the first 3 characters from a variable?

2001-07-07 Thread PHPBeginner.com
I think your question was answered already by Chris, if not (or if you think two examples are better then one) then: $array[0] = 'how do i remove the first 3 characters from a variable?'; $array[1] = 'when do i remove the first 3 characters from a variable?'; $array[2] = 'why do i remove the

RE: [PHP] how do i remove the first 3 characters from a variable?

2001-07-07 Thread PHPBeginner.com
oops foreach($array as $key=$val) { $array[$key] = substr($val, 3); } this is cleaner. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From:

Re: [PHP] How to build this SQL statement?

2001-07-07 Thread Kurt Lieber
ummm...it's not clear at all what your decisioning criteria are. That is to say, how did you come up with the 6 rows in your result set? Are they chosen randomly or is there some rhyme/reason to how you chose them? (and if it's the latter -- what is your rhyme/reasoning?) - Original

[PHP] chdir() help

2001-07-07 Thread McShen
hi Currently, i am working in e:\work, and there is a folder named image under e:\work, so, the path to image is e:\work\image. I have a script under e:\work, and i wanna display all images under the folder e:\work\image, I use chdir() to change the directory. but it wouldn't work. it still

Re: [PHP] chdir() help

2001-07-07 Thread mike cullerton
i believe the script considers it's own directory as it's current working directory. try calling the files by image/$file_name on 7/7/01 9:38 AM, McShen at [EMAIL PROTECTED] wrote: hi Currently, i am working in e:\work, and there is a folder named image under e:\work, so, the path to

Re: [PHP] chdir() help

2001-07-07 Thread Chris Lambert - WhiteCrown Networks
I'm not sure I know exactly what you want, as the script isn't clear on its purpose. If you simply want to print out all the images in e:\work\image, and nothing else, the code would be much simpler. ? $dir = opendir(e:/work/image); while ($file_name=readdir($dir)) { if ($file_name .

Re: [PHP] chdir() help

2001-07-07 Thread Kurt Lieber
Look at your code -- where do you tell it to set $file_name equal to the file handles within e:\work\images? $file_name is only being set to the values within e:\work -- not e:\work\images. If you only need to display the images within e:\work\images, then why not just set $dir_name to that in

RE: [PHP] is_alpha_numeric ?

2001-07-07 Thread John Monfort
I tried that, but it didn't work. if (ctype_alnum($var)) { echo ok; }else { echo no; } I got an 'undefined function' error. php4.0.4pl1 Did I miss something ? -john __John Monfort_ _+---+_ P E P I

RE: [PHP] is_alpha_numeric ?

2001-07-07 Thread PHPBeginner.com
yes, you have to enable it: --enable-ctype ...and, ctype is available only starting from PHP v.4.0.4+, ...and it is only the experimental family of functions... (this you read on the site, right?) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP

RE: [PHP] is_alpha_numeric ?

2001-07-07 Thread John Monfort
I missed that part... Thanks. __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com The world is waiting, are you ready? -+___+- On Sun, 8 Jul 2001, PHPBeginner.com wrote:

[PHP] foreach loop

2001-07-07 Thread John Meyer
When I go through a foreach loop, are the values of the individual items in the array changed? For instance: $variables = array($author_firstname, $author_lastname, $author_dob, $author_dod, $author_bio); foreach($variables as $value) { $value = strip_tags($value); $value =

RE: [PHP] foreach loop

2001-07-07 Thread PHPBeginner.com
actually the logic is follow: every array has a key, therefore, you use: foreach($variables as $key = $value) { $variables[$key] = strip_tags($value); $variables[$key] = AddSlashes($value); } where you get an array element with whatever key it uses, work on it's value

RE: [PHP] foreach loop

2001-07-07 Thread PHPBeginner.com
If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing I really don't think so :-) -maxim maletsky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Re: when to delete a temporary file ?

2001-07-07 Thread Arash Dejkam
Lasse [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Arash Dejkam [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I've created a site where users can upload photos and specify which other users are allowed to view

Re: [PHP] chdir() help

2001-07-07 Thread McShen-CelebritieZones.com
Chris, I do that because i wanna have control of how many images will be displayed at once. I understand what you are doing, but, you script will just display all images at once, right? I wanna display like 20 images, then have a next button,, you know what i mean? - Original Message -

Re: [PHP] chdir() help

2001-07-07 Thread McShen
by the way, what do u guys use as your news reader client? how do u reply to my post and send me an email at the same time? Do u manually add my email to Cc: or you just hit reply to group? I don't know how to do this. Kurt Lieber [EMAIL PROTECTED] wrote in message 0c7f01c106fc$9c32e170$[EMAIL

Re: [PHP] chdir() help

2001-07-07 Thread Kurt Lieber
We (or at least I) are on the mailing list, not the newsgroup. Same content, different delivery format. www.php.net to sign up. (beware -- it's a HIGH volume list) --kurt McShen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... by the way, what do u guys use as

Re: [PHP] chdir() help

2001-07-07 Thread Kurt Lieber
In that case, it would be better to read all the image names into an array and then use that to spit out 20 images at a time. You'll get better performance that way, too. --kurt - Original Message - From: McShen-CelebritieZones.com [EMAIL PROTECTED] To: Chris Lambert - WhiteCrown

[PHP] Parsing HTML files?

2001-07-07 Thread Jeff Lewis
Is it possible to parse an HTML like at: http://hyrum.net/wwbl/HTML/watrost.htm ? I'd like to be able to grab the player name and ratings and add them to a pretty HTML output :) Jeff

RE: [PHP] Parsing HTML files?

2001-07-07 Thread Maxim Maletsky
Yeah it is doable, just use fsockopen, and parse the input into your database and go wild. Keep in mind - doing it directly on request is VERY slow. You should be pre-parsing it and then showing the data from your resources. Sincerely, Maxim Maletsky Founder, Chief Developer

Re: [PHP] Global Variables -- why not have them?

2001-07-07 Thread John Meyer
At 02:55 PM 7/7/01 -0400, Mitch Vincent wrote: I've been using PHP for several years now and one question has plagued me the entire time. Why doesn't PHP have global variables? Before someone says it, I do know PHP sort of does have global variables, but having to specify GLOBAL in any

[PHP] Determining the length of a string

2001-07-07 Thread James Bartlett
Hi, Say you read in the contents of a text file and wanted to know the length of the text you had read in what command would you use? Thanks James

Re: [PHP] Determining the length of a string

2001-07-07 Thread Mark Charette
Hmmm ... If I didn't know something like that I'd probably do something stupid like go to http://www.php.net, type in string or length for a keyword in the Search box, look at what came back (including the function strlen) and explore the other calls nearby, too. Mark C. - Original Message

Re: [PHP] PHP map?

2001-07-07 Thread Chris Lambert - WhiteCrown Networks
You'd pretty much have to do that pixel by pixel. What exactly do you want the final application to do...often times there are alternative solutions derived at by others knowing what you wish to accomplish. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web

Re: [PHP] mysql_insert_id()

2001-07-07 Thread Chris Lambert - WhiteCrown Networks
I've used integer on many occasions with auto_increment, and have had no problems. mysql_insert_id() returns the unique identifyer of the last record inserted with mysql_query(). I'm not sure what MySQL function you're referencing as an alternative, but you should be fine with an

RE: [PHP] PHP/Apache security question

2001-07-07 Thread ..s.c.o.t.t..
of course that's possible... it's not default, but it's very possible i think it's an apache module called suEXEC that will run the script with the script owner's name.group, not apache.apache -Original Message- From: [EMAIL PROTECTED] Subject: [PHP] PHP/Apache security question

Re: [PHP] Real Estate Catalog

2001-07-07 Thread Chris Anderson
Don't say steal, say learn from : ) - Original Message - From: [EMAIL PROTECTED] To: Joe Smith [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, July 07, 1979 2:44 AM Subject: Re: [PHP] Real Estate Catalog on 7/7/01 2:43 AM, Joe Smith at [EMAIL PROTECTED] wrote: If you'd rather

Re: [PHP] Something weird

2001-07-07 Thread Chris Anderson
So how is that weird? - Original Message - From: David OBrien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 2:02 PM Subject: [PHP] Something weird I just installed a fresh RH 7.1 server with compiled apache and php 4.0.6 -- PHP General Mailing List

[PHP] Restoring a Dump File With PHP

2001-07-07 Thread Chris Anderson
I created a MySQL dump file (.sql) and I wanted to use it to restore my database. Unfortunately the manual (MySQL) only shows the command line method: mysql database file.sql I tried this in PHP and it didn't work. Does anyone know how to load the .sql file into the database through

Re: [PHP] Convert MP3s using PHP ?

2001-07-07 Thread Chris Anderson
Try looking for BladeEnc. It is a freeware encoding dll/runtime that works in windows and unix and is completely command line - Original Message - From: Tom Carter [EMAIL PROTECTED] To: Michel 'ZioBudda' Morelli [EMAIL PROTECTED]; Micha Ober [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED]

Re: [PHP] Restoring a Dump File With PHP

2001-07-07 Thread Mark Charette
How does this _not_ work (as long as you supply the path to mysql, the username, and the password mark C. - Original Message - From: Chris Anderson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 3:25 PM Subject: [PHP] Restoring a Dump File With PHP I created

Re: [PHP] Restoring a Dump File With PHP

2001-07-07 Thread Chris Lambert - WhiteCrown Networks
phpMyAdmin - www.phpwizard.net/ or... http://www.sitepointforums.com/showthread.php?postid=193539#post193539 /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Chris Anderson

[PHP] arrays in forms.

2001-07-07 Thread John Meyer
Hi, I have a multi-select listbox set up like this: Author (you are able to select more than one.a href=addauthor.phpClick here to add a new author/a)br: select name=author multiple size=5 ?php $result = mysql_query(SELECT AUTHOR_ID, AUTHOR_FNAME, AUTHOR_LNAME FROM AUTHORS;) or

Re: [PHP] arrays in forms.

2001-07-07 Thread John Meyer
mysql_auery($query) or die(echo mysql_error()); By the way, I know this line should be mysql_query John Meyer [EMAIL PROTECTED] Programmer If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing -- PHP General Mailing List

RE: [PHP] PHP/Apache security question

2001-07-07 Thread Aaron Bennett
Does anyone know if SuExec plays friendly with PHP? From my recollection, when using suexec, it only alters the current UID/GID for scripts executed by httpd. Does PHP get treated the same way as would say a perl cgi script? I've looked a little at how phpwebhosting.com does it, and they set

Re: [PHP] mysql_insert_id()

2001-07-07 Thread Don Read
On 07-Jul-01 Chris Lambert - WhiteCrown Networks wrote: I've used integer on many occasions with auto_increment, and have had no problems. mysql_insert_id() returns the unique identifyer of the last record inserted with mysql_query(). I'm not sure what MySQL function you're referencing as an

[PHP] PHP with MS Access?

2001-07-07 Thread Jeff Lewis
Anyone have a tutorial or site dealing with PHP and MS Access databases? Jeff www.hyrum.net www.xnull.com

[PHP] Strange problem with fputs ($fp, $newVote)

2001-07-07 Thread SED
Hi, I'm having strange problem with the fputs() - it occurs only on my IIS server but not on the Linux/apache server (I use the IIS while programming). The problem: fputs ($fp, $newVote); It does not write the content of $newVote into the text file $fp is pointing to. If I check the

Re: [PHP] foreach loop

2001-07-07 Thread Steve Edberg
At 10:31 AM -0700 7/7/01, John Meyer wrote: When I go through a foreach loop, are the values of the individual items in the array changed? For instance: $variables = array($author_firstname, $author_lastname, $author_dob, $author_dod, $author_bio); foreach($variables as $value) {

[PHP] require_once(); questions

2001-07-07 Thread Inércia Sensorial
Hi All, I have a function that includes files based on some SQL queries. On one of the first loaded files, I want to define a function and use it on another included file. Something like: includes file: first_file.inc.php This file has: $test = Show me!; Then include file: second_file.php

[PHP] install help

2001-07-07 Thread Evan Nemerson
I am trying to install PHP 4.0.6 with Apache 1.3.20 on Linux Mandrake 8. I finally managed to get throught ./configure, then typed 'make install'. Here's the last few lines: Inf file included from main.c:26: php.h:285:30: tsrm_virtual_cwd.h: No such file or directory make[2]: *** [main.lo]

RE: [PHP] Strange problem with fputs ($fp, $newVote)

2001-07-07 Thread SED
Hi again, I got around the problem just by doing following. However, the problem is weird (I'm using PHP 4.0.5 for IIS). $fp = fopen ($filename, a+); $fileContent = fread ($fp, filesize ($filename)); ... fclose ($fp); $fp = fopen ($filename, a); - the

RE: [PHP] foreach loop

2001-07-07 Thread John Monfort
If we didn't have Microsoft, we'd have to blame ourselves for all of our programs crashing If we didn't have microsoft, 'Crashing Programs' wouldn't be part of our daily vocabulary :) __John Monfort_ _+---+_ P E P I E D E S I

[PHP] can't generate gif!!!

2001-07-07 Thread Rama
I have problem using all image functions for gif. Does anyone have a suggestion how to convert gif images to png images? It's ok if I have to use other programming language instead of PHP. Ps: in case you wonder, I can't control the input file type. It will be very helpful if I can at least

Re: [PHP] install help

2001-07-07 Thread chris schneck
Usually after a ./configure there is a make then a make install, sometimes even a make test before a make install - Original Message - From: Evan Nemerson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 3:02 PM Subject: [PHP] install help I am trying to install

Re: [PHP] PHP map?

2001-07-07 Thread [EMAIL PROTECTED]
on 7/7/01 3:36 PM, Chris Lambert - WhiteCrown Networks at [EMAIL PROTECTED] wrote: You'd pretty much have to do that pixel by pixel. What exactly do you want the final application to do...often times there are alternative solutions derived at by others knowing what you wish to accomplish.

Re: [PHP] PHP map?

2001-07-07 Thread Inércia Sensorial
That´s a great idea Susan. While I can't help you, I've never seen similar application, and I like it. Hope you can make it! :-) -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: mysql_insert_id()

2001-07-07 Thread maatt
I have been reading about this function and I have a question. The PHP manual warns about using it if your AUTO_INCREMENT ID field is a BIGINT. I am using type INTEGER. Am I okay with this one, or should I use the MySQL function. Works just fine in everything I do. Maatt -- PHP General

[PHP] Re: mysql_insert_id()

2001-07-07 Thread Inércia Sensorial
I used this function with a BIGINT field once, and it worked. I guess problemas appear when it goes beyond an INT filed, or, the number you are retrieving has more than 11 digits. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca John Meyer [EMAIL PROTECTED]

[PHP] Re: eregi replace help

2001-07-07 Thread maatt
ereg_replace(gt; [^]*/a, , $string); or ereg_replace(.*\n, , $string) if the unwanted bits end in new-lines ?? Richard van Leeuwen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I want to delete some lines original: a href=http://www.example.com/1.html;

Re: [PHP] PHP map?

2001-07-07 Thread Mark Charette
Start at ftp://sepftp.stanford.edu/pub/World_Map/ which is a copy of the CIA world data. http://hjem.get2net.dk/bnielsen/ciaworld.html gives some info for conversion of the cbd format to lat/long. Projections (a science unto itself) is best left to the interested reader. It ain't as simpla as it

Re: [PHP] require_once(); questions

2001-07-07 Thread Chris Anderson
Actually this does work: //First_File.php ? $test = I am the test variable; ? //Second_File.php ? echo $test; ? //Active file ? require First_File.php; require Second_File.php; ? That would produce the output of : I am the test variable An include or require just places the

Re: [PHP] How to apply something to every variable

2001-07-07 Thread Chris Anderson
The true point of that snippet was to apply something to all my variables. Plus, not all servers have that option on : - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 7:49 AM Subject: Re: [PHP] How to apply something to every variable Hi

Re: [PHP] How to apply something to every variable

2001-07-07 Thread Chris Anderson
btw, thanks. Before now I had always sized out my arrays and looped through them. I never noticed how easy a foreach could emulate that. - Original Message - From: PHPBeginner.com [EMAIL PROTECTED] To: Chadwick, Russell [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, July 07, 2001

Re: [PHP] foreach loop

2001-07-07 Thread Chris Anderson
Good call - Original Message - From: John Monfort [EMAIL PROTECTED] To: PHPBeginner.com [EMAIL PROTECTED] Cc: John Meyer [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 6:27 PM Subject: RE: [PHP] foreach loop If we didn't have Microsoft, we'd have to blame

[PHP] Question: Processing files in directory and parsing...

2001-07-07 Thread Jeff Lewis
I have a directory with 163 files. I'd like to go through and process all files with the word rost in them. I'd like to go through each of these files and go line by line to enter the data into a mySQL table. An example of the file would look like this: http://hyrum.net/wwbl/HTML/watrost.htm

RE: [PHP] PHP/Apache security question

2001-07-07 Thread ..s.c.o.t.t..
if the script is running as user scott group scott, then it can only alter/read/execute files that the user scott has access to... nothing else. of course, if you have user scott, group users, and have user tom in group users, then any files that have the group read/write/exec permissions set

[PHP] PHP Configuration buglet

2001-07-07 Thread Shawn Starr
CrackLib uses crack.h not packer.h on Linux (at least, the sources I had had crack.h) Could someone change the configure script to look for crack.h or packer.h because there's so many implimentations of CrackLib out there? Shawn. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Question: Processing files in directory and parsing...

2001-07-07 Thread [EMAIL PROTECTED]
on 7/7/01 9:02 PM, Jeff Lewis at [EMAIL PROTECTED] wrote: I have a directory with 163 files. I'd like to go through and process all files with the word rost in them. Are these files named in any logical way? ie. 01.htm 02.htm etc. Do you have a list of the files someplace? I'm not certain

[PHP] registering objects as session variables

2001-07-07 Thread mike cullerton
hey folks, i'm trying to register an object as a session variable and feel like i'm chasing my tail. i either get the define class before starting session problem or the can't send header error. as soon as i fix one, i cause the other. what are folks doing about this? roll you own using

Re: [PHP] Question: Processing files in directory and parsing...

2001-07-07 Thread [EMAIL PROTECTED]
ahh here is what you need: $d = dir(/etc); while($entry=$d-read()) { echo $entry.br\n; //put what you want to do to each thing in the dir here... } $d-close(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] watermarks

2001-07-07 Thread Jon Yaggie
I am afraid I am completely stupid in the way that watermarks work(researching now). however I need to know quickly if I can dynamically apply a watermark to an image using PHP. Any one know? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs

Re: [PHP] Question: Processing files in directory and parsing...

2001-07-07 Thread mike cullerton
on 7/7/01 7:02 PM, Jeff Lewis at [EMAIL PROTECTED] wrote: So I need to know how to process the files in the directory and then how to process a few lines. The structure will always be the same and having the columns starting at the same position each time. first, do the files have all the

Re: [PHP] Question: Processing files in directory and parsing...

2001-07-07 Thread mike cullerton
on 7/7/01 7:38 PM, mike cullerton at [EMAIL PROTECTED] wrote: on 7/7/01 7:02 PM, Jeff Lewis at [EMAIL PROTECTED] wrote: So I need to know how to process the files in the directory and then how to process a few lines. The structure will always be the same and having the columns starting at

Re: [PHP] require_once(); questions

2001-07-07 Thread Inércia Sensorial
I guess I know what may be wrong. My function that includes the files, it is called several times, with different arguments being passed. It is something like: function LoadPositionedModules ($posv, $posh) { // $posv is vertical position, and $posh is horizontal position // Inside

[PHP] High Ascii chars

2001-07-07 Thread rm
php3.x We have a large number of people submitting a large number of docs...I'm having a problem with some docs coming through with high ascii characters in the text, apparently the dbm database we're using chokes on some high ascii chars. I need to eliminate characters in the text from 122 to

Re: [PHP] require_once(); questions

2001-07-07 Thread Chris Anderson
Try putting GLOBAL infront of the var to give it the greater scope - Original Message - From: Chris Anderson [EMAIL PROTECTED] To: Inércia Sensorial [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 8:50 PM Subject: Re: [PHP] require_once(); questions Actually this

Re: [PHP] High Ascii chars

2001-07-07 Thread Justin Farnsworth
rm: Yes, we have this problem with clients submitting stories, or some such, by cutting and pasting from word processors. You can get around it by using javascript to check the text on exit from the form field, and then either replace the high ASCII with ? or strip it out, as appropriate. This

Re: [PHP] High Ascii chars

2001-07-07 Thread Zak Greant
rm wrote: php3.x We have a large number of people submitting a large number of docs...I'm having a problem with some docs coming through with high ascii characters in the text, apparently the dbm database we're using chokes on some high ascii chars. I need to eliminate characters in the

[PHP] I thought I beat the safe mode ... now this ...

2001-07-07 Thread [EMAIL PROTECTED]
Okay I've been trying to do file uploads on a server that is in safe mode (not my choice) I was able to get around the safe mode by doing: $path = images/$filetitle$user$filesuff; if (is_uploaded_file ($form_data)) { move_uploaded_file (addslashes($form_data), $path); } And it worked, so now

Re: [PHP] watermarks

2001-07-07 Thread Chris Lambert - WhiteCrown Networks
If the image is on a local server, you could just overlay the watermark with GD or ImageMagick. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Jon Yaggie [EMAIL PROTECTED]

Re: [PHP] watermarks

2001-07-07 Thread [EMAIL PROTECTED]
on 7/7/01 11:27 PM, Chris Lambert - WhiteCrown Networks at [EMAIL PROTECTED] wrote: I am afraid I am completely stupid in the way that watermarks work(researching now). however I need to know quickly if I can dynamically apply a watermark to an image using PHP. Any one know? Just use

Re: [PHP] watermarks

2001-07-07 Thread Chris Anderson
a watermark is not something ON an image. A watermark is the same as a digital signature so you know who created the piece - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 07, 2001 11:38 PM Subject: Re: [PHP] watermarks on 7/7/01 11:27 PM, Chris

Re: [PHP] watermarks

2001-07-07 Thread Jon Yaggie
well i understand that this is normally a digit signature involved. That is why i am concerned about dynamic creation. looking through the image functions i dont actually see a obvious function that would do such a thing. Can you please tell me what and how if this is simple. thank you

Re: [PHP] watermarks

2001-07-07 Thread Todd Cary
I am using watermarks on the photos I put on the net ( http://www.floatographs.com), except I do it before I send them up. My procedure is to use some Delphi code I wrote implementing some grpahic primitives. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Getting any possible value inside an array

2001-07-07 Thread Aaron Bennett
Hi everyone... Does someone have a quick and dirty way of returning _any_ possible value contained within an array? For instance: $myarray[0] = red; $myarray[1] = red; $myarray[2] = red; $myarray[3] = blue; $myarray[4] = green; $myarray[5] = blue; $myarray[6] = red; and i'd output red, blue

Re: [PHP] Getting any possible value inside an array

2001-07-07 Thread mike cullerton
i think this should work $color_list = array(); // not sure if you need this foreach ($myarray as $color) { if (!in_array($color,$color_list)) $color_list[] = $color; } http://php.net/in_array on 7/7/01 11:51 PM, Aaron Bennett at [EMAIL PROTECTED] wrote: Hi everyone... Does someone

RE: [PHP] Getting any possible value inside an array

2001-07-07 Thread Aaron Bennett
Perfect! I actually was making up the 'colors' analogy, but i've adapted it to what i need! -- Aaron -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 07, 2001 11:05 PM To: Aaron Bennett; [EMAIL PROTECTED] Subject: Re: [PHP] Getting any possible

Re: [PHP] Getting any possible value inside an array

2001-07-07 Thread Mark Charette
$newarray=array_flip($myarray) $newarray will have unique key values made up of the second element of $myarray. Mark C. - Original Message - From: Aaron Bennett [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 12:51 AM Subject: [PHP] Getting any possible value inside