[PHP] htaccess

2001-09-21 Thread PHP List
Hi, I heard it was possible to turn off/on php execution in a directory using the .htaccess file. Can some one tell me how to do that? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] RE: string conversion

2001-09-21 Thread saif
correct way is to get file name is : $path_parts = pathinfo($dir.$file); $fdir = $path_parts[dirname]; // directory name $fname = $path_parts[basename]; // file name $ftext = $path_parts[extension]; // file extension best regards

[PHP] Finding a File

2001-09-21 Thread Joseph Koenig
Hello everyone -- I'm just a little bit stumped on this. I've got some files that are available for user download, however, the files are in different directories. The file names are based on the item number which is available. For example, item number AS1000-01 is in directory AS and is named

[PHP] php website

2001-09-21 Thread Lukas
Hello, hey is it just me or is the manual on the PHP website all mixed up at the moment ? When you click on the Documentation / English links it just takes you to a search page ! Similiarly for functions and so on. Lukas Sofnology Ltd -- PHP General Mailing List (http://www.php.net/) To

[PHP] nimda, etc.

2001-09-21 Thread Bill Rausch
My web sites, which generally have only a couple of real visitors a day to run a specific applications, have just been getting hammered by this stupid nimda and code red stuff. I'm running Linux/Apache/PHP and have firewalls that filter everything except port 80 so I'm not worried about any

RE: [PHP] Any Free Web Hosts that still support the mail( ) function out there?

2001-09-21 Thread Salty Marine
Greetings to Felix and All: I must agree that http://coolfreepages.com/ is a really good free hosting service that supports PHP. However, soon as you use mail( ), it generates an error message: Fatal error: Call to undefined function: mail() in ... Regards, Salty -Original Message-

Re: [PHP] php website

2001-09-21 Thread Philip Olson
It's being worked on, go here : http://www.php.net/mirrors.php Replacing www with your county code (uk,us,au...) usually works too. For example, the uk mirror is uk.php.net regards, Philip Olson On Sat, 22 Sep 2001, Lukas wrote: Hello, hey is it just me or is the manual on the PHP

[PHP] Sort Question

2001-09-21 Thread Jeff Oien
Could someone tell me how to sort this? Each $variable1 is a 3,4 or 5 letter string that I would like sorted alphabetically. I assumed sort would do it but apparently it isn't the right type of array. Thanks. $variable1 = split(\n, $variable); Jeff Oien -- PHP General Mailing List

[PHP] Re: mysql error on win2k

2001-09-21 Thread Gary
It would help if you gave us some more information. If you look in your MySQL folder you will see a folder call include. In that folder there is file call mysqld_error.h, this a list of some of the errors you will encounter. This will help you track down the problems you are having, in the

[PHP] writting into a text file

2001-09-21 Thread Nikola Weber
Hi ! I am having a problem that looks like this : 1.I'd like to have some clue on the traffic on my site, but my server doesn't support the mysql or smth like that. Anyway, I'd be happy with a text file, smth like a log file. Is it possible to write into a text file ? 2. Is it possible and is

[PHP] writting into a text file

2001-09-21 Thread Nikola Weber
Hi ! I am having a problem that looks like this : 1.I'd like to have some clue on the traffic on my site, but my server doesn't support the mysql or smth like that. Anyway, I'd be happy with a text file, smth like a log file. Is it possible to write into a text file ? 2. Is it possible and is

[PHP] writting into a text file

2001-09-21 Thread Nikola Weber
Hi ! I am having a problem that looks like this : 1.I'd like to have some clue on the traffic on my site, but my server doesn't support the mysql or smth like that. Anyway, I'd be happy with a text file, smth like a log file. Is it possible to write into a text file ? 2. Is it possible and

Re: [PHP] Finding a File

2001-09-21 Thread Mark
On Fri, 21 Sep 2001 15:29:34 -0500, Joseph Koenig wrote: Hello everyone -- I'm just a little bit stumped on this. I've got some files that are available for user download, however, the files are in different directories. The file names are based on the item number which is available. For example,

RE: [PHP] writting into a text file

2001-09-21 Thread Daniel Alsen
?php $COUNT_FILE = div/count_data.txt; if (file_exists($COUNT_FILE)) { // En: Open, read, increment, save and close file. $fp = fopen($COUNT_FILE, r+); flock($fp, 1); $count = fgets($fp, 4096); $count += 1; fseek($fp,0); fputs($fp, $count);

[PHP] Re: Include inside a function?

2001-09-21 Thread J Smith
Why don't you try it and find out? J Kyle Smith wrote: Is it possible to use include inside the mail function? eg mail(include(blah.txt)) ??? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 --

Re: [PHP] nimda, etc.

2001-09-21 Thread Mark
On Fri, 21 Sep 2001 13:48:09 -0700, Bill Rausch wrote: My web sites, which generally have only a couple of real visitors a day to run a specific applications, have just been getting hammered by this stupid nimda and code red stuff. I'm running Linux/Apache/PHP and have firewalls that filter

[PHP] Apache win question

2001-09-21 Thread Kevin
I know, this isn't an Apache list Upgraded to Apache win 1.3.20 recently. Running Apache 1.3.20, MySQL 2.23.38, Windowz 98 When running a variety of database driven applications, Apache craps out on me. MySQL and Windowz are not affected. Anyone else run into this? All was fine until I

Re: [PHP] Finding a File

2001-09-21 Thread Joseph Koenig
Well - I just spoke with the client and apparently only one directory was going to create that problem so they're just going to rename the directory. I guess I should have tried that solution first. However, is there a way to read the string up to the point where the numbers start? For example,

Re: [PHP] Finding a File

2001-09-21 Thread Mark
On Fri, 21 Sep 2001 16:48:13 -0500, Joseph Koenig wrote: Well - I just spoke with the client and apparently only one directory was going to create that problem so they're just going to rename the directory. I guess I should have tried that solution first. However, is there a way to read the

Re: [PHP] Finding a File

2001-09-21 Thread Mark
On Fri, 21 Sep 2001 14:46:04 -0700, Mark wrote: On Fri, 21 Sep 2001 16:48:13 -0500, Joseph Koenig wrote: Well - I just spoke with the client and apparently only one directory was going to create that problem so they're just going to rename the directory. I guess I should have tried that solution

[PHP] configure errors: PHP with sablot on mac os x

2001-09-21 Thread Karl Long
Hi, I'm configuring PHP on my mac os X box and have been working for days reading all the lists and articles that have been written about this and I have got through a lot of issues so far but now I'm at an impass. I've compiled all the extentions that I need (expat, sablotron etc.) but now in

Re: [PHP] configure errors: PHP with sablot on mac os x

2001-09-21 Thread Mark
snip checking for Hyperwave support... no checking for ICAP support... no checking for iconv support... yes checking for iconv_open in -lc... no checking for IMAP support... no snip checking whether to include pspell support... no checking whether to include QDOM support... no checking for

Re: [PHP] nimda, etc.

2001-09-21 Thread Sean Straw / PSE
At 13:48 2001-09-21 -0700, Bill Rausch wrote: sleep( 300 ); I felt that if nothing else I could slow the worm down a little by wasting its time before it races off to the next potential target. Does what I'm doing make any sense or am I all confused? I do like the concept behind the sleep

[PHP] Can someone explain this????

2001-09-21 Thread Dallas K.
try this when u get a sec. its weird... In Microsoft Word, start with a blank page and type the letters NYC in all caps. Highlight the letters and change to the largest font size, 72 points. Now change the font itself to Webdings . that's not all. Now change the font

[PHP] GD Library help

2001-09-21 Thread Jay Paulson
Do all versions of the GD library for Linux that are version 1.6 and above not support any GIF formats? I have 1.8 and in the manual I thought that it was only version 1.6 that didn't support GIF format. However, when I run ImageCreateFromGIF() or ImageGIF() I get an error saying that it's not

Re: [PHP] nimda, etc.

2001-09-21 Thread Gaylen Fraley
Are you sure about that? I am trying his script and I just had an attack and I watched the traffic through my firewall software. It dropped off immediately, i.e. showed no activity. I was expecting to see somekind of a persistant connection, but It doesn't seem to be there. I tested it myself

[PHP] Problem with GD version 1.8.4

2001-09-21 Thread Radek Kreja
Hi, I try compile gd-lib in version 1.8.4 on OpenBSD. This operation caused error, but with version 1.8.3 was all OK. Do you have some expirience with this problem? How to compile PHP 4.0.6 wiht gd-1.8.4 Thaks Radek --- Bc. Radek Kreja www: www.ceskedomeny.cz e-mail:

[PHP] how to access to session variable without a href ?

2001-09-21 Thread Jacques
I'm using php4 with session I have a session variable $TABLE[1]=100; $TABLE[2]=150; $TABLE[3]=200; My problem is I have a mysql database where I pull out data and put them into the the session variable With these data, I want to generate a graph. if I access to a different page (or link)

Re: [PHP] Re: calling javascript function from a form image

2001-09-21 Thread Christian Dechery
At 09:29 21/9/2001 -0700, Chris Lee wrote: this isnt reallt a php question but I'll answer it anyhow because Ive been stuck with netscapes incompatabilities before. do this. input type=image border=0 name=sub src=genre.png onsubmit=set_category() onSubmit is not an event for the input type

Re: [PHP] calling javascript function from a form image

2001-09-21 Thread Christian Dechery
form name=formMoviesSearch method=post action=imagesubmit.htm input type=image border=0 name=sub src=genre.png onclick=set_category() input type=hidden name=submit_form value=true /form I understand Netscape is a real pain in the a**... but that should work... maybe it (Netscape)'s being

[PHP] Sort Question (Again)

2001-09-21 Thread Jeff Oien
This didn't get answered before. I'm trying to sort an array but it won't work. $list = file('list_main.txt'); $list = sort($list); If I print $list it gives me 1 and print $list[0] is nothing. The list_main.txt looks something like this: ABC DEFG HIJ etc. Jeff Oien -- PHP General Mailing List

[PHP] Re: Sort Question (Again)

2001-09-21 Thread Gaylen Fraley
When you do $list = sort($list) you are assigning a boolean true/false to the success/failure of the sort to $list (on the left hand side of the equals sign). What I think you really want is: $list = file('list_main.txt'); sort($list); Regards, -- Gaylen [EMAIL PROTECTED]

[PHP] eregi_replace problem

2001-09-21 Thread Daniel Goldin
The following does what it's meant to do: replace [i} and [ei} with the html eqivalenets. $welcome_html = eregi_replace(\[i],I,$welcome_html); $welcome_html = eregi_replace(\[ei],/I,$welcome_html); Why does the following NOT work? $welcome_html =

[PHP] Site Search

2001-09-21 Thread vishal khialani
Hi, I need to have a search on my site and was about to start working on it. Can anyone pls send their code if they have made one allready ? Thanks, Vishal _ Get your FREE download of MSN Explorer at

[PHP] Re: global variables as reference

2001-09-21 Thread Richard Lynch
http://www.php.net/manual/en/language.references.arent.php I stopped reading after the manual said You can't do that, but there's a user-contributed note on a work-around that you may want to read. Disclaimer: I don't really grok in PHP yet, so I just don't use it. :-p -- WARNING [EMAIL

[PHP] Re: configure with mysql

2001-09-21 Thread Richard Lynch
Compile from source. You could spend the rest of your life trying to find a right rpm that has the currect sub-set of 107 compile-time switches to PHP's configure. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: naming convention in php?

2001-09-21 Thread Richard Lynch
Whichever way your company wants to do it. Consistency is all that matters, really. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: Permutation in PHP

2001-09-21 Thread Richard Lynch
You should be able to find this in *ANY* computer science algorithm textbook, or online in a few thousand sites... If you find a C version, you can probably change all the variables to have $ in front, and you're finished. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use

[PHP] Re: iPlanet PHP

2001-09-21 Thread Richard Lynch
Do you have a auto_prepend which is doing require 'index.php' ?... Check in php.ini -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: Code Speed Optimization

2001-09-21 Thread Richard Lynch
The *FIRST* thing you need to determine is *WHY* and *WHERE* your pages are being slowed down. 90% of your problem is in 10% of your system. It *MIGHT* be your database connections. It *MIGHT* be your hard drive thrashing. It *MIGHT* be your bandwidth isn't up to snuff. It *MIGHT* be your

[PHP] Re: Urgent

2001-09-21 Thread Richard Lynch
You will almost certainly need to find a php_freetype.dll which will provide the API from PHP to Freetype's DLL... But there may be DLLs that provide, say, way more than Freetype that will give you Freetype as a side-effect. GD, for example, lets you put Freetype fonts in to Images, at least on

[PHP] Re: prob with include file

2001-09-21 Thread Richard Lynch
Where does admin.php live? Is it in /www/inc? If not, either move it there, or change your include_path in php.ini to be: include_path = ./:/www/inc -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: Help with escaping the # sign

2001-09-21 Thread Richard Lynch
It's a MySQL issue, probably. Addslashes() should take care of it, I think... If not, find out how MySQL escapes # and use http://php.net/str_replace -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: searching trought multiple tables

2001-09-21 Thread Richard Lynch
Either you are missing a constraint (one of the *AND* bits in a WHERE clause) or you actually have duplicates in the join. Can't tell which without knowing more about the schema. You could just use select DISTINCT ... and let MySQL get rid of the duplicates. That may be kinda slow on 5,000

[PHP] Re: Passing arrays to other php routines in popup window

2001-09-21 Thread Richard Lynch
Dunno why split is not working, but use explode instead. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original

[PHP] Re: magic_qoutes_gpc and cobolt linux causing problems

2001-09-21 Thread Richard Lynch
Add a third site without ChiliSoft and do .htaccess, and a fourth with ChiliSoft and .htaccess and see which works/breaks... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a

[PHP] Re: french date

2001-09-21 Thread Richard Lynch
What argument did you use for setlocale? It seems to sometimes like different args on different OSes?... Like, fr works for some, fr_FR works for others, I think... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: ftp in PHP4

2001-09-21 Thread Richard Lynch
Does the PHP user (nobody) have read access to the local file you are trying to upload? Are you 100% sure you have the right things in the filenames?... Print them out right before the ftp_puts line. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna

[PHP] Re: PHP Auth problem

2001-09-21 Thread Richard Lynch
If your code doesn't look like this: http://www.php.net/manual/en/features.http-auth.php you did it wrong. Replace the == test with your imap_open, but don't go re-arranging the if/else logic or the header() order. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL

[PHP] Re: Image Edit Uploading Problem.

2001-09-21 Thread Richard Lynch
The trick you are missing is this: You can use an if/else to build your *SQL* piece-meal as well: $SQL = update $table_name set ; if ($userfile_th != 'none'){ $SQL .= thumbnail='$userfile_th_name', ; } if ($userfile_full != 'none'){ $SQL .= full_size='$userfile_full_name', ; } $SQL .=

[PHP] Re: Is CRON'd PHP script already running?

2001-09-21 Thread Richard Lynch
?php # Untested code: exec(ps auxwww | grep $PHP_SELF, $results, $error); if ($error){ echo implode(\n, $results); echo OS Error: $error Usually path/permissions. See 'man errno' to be sure\n); } $results = implode(\n, $results); if (strstr($results,

[PHP] Re: Security with include() function

2001-09-21 Thread Richard Lynch
I think it is not parsed on the remote server, but is on the local server, but they can't get the source from include(). That said, either way, if they can include() it, then can fopen/fread it, so it really doesn't mattter -- WARNING [EMAIL PROTECTED] address is an endangered species --

[PHP] Re: newbie include question

2001-09-21 Thread Richard Lynch
You really only want to use the whole URL if you plan on having it get it from a remote server... And that's pretty dangerous unless you totally control that remote server. I think you'll need to convince xyz.inc and/or Apache to not output those headers... I *THINK* maybe something like:

[PHP] Re: 500 Internal Server Error

2001-09-21 Thread Richard Lynch
500 just means PHP or PWS puked. Check whatever log files PWS has, and any log file for PHP you may have specified in your php.ini Also, try running php from an MS-DOS prompt to take PWS out of the picture, and surf to a non-PHP page to see if that works. Narrow down where the problem must be.

[PHP] Re: Expect Like Function

2001-09-21 Thread Richard Lynch
Closest I can think of is: http://php.net/manual/en/function.assert.php -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -

[PHP] Re: Server API - what is the difference please?

2001-09-21 Thread Richard Lynch
The CGI (.exe) version will not scale up well for a busy server. Each time a page is requested, PHP.EXE is fired up, does its thing, and quits. In the ISAPI model, PHP is a DLL that gets glomned on to IIS, and is just always there. Alas, many of the third-party DLLs are not yet thread-safe, so

[PHP] Re: About old msg on attachements using PHP mail function

2001-09-21 Thread Richard Lynch
I believe you will need to stuff the body into the mime-headers like another attachment and have the body be empty... Even that *may* not work... Another option is to bypass the mail() function entirely and just fsockopen to port 25 and fread/fwrite the right stuff to talk to SMTP. It ain't

[PHP] Re: Legal advice

2001-09-21 Thread Richard Lynch
If the licensing is an issue, you should be able to automate the exporting of data from Access/Excel, and suck it into MySQL, and then web-host MySQL only. You'd have to read your Access license with a lawyer, not here, to be sure what's kosher... -- WARNING [EMAIL PROTECTED] address is an

[PHP] Re: truncate?

2001-09-21 Thread Richard Lynch
I think you can do fopen(...,'w+')/fseek()/fclose() in some combination that would do that... Might need to fwrite(...,EOF) or something... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: Compiling problems with PHP4.0.6+apache1.3.20+mysql3.23.39

2001-09-21 Thread Richard Lynch
'uncompress' is in zlib, I think, so you need to install that. http://php.net/zlib And use --with-zlib in your ./configure ./configure may just magically find it after you install it... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out?

[PHP] Re: Please please please help!

2001-09-21 Thread Richard Lynch
Here's a rule of thumb: Either: A) You can just append to the end of the file, or B) You should be using a database, not a file It's really that simple. As soon as you start asking about writing things into the middle of a file, or at the end of a line rather than the end of the file, you are

[PHP] Re: Getting the value from a not posted form edit Vield.

2001-09-21 Thread Richard Lynch
You simply CANNOT get an INPUT to go through an A tag. If you want to keep the INPUT, you either need to use a SUBMIT or an INPUT TYPE=IMAGE. *OR* you can simply incorporate aFindOnInput into your A tag, if it's not something the user can edit: echo a

[PHP] Re: Problem with ImageMagick and PHP on Windows

2001-09-21 Thread Richard Lynch
You don't have newlines in $cmd, do you??? Don't do that. You may also need to http://php.net/setenv to set up PATH so that identify.exe can find whatever filter/DLL/plug-in thingie it needs to find to do EPS files, identify.exe uses that kind of plug-in architecture. -- WARNING [EMAIL

[PHP] Re: Track_errors function posibile a BUG or require an upadate

2001-09-21 Thread Richard Lynch
I'm guessing that maybe you are printing out $php_errormsg when there was no error?... Or are you forgetting to use global $php_errormsg inside your function?... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: Sessions and include()...

2001-09-21 Thread Richard Lynch
I believe: include() gets parsed and executed on the server that is doing the include-ing, not the remote server... If that file has session_xxx() in it, you'll have started a session and whatnot on the local server. The remote server doesn't even have to have PHP on it at all, and its

[PHP] Re: Select distinct error!

2001-09-21 Thread Richard Lynch
Whoops. Hit send too soon. It could just be that your table is too darn big for select distinct on the hardware you have... What's your disk space like on MySQL's data drive? df -h You'll need to figure out which partition holds MySQL's data directory, and see how much free space is there.

[PHP] Re: Running virtualhosts under different users

2001-09-21 Thread Richard Lynch
suExec will only work with PHP running as CGI, not a Module. You *CAN* have PHP in Apache twice with different extensions (.php and .phpcgi) and corresponding mime-type (application/x-httpd-php and application/x-httpd-phpcgi) and then the one site will have to use .phpcgi for its files, or you

Re: [PHP] how to limit the files returned

2001-09-21 Thread Richard Lynch
Search DB2 docs for the term cursor I'm betting that's how DB2 does it. Not quite as easy to work with as LIMIT, but it'll work great. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm

[PHP] Re: php extensions

2001-09-21 Thread Richard Lynch
I think you need to create a .so file, not .o and .la... There are some sample screen shots at http://conf.php.net in Rasmus' more recent talks -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: Sort Question

2001-09-21 Thread Richard Lynch
Where is your sort call?... sort($variable1); should do the trick... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -

[PHP] Re: how to access to session variable without a href ?

2001-09-21 Thread Richard Lynch
What is SID in graph.php? Cuz it should work... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message -

[PHP] Re: OpenSSL and PHP

2001-09-21 Thread Richard Lynch
I think you want cURL ... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Nael Mohammad

[PHP] Re: Select distinct error!

2001-09-21 Thread Richard Lynch
I'm guessing the table is messed up... Back up your database, and try running those ISAM check utilities that MySQL provides to verify database integrity. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: sistema de votação (language: portugues)

2001-09-21 Thread Richard Lynch
Try to ignore the 777/755 parts, and see what happens. 777 for is *DANGEROUS* anyway! -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: Sending email through mail function to a bad address

2001-09-21 Thread Richard Lynch
If it's a local email address that's bad, check the return value of http://php.net/mail itself. If it's a non-local address, Errors-to: and Reply-to: or whatever should work, depending on how well the email servers involved have implemented those specs. Show the source for how you did Reply-to:

[PHP] Re: PHP 4.0.6 + Oracle9i + CPDF lib - large file problem (segmentation fault)

2001-09-21 Thread Richard Lynch
Wild Hypothesis: If all else fails, it may be possible to create a bunch of one-page PDF files, and then concatenate them with some external weapon... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: exclamation points appearing from nowhere in the mail() function...

2001-09-21 Thread Richard Lynch
Does this happen only with PHP mail? Try running 'mail' or 'pine' or something and sending an email from the same box. What does your sendmail_path setting look like in php.ini? Un*x, Windoze, ? -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna

[PHP] Re: PHP + NT + Weird line break??

2001-09-21 Thread Richard Lynch
Is there a new-line at the end of the include-ed file? ?php... ? ^ / \ / \ Unless this is an unterminated line, you'll get messed up. Various editors will automatically add a new line for you. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna

[PHP] Re: ODBC connect w/ connectstr instead of DSN

2001-09-21 Thread Richard Lynch
I think it's not, last I heard... But I don't use ODBC a lot, so don't rely on me if somebody else says differently. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little

[PHP] Re: Merging Arrays

2001-09-21 Thread Richard Lynch
You left out http://php.net/sort if you want if alphabetical, but other than that, it looks like you're done... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: how to password protect files

2001-09-21 Thread Richard Lynch
So put them in the restricted directory. Or, put them not in the web-tree AT ALL, and grab one of the umpteen download scripts in code archives linked from http://php.net/links.php -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like

[PHP] Re: htaccess

2001-09-21 Thread Richard Lynch
Read php.ini Search for engine I think you can only turn it off, not on, in .htaccess as your ISP wouldn't want you to be able to turn it on if they turned it off in the first place... Actually, the whole engine directive may be httpd.conf only, not .htaccess -- WARNING [EMAIL PROTECTED]

[PHP] Re: Newbie needs help with file uploads

2001-09-21 Thread Richard Lynch
Can you upload the same files with regular FTP clients?... If you are having network problems, PHP can't do anything about it... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm

[PHP] Re: database on CD

2001-09-21 Thread Richard Lynch
I did this once by dumping everything into JavaScript arrays. I used PHP to generate the HTML/JavaScript files that were tested on Jaz cartridges in non-PHP computers, and then we burned CDs from that. This then only requires that you get the JavaScript right (which is not too tricky for just

[PHP] Re: using system() as a different user

2001-09-21 Thread Richard Lynch
You either need to use that sudo or suid thingie, or set up a PHP CGI (using a different extension and mime-type) wrapped in suExec (http://apache.org) I don't know anything more than that -- Just providing the road-signs to the right paths. -- WARNING [EMAIL PROTECTED] address is an endangered

[PHP] Re: Php Codes needed

2001-09-21 Thread Richard Lynch
Try: header(Location: $HTTP_REFERER); I guess... But you may need to pass along whatever data you want to keep, or use sessions so there's only a SESSION_ID to pass along. http://php.net/session_start -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna

[PHP] Re: Internal use of Mysql Connections

2001-09-21 Thread Richard Lynch
If you need multiple connections, you should store them in variables and keep track of them. The last connection is a convenience for single-connection users. Opening a MySQL connection is quite slow, so you really don't want to do it more than you have to. -- WARNING [EMAIL PROTECTED] address

Re: [PHP] PHP Boot Camp [Announcement]

2001-09-21 Thread Richard Lynch
Yes, I absolutely suck as a Graphic Designer. There will not be any pretty charts, graphics, or nifty layouts in the course. We're talking raw, bare-bones, text-edited HTML. No Dream-Weaver, no FrontPage, no Homesite, etc. Even the Flash and PDF stuff will be rude, crude, and very austere (at

[PHP] Re: PHP 4.0.6/Apache 1.3.20/MySql 3.24.xx install

2001-09-21 Thread Richard Lynch
I believe 'compress' is in 'zlib' which you'll need to install first, and then use --with-zlib as you configure. (Actually, once you install it PHP will probably automagically find it... Better to just be sure, though.) -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL

[PHP] Re: How to download files to the server

2001-09-21 Thread Richard Lynch
http://php.net/fopen http://php.net/ftp -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From:

[PHP] How to find the browser type in HTML or PERL??

2001-09-21 Thread Balaji Ankem
Hi, Anybody know how to code in HTML or perl to find the browser say if Iexplore { do this } else if Netscape { do this } Thanks and regards -Balaji --

Re: [PHP] Can someone explain this????

2001-09-21 Thread Chris Hobbs
Dallas K. wrote: try this when u get a sec. You want to see something really weird? Try using 'MORON' instead of 'NYC'. It doesn't actually mean anything, but at least you'll have a signature you can start using if you're going to keep posting this tripe... My $0.02. --

[PHP] Re: how to access to session variable without a href ?

2001-09-21 Thread Jacques
Richard Lynch [EMAIL PROTECTED] wrote What is SID in graph.php? Cuz it should work... This is the main problem. Can find out why it's not working. SID is the session ID -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] Quickie

2001-09-21 Thread Peter
Hi, I am trying to redirect the user to another page after user authentication and using sessions. I was wondering how do you redirect to another page and then at the same use pass the session ID over to that other page. Thanks. Peter On Fri, 21 Sep 2001, [iso-8859-1] Stig-Ørjan Smelror

[PHP] Large File Uploads, max file sizes and timeouts

2001-09-21 Thread Weston Houghton
Hey all, Two related questions. If I remember correctly this has been beaten to death before on the list, but here I am having issues with it, and ending up at somewhat of a loss still. I've built a media management system for a video company. It is built to handle large data assets, such as

[PHP] Run or execute a php cript within a php cript.

2001-09-21 Thread hvm
Hi all. Is there a command to execute (run) from HTML or a php4 script a other php script without a mouse click (A HREF=xx.php). I have a lot of php scripts and need them to execute from a master php script. any help? Thanks all, Yours Hans.

Re: [PHP] Run or execute a php cript within a php cript.

2001-09-21 Thread David Robley
On Fri, 21 Sep 2001 16:16, hvm wrote: Hi all. Is there a command to execute (run) from HTML or a php4 script a other php script without a mouse click (A HREF=xx.php). I have a lot of php scripts and need them to execute from a master php script. any help? Thanks all, Yours Hans.

Re: [PHP] creating ZIP files

2001-09-21 Thread Meir Kriheli
On Friday 21 September 2001 00:31, Raphael Pirker wrote: this link refers to a function READING zip files, not actually creating one... There's an article on creating zip files with pure PHP (other libraries not needed) on zend's site. Actually this is the 1st article in a series of them.

Re: [PHP] creating ZIP files

2001-09-21 Thread Meir Kriheli
On Friday 21 September 2001 00:31, Raphael Pirker wrote: this link refers to a function READING zip files, not actually creating one... Sorry, forgot to send the link to the zip creation class, http://www.zend.com/codex.php?id=535single=1 Have fun -- Meir Kriheli -- PHP General Mailing

Re: [PHP] Run or execute a php cript within a php cript.

2001-09-21 Thread Steve Edberg
You can do something like ?php # Master script switch ($Something) { case 1: include 'xx1.php'; break; case 2: include 'xx2.php'; break; # ...and so on } # ...include any 'post-processing PHP stuff here, if necessary ? Any variables in the master

  1   2   >