RE: [PHP] Protect Access to a Directory

2003-02-05 Thread Adrian Portsmouth
Try using htaccess authentication instead? -Ade www.phpscriptsearch.com -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 05 February 2003 07:06 To: [EMAIL PROTECTED] Subject: Re: [PHP] Protect Access to a Directory On Wednesday 05 February 2003 04:06, Pushpinder

RE: [PHP] Array find a element

2003-02-05 Thread mattias
You can use in_array (http://www.php.net/function.in_array) for this. -- Mattias --|-Original Message- --|From: Narciso Miguel Rodrigues --|[mailto:[EMAIL PROTECTED]] --|Sent: Wednesday, February 05, 2003 02:03 --|To: [EMAIL PROTECTED] --|Subject: [PHP] Array find a element --| --|

RE: [PHP] Best way to include multi-lingual support in an application.

2003-02-05 Thread mattias
There is gettext support in php for this. Haven't used it myself, but check it out at http://www.php.net/ref.gettext -- Mattias --|-Original Message- --|From: JJ Harrison [mailto:[EMAIL PROTECTED]] --|Sent: Wednesday, February 05, 2003 06:56 --|To: [EMAIL PROTECTED] --|Subject: [PHP]

[PHP] Re: Best way to include multi-lingual support in an application.

2003-02-05 Thread rush
Jj Harrison [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am currently planning an application. I would like to include multiple language support so that I can have a german or french version down the track if need be. What are your views on the best way to

[PHP] Re: PhpMyADmin Help

2003-02-05 Thread Simon
Pushpinder Singh Garcha wrote: Hello , I am using PhpMyAdmin to control my MySQL Database. Untill now I had been using the Local Apache webserver to test my scripts, so I had installed PhpMyAdmin in the 'Sites' Folder of my Mac. Now I need to beta test the Application on the Live Server. Do

[PHP] restricting acces to files

2003-02-05 Thread Shams
Hi, i've written a secure PHP login script which will allow users to login to a directory such as this: smezone.com/members/index.php however, how do I restrict people from accessing HTML files in that directory (which they can easily do so by typing the URL into their browser), such as:

[PHP] PHP connecting to MS Access

2003-02-05 Thread Phil Schwarzmann
If a MS Access database and a PHP server were on the same machine, could they connect without having to use something like MS SQL Server?

Re: [PHP] Is there a way to retrieve an entire source code from a phpfile?

2003-02-05 Thread Chris Hayes
There is a php file that retrieve the source code from the url www.url.com and this source is treated and you get content from this file and show it on the response page. Is this possible? Can anyone show me the right direction? yes, codeword is 'ripping', i found some hits on google with

Re: [PHP] Sessions and Cookies

2003-02-05 Thread 1LT John W. Holmes
I'm trying to use cookies in PHP4 (.whatever the latest release is). I want to use them for validation (ensuring a user has logged in) but all I can find is setcookie, which seems only to create the cookie. In trying to use PHP sessions, I end up with odd errors. When I try to use sessions

[PHP] problems with gzuncompress data from fsockopen (data error)

2003-02-05 Thread akorthaus
Hello! Using the following script I try to get a html-page gzip-compressed, and uncompress the body of the HTTP-message. ?php define(CRLF,\xD\xA); $host = selfforum.teamone.de; $path = /; $fp = fsockopen($host, 80); $header = GET .$path. HTTP/1.0.CRLF; $header .= Accept-Encoding: gzip.CRLF;

[PHP] Creating associative array

2003-02-05 Thread PHP
I am trying to create associative array in a while loop.. $image_array = array(); $image_array = array_push($file_name=$image_url); what i am doing wrong??

Re: [PHP] Creating associative array

2003-02-05 Thread Leif K-Brooks
Try: $image_array = array(); $image_array[$file_name] = $image_url; PHP wrote: I am trying to create associative array in a while loop.. $image_array = array(); $image_array = array_push($file_name=$image_url); what i am doing wrong?? -- The above message is encrypted with double

[PHP] Re: Problem with include PHP 4.3.0

2003-02-05 Thread Jean-Pierre Gallou
Goetz Lohmann wrote : doc_root = /usr/local/www/htdocs than maybe leave this blank ! No. In my case it's absolutely senseless to define doc_root in php.ini since there are many virtual servers in httpd.conf, each with its own root. It's also the reason why I don't want Apache to get a

Re: [PHP] Creating associative array

2003-02-05 Thread Chris Hayes
At 13:28 5-2-03, you wrote: Try: $image_array = array(); $image_array[$file_name] = $image_url; PHP wrote: I am trying to create associative array in a while loop.. $image_array = array(); $image_array = array_push($file_name=$image_url); i agree with the suggestion, but maybe (this may be

Re: [PHP] Creating associative array

2003-02-05 Thread Jason Wong
On Wednesday 05 February 2003 20:51, Chris Hayes wrote: At 13:28 5-2-03, you wrote: Try: $image_array = array(); $image_array[$file_name] = $image_url; PHP wrote: I am trying to create associative array in a while loop.. $image_array = array(); $image_array =

Re: [PHP] Security question with PHP on Unix / Linux.

2003-02-05 Thread Maxim Maletsky
Ananth Kesari [EMAIL PROTECTED] wrote... : Thanks for your inputs. Will proceed from here. Well, if you did not know, NetWare is an operating system brought out by Novell. I know :) We are working on porting PHP onto NetWare. In fact, we already have ported PHP 4.2.3 onto NetWare and

[PHP] writing to the db on close

2003-02-05 Thread Edward Peloke
Hello, I need a way to write a record to the db when the user closes their browser. How can I do this? I looked last night at the onunload javascript event but am not sure how that can trigger the php code to enter a row in the db. I am using sessions so is there a way to write to the db when

[PHP] getting javascript string values

2003-02-05 Thread Gilberto Garcia Jr.
Hey Guys, How can I get the value of an javascript string and pass it to a php variable? i.e. script var x = test; /script ? $x = // need to get the value of x ? thanks Iced Sun

Re: [PHP] PHP connecting to MS Access

2003-02-05 Thread Maxim Maletsky
You could use ODBC -- Maxim Maletsky [EMAIL PROTECTED] Phil Schwarzmann [EMAIL PROTECTED] wrote... : If a MS Access database and a PHP server were on the same machine, could they connect without having to use something like MS SQL Server? -- PHP General Mailing List

[PHP] Execute at a defined time

2003-02-05 Thread Miguel Brás
Hi, I was looking on PHP manual but didn't find anything about it. How can I execute a script all days at the same time? I kno i must have access to the CRON of the system, but don't know what function should I use to make this happen (run the script). Miguel -- PHP General Mailing List

Re: [PHP] getting javascript string values

2003-02-05 Thread Chris Hayes
How can I get the value of an javascript string and pass it to a php variable? script var x = test; /script ? $x = // need to get the value of x ? Well as you know, but just as a reminder, when you make a page with both php and javascript in it, the PHP code is executed on the

Re: [PHP] Execute at a defined time

2003-02-05 Thread Tom Rogers
Hi, Wednesday, February 5, 2003, 11:49:35 PM, you wrote: MB Hi, MB I was looking on PHP manual but didn't find anything about it. MB How can I execute a script all days at the same time? I kno i must have MB access to the CRON of the system, but don't know what function should I use MB to make

php-general Digest 5 Feb 2003 14:06:41 -0000 Issue 1865

2003-02-05 Thread php-general-digest-help
php-general Digest 5 Feb 2003 14:06:41 - Issue 1865 Topics (messages 134364 through 134404): Re: Array find a element 134364 by: Bobby Patel 134384 by: mattias.ballou.se Printing 134365 by: Chris Kay 134367 by: Jason Sheets php problem 134366 by:

Re: [PHP] Execute at a defined time

2003-02-05 Thread Jason Sheets
Hi Miguel, You can use cron to execute the CGI or CLI version of PHP against your PHP script, for example /usr/local/bin/php example.php, simply create a cron entry that will execute at the desired time. If you need information on the crontab format do a man crontab or search google for cron

Re: [PHP] Execute at a defined time

2003-02-05 Thread Andrew Brampton
If you have PHP compiled as cgi then you can run something like: php /path/to/my/script.php or if you can request the page via your website with something like: lynx -dump http://your site.com/yourscript.php Also if you want to know how to use cron, try typing man cron in your shell Hope this

[PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Can anyone point to information on how to install mcrypt support for PHP. I tried the PHP mcrypt pages but they are quite lacking in details. I downloaded libmcrypt and got that installed fine. I also downloaded mcrypt (do I really need it?) but that wouldn't configure. It complains that:

[PHP] Re: Execute at a defined time

2003-02-05 Thread Jean-Christian Imbeault
Do a man crontab to get info. Or Google for turotials on how to use cron. Also make sure that PHP is available from the command line. Do a simple test, on the command line type: php --version If you get version iformation as output the PHP is installed for command line useage and will work

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Adam Voigt
Download MCRYPT SRC. tar -zxf mcrypt.tar.gz cd mcrypt ./configure --prefix=/usr/local/mcrypt make make install cd /usr/local/php ./configure --with-mcrypt=/usr/local/mcrypt Replace path's with your own. On Wed, 2003-02-05 at 09:07, Jean-Christian Imbeault wrote: Can

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Adam Voigt wrote: Download MCRYPT SRC. tar -zxf mcrypt.tar.gz cd mcrypt ./configure --prefix=/usr/local/mcrypt From the commands you give you imply that libmcrypt is not needed. Are you sure? The configure command you give does not work. Here's the complete error: [root@host110

[PHP] A scrollable area within a page?

2003-02-05 Thread Denis L. Menezes
Hello friends, Can anyone please suggest me some lnks orhelp me with some info on how to make 2 scrollable areas inside one webpage? Also, can I put dynamic data output into these areas? Thanks very much. Denis

RE: [PHP] A scrollable area within a page?

2003-02-05 Thread Barajas, Arturo
Denis, There are two ways: 1. Using text areas textarea name=thename rows=10 cols=50Content/textarea, you can modify it dinamically using JS. 2. Using the IFRAME tag (which I think is not advised). I'd recommend the first one. HTH -- Un gran saludo/Big regards... Arturo Barajas,

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 12:07:49 AM, you wrote: JCI Can anyone point to information on how to install mcrypt support for JCI PHP. I tried the PHP mcrypt pages but they are quite lacking in details. JCI I downloaded libmcrypt and got that installed fine. JCI I also downloaded mcrypt (do

Re: [PHP] WYSIWYG Content Management system?

2003-02-05 Thread Hardik Doshi
Hey Jason, I am looking for the same. Do you have or any one in this list has any idea? Please let me know. thanks Hardik Jason Wong [EMAIL PROTECTED] wrote:On Wednesday 05 February 2003 09:43, J J wrote: I've seen CMS systems like phpnuke but it's kind of overkill for what I need and almost

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Tom Rogers wrote: I did it this way untar libmcrypt and mcrypt into /usr/src then in libmcrypt ./configure --prefix=/usr (could be /usr/local if you want make make install ldconfig cd ../mcrypt-2.6.3 Up to here fine. ./configure --prefix=/usr configure: error: You need at least libmhash

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jason Sheets
You need only libmcrypt, mcrypt is a command line program that is intended to replace the Unix crypt program. To build the mcrypt binary you need mhash and libmcrypt, for PHP unless you want mhash you need only libmcrypt. Jason On Wed, 2003-02-05 at 07:07, Jean-Christian Imbeault wrote: Can

[PHP] Re: writing to the db on close

2003-02-05 Thread Ns_Andy
Try the window.open method to popup a php page that does the desired job. script window.onunload=doRec function doRec() { window.open(writeToDB.php) } /script and writeToDb.php ?php //.. ?scriptwindow.close() /script -- Regards, Ns_Andy, [EMAIL PROTECTED] Edward Peloke [EMAIL PROTECTED]

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Jason Sheets wrote: You need only libmcrypt, mcrypt is a command line program that is intended to replace the Unix crypt program. To build the mcrypt binary you need mhash and libmcrypt, for PHP unless you want mhash you need only libmcrypt. Ok, so to build mcrypt support into PHP I only need

[PHP] Re: fputs / fwrites

2003-02-05 Thread Ns_Andy
yes,I think this is the script you're looking for. However,This script requires you to have lcnt.txt existing at the time this script runs. ?php $cfile = fopen(lcnt.txt, 'r+'); $lcnt = @fgets($cfile,10); rewind($cfile); fwrite ($cfile,++$lcnt); fclose($cfile); ? -- Regards, Ns_Andy, [EMAIL

Re[2]: [PHP] mcrypt installation problems

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 12:30:01 AM, you wrote: JCI Tom Rogers wrote: I did it this way untar libmcrypt and mcrypt into /usr/src then in libmcrypt ./configure --prefix=/usr (could be /usr/local if you want make make install ldconfig cd ../mcrypt-2.6.3 JCI Up to here fine.

Re: [PHP] Is my syntax wrong?

2003-02-05 Thread Brian Dunning
On Tuesday, February 4, 2003, at 05:03 PM, John W. Holmes wrote: I think we are almost there. This code is not producing an error, but it is also not incrementing the database. The value stays at zero. Any idea what could be wrong? $inc_current_ad = WrapMySQLDatabaseResults(macasap, update ads

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Tom Rogers wrote: Looks that way :) I also have that in /usr/src and in php as --with-mhash=/usr/src/mhash-0.8.17 Still no go. Did you compile into php 4.3.0? I finally got libmcrypt, mhash and mcrypt to make and install, but can't get PHP to work with --with-mcrypt OR

Re: [PHP] Execute at a defined time

2003-02-05 Thread Miguel Brás
Thx all for the help Problem solved Miguel Jason Sheets [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Miguel, You can use cron to execute the CGI or CLI version of PHP against your PHP script, for example /usr/local/bin/php example.php, simply create a

[PHP] Include today's date in a SQL statement?

2003-02-05 Thread Brian Dunning
What would the SQL be to find a record where: start_date today = end_date Thanks, - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] POP3 ... syntax error

2003-02-05 Thread Christian Ista
Hello, I'm trying to access pop3 server via PHP code. I can establish the connection, send the USER command (I receive the +OK answer). After that I sent the PASS command but I receive the answer -ERR syntax error. I don't understand why syntax error. Do you have an idea ? Christian,

RE: [PHP] Include today's date in a SQL statement?

2003-02-05 Thread Jon Haworth
Hi Brian, What would the SQL be to find a record where: start_date today = end_date ... WHERE start_date today AND today = end_date If you're asking how do I get today's date into an SQL statement, there are two ways: - use your DBMS's built-in function to get today's date - use PHP's

RE: [PHP] Object oriented Programming

2003-02-05 Thread Leonard Burton
Creating functions is a real easy part of programming. Classes are a differect story (or at least at first). Anyway, If I were you, I would get Professional PHP4 by Wrox and read the OOP section. I would first start writting functions. Think if it like this, if you use exact code twice (you

Re: [PHP] POP3 ... syntax error

2003-02-05 Thread Adam Voigt
How about some code? On Wed, 2003-02-05 at 10:21, Christian Ista wrote: Hello, I'm trying to access pop3 server via PHP code. I can establish the connection, send the USER command (I receive the +OK answer). After that I sent the PASS command

Re: [PHP] Include today's date in a SQL statement?

2003-02-05 Thread Jonathan Pitcher
Brian, $Today = // Date format that you use that can be compared to the date stored in the database. $Query = WHERE start_date $Today and end_date =$Today; I just showed the where statement of the query. You can add in any statement you want before that to select or manipulate data based on

[PHP] Documentation Help

2003-02-05 Thread Hardik Doshi
Hi Everyone, I worked on educational intranet and library management system. I did comment my code but i dont know how to document functional and technical specification as well as database schema. Can anyone help me how to start working on documentation part so other developer can easily

Re: [PHP] Creating associative array

2003-02-05 Thread Ernest E Vogelsinger
Don't use array_push - simply set the value: $image_array[$file_name] = $image_url; - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 05, 2003 1:28 PM Subject: Re: [PHP] Creating associative array

Re: [PHP] writing to the db on close

2003-02-05 Thread Ernest E Vogelsinger
As you correctly found out, the onUnload handler would be the place to do this, something like this: Within your page, have a hidden form: form name=oncloseform action=onclose.php input type=hidden name=any_data_you_want_to_pass value= /form In your body statement you'll have body

RE: [PHP] Documentation Help

2003-02-05 Thread Jon Haworth
Hi Hardik, I worked on educational intranet and library management system. I did comment my code but i dont know how to document functional and technical specification as well as database schema. Theoretically, you should write the specs before the program (that way, the program matches

[PHP] Date format from file

2003-02-05 Thread ed
Is it possible to read a string from a text file (i.e. 0502031130) and be able to use that in a date function such as: $date = date(dmyHi, strtotime('+28 days)); How would I use that string as the date in the above code? TIA, Ed -- PHP General Mailing List (http://www.php.net/) To

[PHP] Question about $DOCUMENT_ROOT and include

2003-02-05 Thread Al
Why does the absolute path work and not document_root? include ($DOCUMENT_ROOT/root_functionsT.php); //error message says function undefined include (/www/r/myID/htdocs/root_functions.php); // Works just fine echo $DOCUMENT_ROOT/root_functionsT.php; // shows

[PHP] reading CD information

2003-02-05 Thread Adam Williams
Is it possible to have PHP read cd label information? You know in windows like after you put in a CD and use Windows Explorer and go to your CD rom drive's letter it will say like D: (MSOffice2K) or D: (date of burned cd) or D: (XPProCD), etc...If you know what I am talking about, is there a way

[PHP] Redirecting to PHP

2003-02-05 Thread Alberto Brea
Dear list, My home page is index.html, that doesn't run PHP. I also have index.php which shows the same content with PHP. Can I do to automatically redirect a visitor from index.html to index.php? TIA Alberto

Re: [PHP] Question about $DOCUMENT_ROOT and include

2003-02-05 Thread Chris Shiflett
--- Al [EMAIL PROTECTED] wrote: Why does the absolute path work and not document_root? include ($DOCUMENT_ROOT/root_functionsT.php); //error message says function undefined include (/www/r/myID/htdocs/root_functions.php); // Works just fine Try $_SERVER['DOCUMENT_ROOT'] and see if that

[PHP] Question on readdir()

2003-02-05 Thread Brown, Steve
I've been attempting to use the readdir() function in conjunction with opendir() and a couple others like the ones found here http://www.php.net/manual/en/function.readdir.php to generate some file listings. My problem is, I've tried all the examples found on the web page linked above and all

Re: [PHP] Redirecting to PHP

2003-02-05 Thread John Nichel
You can do it with JavaScript or a Meta refresh, but why? If both the pages are the same, why even use the HTML one? Alberto Brea wrote: Dear list, My home page is index.html, that doesn't run PHP. I also have index.php which shows the same content with PHP. Can I do to automatically redirect a

Re: [PHP] reading CD information

2003-02-05 Thread Chris Shiflett
--- Adam Williams [EMAIL PROTECTED] wrote: Is it possible to have PHP read cd label information? Yes. I have never done this myself, but I know of at least one or two open source projects that read information such as that from a CD. They usually go one step better and communicate with

[PHP] Control what is going to be exibited on screen

2003-02-05 Thread The New Source
Ok, guys this is it With th code bellow I can get the html file from a url and get the content without the html tags, but I wanna control the exibition of this content and only display the lines 1 to 4, and I can't seem to get how to do this. I thank any advice you can get me. Rodrigo //

Re: [PHP] Date format from file

2003-02-05 Thread Tom Rogers
code? ehhc TIA, ehhc Ed If you change the format of your string you can do this: $t = 20030205 1530; echo 'New date/time = '.date(d/m/Y H:i,strtotime($t. + 28 days)).'br'; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] headers and redirect

2003-02-05 Thread Erich Beyrent
Hi everyone, I have a question about clearing or resetting headers. My script executes a function based on the variables passed to it, such as: events.php?action=add However, when the function is finished, I need to redirect to events.php with no variables, because refreshing the page causes

Re: [PHP] Question about $DOCUMENT_ROOT and include

2003-02-05 Thread Al
Thanks for the feedback That works if I leave off the quotes from around DOCUMENT_ROOT. Simply $_SERVER[DOCUMENT_ROOT] I'd really like to get this working in the htaccess file. php_value include_dir .:/www/r/myID/htdocs/ I redoing a site with several php files in assorted directories and

RE: [PHP] headers and redirect

2003-02-05 Thread John W. Holmes
I have a question about clearing or resetting headers. My script executes a function based on the variables passed to it, such as: events.php?action=add However, when the function is finished, I need to redirect to events.php with no variables, because refreshing the page causes another

RE: [PHP] Date format from file

2003-02-05 Thread John W. Holmes
Is it possible to read a string from a text file (i.e. 0502031130) and be able to use that in a date function such as: $date = date(dmyHi, strtotime('+28 days)); How would I use that string as the date in the above code? What database are you using? You can probably do all of this in

Re: [PHP] Redirecting to PHP

2003-02-05 Thread Jonathan Pitcher
There are three ways to do this that I can think of. 1.) The first is the most effective but also requires access to the apache config file: Find the line that reads: DirectoryIndex index.html Change it to read DirectoryIndex index.html index.php As always when working with a config file.

RE: [PHP] reading CD information

2003-02-05 Thread Jon Haworth
Hi Adam, Is it possible to have PHP read cd label information? Where is the CD? If it's in the CD-ROM drive of the webserver: probably. If it's in the CD-ROM drive of a visitor to your website: no. Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Redirecting to PHP

2003-02-05 Thread John Nichel
Put a .htaccess file in your document root for your website with this line DirectoryIndex index.php Alberto Brea wrote: My ISP tells me that the home page must be index.html. However, I cannot make PHP scripts run on this page, so I made an index.php page with the same content, and thought

RE: [PHP] reading CD information

2003-02-05 Thread Adam Williams
It would be in the cd-rom drive of the webserver. The CD's would be rotated periodically and the only way I have to identify what is on each cd and which .exe to run on it is by identifying it by its cd label. I've searched google and php.net but haven't found a function that can read cd labels.

Re: [PHP] reading CD information

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 3:06:29 AM, you wrote: AW Is it possible to have PHP read cd label information? You know in windows AW like after you put in a CD and use Windows Explorer and go to your CD rom AW drive's letter it will say like D: (MSOffice2K) or D: (date of burned cd) AW or D:

RE: [PHP] Date format from file

2003-02-05 Thread ed
I'm not using this for any database related function. What I'm trying to do is come up with a method for scheduling processes needed for our company that are run through command line php scripts. I'll be using cron or to run a command that will check the date within the file and see if the

[PHP] How to store a file in an array and access each line

2003-02-05 Thread The New Source
How can I read a file in a url, into an array so that I can access each line by itself? Thanx Rodrigo

Re[2]: [PHP] reading CD information

2003-02-05 Thread Tom Rogers
Hi, Adam TR You could try the vol command using exec{} and parse out the volume name TR -- TR regards, TR Tom This should do it: ? exec(vol g:,$result); $label = trim(strrchr($result[0],' ')); echo 'Label is '.$label.'br'; ? -- regards, Tom -- PHP General Mailing

RE: [PHP] In Need of a PHP freelancer...

2003-02-05 Thread @ Nilaab
You can also try the following site. It is loaded with freelance developers who are sitting there waiting for requests like yours. http://webhostingtalk.com/forumdisplay.php?s=deff1e6ceaa5f13e400bfefc1702a2f cforumid=33 -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL

RE: [PHP] How to store a file in an array and access each line

2003-02-05 Thread John W. Holmes
How can I read a file in a url, into an array so that I can access each line by itself? A certain four letters come to mind for this question... www.php.net/file ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ --

Re[2]: [PHP] reading CD information

2003-02-05 Thread Adam Williams
Thanks Tom, that works perfect! Adam On Thu, 6 Feb 2003, Tom Rogers wrote: Hi, Adam TR You could try the vol command using exec{} and parse out the volume name TR -- TR regards, TR Tom This should do it: ? exec(vol g:,$result); $label =

Re: [PHP] reading CD information

2003-02-05 Thread John Nichel
Guess it's not on Linux, eh? :) Adam Williams wrote: Thanks Tom, that works perfect! Adam On Thu, 6 Feb 2003, Tom Rogers wrote: Hi, Adam TR You could try the vol command using exec{} and parse out the volume name TR -- TR regards, TR Tom This should do it: ?

RE: [PHP] Date format from file

2003-02-05 Thread John W. Holmes
I'm not using this for any database related function. What I'm trying to do is come up with a method for scheduling processes needed for our company that are run through command line php scripts. I'll be using cron or to run a command that will check the date within the file and see if the

[PHP] empty variables from a form

2003-02-05 Thread Sunfire
hi.. how would you test for an empty (unused) variable from a form.. i have a phone number split into 3 different vairiables and want to test to see if they were used in the form before displaying either the phone number itself or just leaving it out of the display... what code would be good to

Re: [PHP] reading CD information

2003-02-05 Thread Adam Williams
Unfortunately not. I'm putting PHP on a windows 95 computer and the person will put a cdrom into the cd drive. Then they will double click on a shortcut that will run the php executable with script, and the script will read the cd label. depending on what the cd label is, it will call the

Re[2]: [PHP] reading CD information

2003-02-05 Thread Tom Rogers
Hi, Thursday, February 6, 2003, 4:49:23 AM, you wrote: JN Guess it's not on Linux, eh? :) JN Adam Williams wrote: Thanks Tom, that works perfect! Adam On Thu, 6 Feb 2003, Tom Rogers wrote: Hi, Adam TR You could try the vol command using

Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
how would you test for an empty (unused) variable from a form.. i have a phone number split into 3 different vairiables and want to test to see if they were used in the form before displaying either the phone number itself or just leaving it out of the display... what code would be good to

RE: [PHP] Date format from file (END)

2003-02-05 Thread ed
I don't know of another program. As long as you write a unix timestamp or some date format that can be parsed by strtotime(), then you can do it this way. Use fopen()/fread() to get the last time saved in the file. If you're using unix timestamps, just see if the current time is greater

[PHP] best oop book

2003-02-05 Thread Edward Peloke
Ok, I have seen a suggestion or two for oop books but I would like to buy one so what is the best php object oriented book on the market...in everyone's opinion. The Professional PHP4 XML book looks good for xml, so I hope to get that one, I have a php/mysql book, just want a good oop book now.

[PHP] Re: [PHP-DEV] Database Abstraction

2003-02-05 Thread Maxim Maletsky
* forwarding to PHP general Kasper Skårhøj [EMAIL PROTECTED] wrote... : There are millions of PHP-scripts using MySQL. Most of them probably doesn't use an Database Abstraction Layer (DBAL) in order to support other databases. When the requirement is made some day that a script should

Re: [PHP] empty variables from a form

2003-02-05 Thread Kevin Stone
Next time please consider searching on PHP.net or Google before you post. This is an exceedingly basic question and there is an extraordinary amount of information already out there.. if(empty($_POST['ac2'])) { echo Area Code is a required field.; } -Kevin - Original Message - From:

Re: [PHP] empty variables from a form

2003-02-05 Thread Sunfire
tnx will try that my other code looked something like that but it didnt work.. probably had the (and ) in the wrong places... i set it up as the whole statement as 1 if statement not 3 different ones.. - Original Message - From: Erich Beyrent [EMAIL PROTECTED] To: Sunfire [EMAIL

Re: [PHP] empty variables from a form

2003-02-05 Thread Kevin Stone
FYI, isset() will return true for an empty variable. You use isset() only when you expect there to be no variable. But for a hard coded HTML form the variable will *always* be set (except in the case of check boxes) even if thas no value. So your only options are to use empty() or test the

[PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Øystein Håland
I use the following function to create links to files in the same catalog (and format the link text): function createLink() { $handle=opendir(.); while ($file = readdir($handle)){ if (($file == .) || ($file == ..) || (ereg(index, $file) == true) || ($file == basename ($PHP_SELF)))

[PHP] session_cache_limiter with Internet Explorer

2003-02-05 Thread Gerard Samuel
Has anyone gotten this function or something like it to work correctly with Micorsoft IE 5/6. When I have it set to private, Mozilla and Opera works wonderfully, but IE doesn't seem to have half a brain, and would continually would have to refresh the page to get current data. I've tried it

Re: [PHP] POP3 ... syntax error

2003-02-05 Thread Jason Wong
On Wednesday 05 February 2003 23:32, Adam Voigt wrote: How about some code? On Wed, 2003-02-05 at 10:21, Christian Ista wrote: Hello, I'm trying to access pop3 server via PHP code. I can establish the connection, send the USER command (I receive the +OK answer). After that

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:21, Øystein Håland wrote: The part $file == basename ($PHP_SELF) is intended to not link to the calling document, but this part doesn't work. So, what shall I do instead? Could you explain HOW it doesn't work? -- Jason Wong - Gremlins Associates -

[PHP] php pages broken after moving to a newer version

2003-02-05 Thread chip . wiegand
I have a web site on a server running freebsd-4.2/mysql-3.23.10/php-4.0.3pl1. I am replacing that machine with a new box running freebsd-4.7/mysql-3.23.52/php-4.2.3. After copying the web site to the new server some pages no longer include the 'include' pages. I am using php frames. I load the

Re: [PHP] empty variables from a form

2003-02-05 Thread Sunfire
hi i tried the code below as well as empty and isset and it seems that even if the variables that have valid data in them they also get excluded from display with the empty ones.. does mean any string? or is it the normal empty string? i need to know if the vars that dont get filled in from the

[PHP] server date

2003-02-05 Thread Renaldo De Silva
is there a function to get the server date date(); uses the date of the client machine i need a function that grabs the date on the server. Any help apreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dynamically Generated Images ( PHPGraph ) and timeouts.

2003-02-05 Thread Daniel Joyce
I'm using JPGraph in a PHP script, and I have caching turned on in JPGraph. The graph making PHP is called from a img tag like so: img src=testgraph.php If JPGraph has determined that the image is too old, it regenerates it on the fly. Problem is, if the image takes more than 1-2 seconds for

Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
how would you test for an empty (unused) variable from a form.. i have a phone number split into 3 different vairiables and want to test to see if they were used in the form before displaying either the phone number itself or just leaving it out of the display... what code would

Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:41, [EMAIL PROTECTED] wrote: I have a web site on a server running freebsd-4.2/mysql-3.23.10/php-4.0.3pl1. I am replacing that machine with a new box running freebsd-4.7/mysql-3.23.52/php-4.2.3. After copying the web site to the new server some pages no longer

[PHP] Variable Problem

2003-02-05 Thread Sierra Times.com
I have a variable that get's chopped off at the %20 character. In the form page I have: bFrom: ?= $name;? brE-mail address: ?= $email;?br ?= $sent;?/b/font/td $sent and $name shows up fine, but immedieately I added (for testing) input type=text name=sent value=?= $sent;? input

  1   2   >