[PHP] open_basedir

2001-07-07 Thread Yacoon
mornin, i´m new to the list and to php, so please don´t jump to hard on me, when you think the question is dump. okay: is there a possibility to make a server only execute the php scripts in the document root it was called from? I saw something about open_basedir, but am not sure if that is the

RE: [PHP] ok!

2001-07-07 Thread Matthew Loff
A quick plug for Mysql-front at http://www.mysqlfront.de/ that Hennik meantions here... If you use Win98/ME/2k/NT, and are looking for a utility to admin a MySQL database, this is hands-down the best front end I've ever used... -Original Message- From: Henrik Hansen [mailto:[EMAIL PRO

Re: [PHP] Next Book

2001-07-07 Thread rick
I started off with a Core PHP4 book and quickly outgrew it. I find that most of the books don't get much past the basics either, so I find myself sticking to www.php.net and it's wonderful searchable documentation. I have read Web Application Development with PHP4.0 (http://www.phpwizard.net), w

[PHP] Next Book

2001-07-07 Thread Chris Lott
Finished with Beginning PHP from Wrox. Am eyeing Advanced PHP from Wrox. Other good books I should think about? Recommendations? Reviews? I know the PHP FAQ has pointers to books, but I am looking for recommendations on what I SHOULD get as I transition from a Cold Fusion person to a PHP devotee :

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 in

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 value

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 h

[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 outpu

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 (h

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 Than

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, Chr

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 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]>

[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] 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 i

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. Thi

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 > Actu

[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 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 it

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 star

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

[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 i

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."\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, e-m

[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 se

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 cert

[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 unsubscr

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 permi

[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] 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

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

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

Re: [PHP] require_once(); questions

2001-07-07 Thread Chris Anderson
Actually this does work: //First_File.php //Second_File.php //Active file That would produce the output of : I am the test variable An include or require just places the files' contents at the line you include it. So after the includes(requires) my parsed code was: Hope this helps

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

[PHP] Re: eregi replace help

2001-07-07 Thread maatt
ereg_replace("> <[^<]*", "", $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: > > http://www.example.com/1

[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: 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 Gene

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]... >

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] 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

[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 conve

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

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

[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] E

[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

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] 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 va

[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

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

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 ea

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 (

[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.Click here to add a new author): " . $row["AUTHOR_FNAME"] . " " . $row["AUTHOR_LNAME"] . ""; echo $option; } ?> I then have a bit of code that parses through and checks which authors th

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 <

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 cr

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

[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 PH

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 Li

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: > > > I

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] 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 integer/auto_in

[PHP] mysql_insert_id()

2001-07-07 Thread John Meyer
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. John Meyer [EMAIL PROTECTED] Programmer If we didn't have Mi

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 A

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 Me

[PHP] PHP map?

2001-07-07 Thread [EMAIL PROTECTED]
Is there a good script that uses the gd lib to draw a map of the world someplace? Susan _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

[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] 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 fu

Re: [PHP] Parsing HTML files?

2001-07-07 Thread Chris Lambert - WhiteCrown Networks
For parsing, your best bet would be regular expressions. If you aren't familiar with them, then this would most likely be a custom programming job, as there's no such thing as an off the shelf parsing routine. www.php.net/preg_match_all would be the best function to use to parse, and you should g

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 PHPBeginner.co

[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] 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 Ne

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

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$[EM

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] foreach loop

2001-07-07 Thread ReDucTor
We would blame Mac/Apple - Original Message - From: PHPBeginner.com <[EMAIL PROTECTED]> To: John Meyer <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, July 08, 2001 3:10 AM Subject: RE: [PHP] foreach loop > > > >If we didn't have Microsoft, we'd have to blame ourselves for all of

[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

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 c

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 a

[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] 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:

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 Begin

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

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 t

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. "." && $file_name <> "..") { echo ""; } } ?> /* Chris Lambert, CTO - [EMAIL PROTECT

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

[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] 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 Messag

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 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

[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 .ph

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

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 = s

[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] robot.txt file

2001-07-07 Thread rm
Everything you need to know about robots.txt files but were afraid to ask 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 (ht

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

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 Whi

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] > www.php

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 th

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 sa

[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 cont

[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] 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

  1   2   >