Re: [PHP] Delete files older than X seconds.

2001-08-31 Thread
From: Julio Nobrega Trabalhando <[EMAIL PROTECTED]> Date: Thu, Aug 30, 2001 at 12:56:38PM -0300 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] Delete files older than X seconds. > Hi All, > > Another doubt. How can I delete files older than X seconds from a given > folder? > > At the on-

[PHP] help with strings...

2001-08-31 Thread Stig-Ørjan Smelror
Hei all. I've got this string, $string = "test"; and I want to make a $t; out of $string. Is this possible? I tried ${substr($string, 0, 1)}, but that didn't work ;) Any help appreciated. TIA. -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801 - Vika N

[PHP] Problem with microtime()

2001-08-31 Thread Rosen
Hi, I'm using the following code: for ($i = 0; $i < 100; $i++) { $k = (int) microtime(); echo "$k"; for ($j = 0; $j < 1; $j++) $m = $j *3; } but it prints me only "0.." Where can be problem ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Is there anything in here that could be considered a parse error?

2001-08-31 Thread
From: John Meyer <[EMAIL PROTECTED]> Date: Thu, Aug 30, 2001 at 03:49:57PM -0700 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] Is there anything in here that could be considered a parse error? > 1 if (empty($DidSurvey[$p_surveyid])) { > 2 if (is_array($p_answers)){ > 3 foreach($p_answers

RE: [PHP] Problem with microtime()

2001-08-31 Thread Lawrence . Sheed
You are casting microtimes results as an integer value. It isn't an integer value, hence the 0. >From the manual It returns the string the string "msec sec" where sec is the current time measured in the number of seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and msec is the mic

Re: [PHP] Refreshing php.ini without restart...

2001-08-31 Thread Gerard Samuel
I can only speak for apache... ==> apachectl graceful Raphael Pirker wrote: > Hi, > > i just moved my PHP project from my local PC to the online webserver and I > will need to do a few adjustments to the server. since the server is used by > all the employees in the company, there is no chan

Re: [PHP] Problem with microtime()

2001-08-31 Thread Andrey Hristov
"; echo $b; ?> Produces : 123 123 So I don't think that the problem is how PHP makes the casting but the algorithm is useless. Do that : $ar=explode(' ',microtime()); $a=$ar[1]+$ar[0]; Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message -

[PHP] Re: Problem with microtime()

2001-08-31 Thread _lallous
string microtime(void); you see? you're casting from a string to int by your code: (int) microtime(); you can do: $k = microtime() w/o the (int) "Rosen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I'm using the following code: > for ($i = 0; $i < 10

Re: [PHP] determining the pixel width of a string

2001-08-31 Thread _lallous
It also depends on the font! it might be a fixed font or not a fixed font! "Don Read" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On 30-Aug-2001 John Meyer wrote: > > Is there anyway to determine the pixel width of a string? > > > > $font=2; > $strpx=imag

[PHP] help !

2001-08-31 Thread Nikola Veber
I'm sorry I have to ask these stuff, but I havent found anything like this in the manual. I am running win98 with properly insalled xitami web server with php support (I ran installshield). Any way, I cant figure out hov to make a smple program with echo command, because I don't know where to

RE: [PHP] begginer needs help

2001-08-31 Thread Ralph Guzman
If you choose to install Apache/PHP and perhaps even mySQL and you want to avoid downloading each individually, then configuring them to work together. You can download at straight-forward easy installation distribution that includes all three. Check out Nu-Sphere, and download one of their free d

Re: [PHP] Problem with microtime()

2001-08-31 Thread Rosen
Hi, The problem is, thath I want to generate random number between 1 and 1 How can I do it ? Thanks, Rosen "Lawrence Sheed" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED] ... > > You are casting microtimes results as an integer value. It isn't an integer >

Re: [PHP] determining the pixel width of a string

2001-08-31 Thread Don Read
On 31-Aug-2001 _lallous wrote: > It also depends on the font! > it might be a fixed font or not a fixed font! > True, but the five installed GD fonts are fixed cell fonts. > "Don Read" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> >> On 30-Aug-2001 John

RE: [PHP] help !

2001-08-31 Thread Jon Haworth
Hi Nikola, You need to add your PHP code to your HTML. I'm sure Dreamweaver allows you to edit the HTML directly, but I don't know how I'm afraid. To check everything's up and running, open Notepad (should be under Start>Programs>Accessories) and paste this in: ---start--- Test PHP page

[PHP] base64_decode problem.

2001-08-31 Thread Johan Vikerskog (ECS)
Hi all. I have this variable cn$ which sometimes is in base64 format and sometimes it isnt. This is how the script looks like. It will get bigger but this is one of the problem i have to get threw first. If you wonder why i dont use the built in ldap function in PHP i just can tell you that i

Re: [PHP] help !

2001-08-31 Thread CC Zona
In article <67DF9B67CEFAD4119E4200D0B720FA3F70FCBC@BOOTROS>, [EMAIL PROTECTED] (Jon Haworth) wrote: > You need to add your PHP code to your HTML. I'm sure Dreamweaver allows you > to edit the HTML directly, but I don't know how I'm afraid. Yep, just use DW's "HTML Source" view (or open in Home

[PHP] just 10 characters from a string

2001-08-31 Thread Marcos Lloret
hi to all, i have a long string (about 255 characters) and i would like to show only 10. how can i do it? thanks in advance, marcos

[PHP] 2 General MySQL Questions

2001-08-31 Thread Tom Churm
hi, i'm awared that this is not exactly the correct forum for these questions. please humor me this one time: 1) can anyone refer me please to a public, postable MySQL newsgroup? i've found a few MySQL newsgroups, but none of them allows posting. it would be great if you could also tell me

[PHP] Re: just 10 characters from a string

2001-08-31 Thread James Holloway
Hi Marcos, use substr(); http://www.php.net/manual/en/function.substr.php $string = substr($string, 0, 10); James "Marcos Lloret" <[EMAIL PROTECTED]> wrote in message 019701c131f1$f57bdfa0$371c94c1@mlloret">news:019701c131f1$f57bdfa0$371c94c1@mlloret... hi to all, i have a long string (a

RE: [PHP] just 10 characters from a string

2001-08-31 Thread Johan Vikerskog (ECS)
$string=abcdefghijklmnopqrstuvxyz $string = substr($string, 0, 10); Thats all there is to it. -Original Message- From: Marcos Lloret [mailto:[EMAIL PROTECTED]] Sent: den 31 augusti 2001 09:53 To: [EMAIL PROTECTED] Subject: [PHP] just 10 characters from a string hi to all, i have a

[PHP] Chat / IRC

2001-08-31 Thread ERISEN, Mehmet Kamil
HEllo, Did anybody have a luck with a good Chat Program.? Thanks, Mehmet. = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com -- PHP General M

[PHP] assosiative array in php

2001-08-31 Thread Kiat Kin
how to insert the new key/value pair into assiosiative array in php. TIA, Kiat Kin -- 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]

RE: [PHP] 2 General MySQL Questions

2001-08-31 Thread Jon Haworth
> 1) can anyone refer me please to a public, postable MySQL newsgroup? > i've found a few MySQL newsgroups, but none of them allows posting. it > would be great if you could also tell me the name of the (public) > newsgroup server hosting the group. > Not sure, but a hunt around on groups.goo

Re: [PHP] just 10 characters from a string

2001-08-31 Thread
From: Marcos Lloret <[EMAIL PROTECTED]> Date: Fri, Aug 31, 2001 at 09:53:01AM +0200 Message-ID: <019701c131f1$f57bdfa0$371c94c1@mlloret> Subject: [PHP] just 10 characters from a string > hi to all, > i have a long string (about 255 characters) and i would like to show only 10. >how can i do

Re: [PHP] assosiative array in php

2001-08-31 Thread Andrey Hristov
$ar_name[$new_key]=$value; Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Kiat Kin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 12:35 PM Subject: [PHP] assosiative array in php > how to insert the n

Re: [PHP] 2 General MySQL Questions

2001-08-31 Thread B. van Ouwerkerk
>i'm awared that this is not exactly the correct forum for these >questions. please humor me this one time: Hmmm. >if you don't know of a newsgroup, how about a good (digest-capable) >mailing list? i've tried the MySQL general mailing list, but they don't >offer a 'digest' option and i can't h

[PHP] header,session stuff works on live fails on dev...?

2001-08-31 Thread Nic Skitt
Hi all, I am still failing to fix this problem with headers. I receive the following error: Warning: Cannot add header information - headers already sent by (output started at c:\apache\apache\htdocs\client-secure.php:11) in c:\apache\apache\htdocs\client-secure.php on line 18 Which would indic

[PHP] Re: Whacky WGET issue...

2001-08-31 Thread Peter Clarke
"Sondra Russell" <[EMAIL PROTECTED]> wrote in message news:p05100303b7b4263f844e@[212.43.200.227]... > Hello everyone! > > Crazy question: > > I've created a little script that reads in .txt files and, with the > help of phplib templates, matches them up with a collection of > templates and spits

[PHP] number to word converter

2001-08-31 Thread Carry Ian
Hello, can anybody suggest me where could i get a script to convert a integer value to a phrase. for eg. "135" to "One Hundred And Thirty Five" thanks in advance. carry -- Get real solut

Re: [PHP] header,session stuff works on live fails on dev...?

2001-08-31 Thread Christopher William Wesley
On Fri, 31 Aug 2001, Nic Skitt wrote: > Warning: Cannot add header information - headers already sent by (output > started at c:\apache\apache\htdocs\client-secure.php:11) in > c:\apache\apache\htdocs\client-secure.php on line 18 > > Which would indicate that the line 11 is sending output to the

[PHP] session.save_handler = user

2001-08-31 Thread php-jp
Hello! I have a question regarding sessions when register_globals = off in php.ini Using the example from www.php.net: This works well when session.save_handler = files However, when session.save_handler = user where the "user" functions are the ones found on phpbuilder.com. It

Re: [PHP] session.save_handler = user

2001-08-31 Thread Andrey Hristov
A colegue of mine said to me a month ago that in the routines on phpbuilder.com there are one or few bugs. Look at the code. The problem is in session handlers. Hope this will help you. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - Fr

Re: [PHP] header,session stuff works on live fails on dev...?

2001-08-31 Thread Nic Skitt
Chris, Thanks, Andrey pointed me in the right direction. It was the error output that was causing the headers to be sent ergo more errors :-P Cheers Nic -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [PHP] number to word converter

2001-08-31 Thread
From: Carry Ian <[EMAIL PROTECTED]> Date: Fri, Aug 31, 2001 at 12:36:20PM +0200 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] number to word converter > Hello, > > can anybody suggest me where could i get a script to convert a integer value to a >phrase. > for eg. "135" to "One Hundred And Th

Re: [PHP] number to word converter

2001-08-31 Thread
From: * R&zE: <[EMAIL PROTECTED]> Date: Fri, Aug 31, 2001 at 02:03:06PM +0200 Message-ID: <[EMAIL PROTECTED]> Subject: Re: [PHP] number to word converter Oh... btw... It works uptil 99. So you can convert everything between 1 and 99. Zero (0) cannot be converted (stupid but true, and eas

[PHP] HTTP authentication

2001-08-31 Thread Boris
Is there a way to force re-authentication without closing and re-opening the browser. Thanks Boris -- 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

Re: [PHP] access to the apache environment from the c-client builtinto PHP 4.0.x

2001-08-31 Thread Liam Hoekenga
On Thu, 30 Aug 2001, Rasmus Lerdorf wrote: > Just do a putenv() from PHP? We've tried doing that - that's how c-client normally wants to learn about the krb4 ticket file (with the KRBTKFILE variable). But... something is caching the KRBTKFILE value in appropriately, and it's not getting reset e

Re: [PHP] Refreshing php.ini without restart...

2001-08-31 Thread Miles Thompson
Just restart the web server -- IIS or Apache Miles At 02:06 PM 8/31/01 +0800, Raphael Pirker wrote: >Hi, > >i just moved my PHP project from my local PC to the online webserver and I >will need to do a few adjustments to the server. since the server is used by >all the employees in the company,

[PHP] form data used on the same page?

2001-08-31 Thread webmaster
Greetungs. Is it possible to use data collected in a form ON THE SAME PAGE without using the form's "submit" button? In other words, if a text field is filled in, can I capture (via PHP or other means) the info typed there and display it elsewhere on the same page? I realize the answer may very

Re: [PHP] form data used on the same page?

2001-08-31 Thread
From: webmaster <[EMAIL PROTECTED]> Date: Fri, Aug 31, 2001 at 07:46:41AM -0500 Message-ID: <003001c1321a$fb84afc0$[EMAIL PROTECTED]> Subject: [PHP] form data used on the same page? > Greetungs. > > Is it possible to use data collected in a form ON THE SAME PAGE without > using the form's "subm

RE: [PHP] Directing A Parked Domain To A Sub Directory

2001-08-31 Thread Dave
>I've got a website, we'll call it MainDomain.com. > >I created a specialty site in a sub-directory. We'll call the >sub-directory Widgets. > >I want a different domain to point to that sub directory. We'll call the >new domain WidgetWorld.com > >My webhost will allow me to park WidgetWorld.com

[PHP] Opt-In Request Re: Php-general@lists.php.net

2001-08-31 Thread abundantliving
This is a one-time mailing only. You are receiving this message because you recently submitted to one of our websites -- this is simply an attempt to update our files by verifying your email address [EMAIL PROTECTED] at 206.43.192.76 *

Re: [PHP] The future of PHP

2001-08-31 Thread Manuel Lemos
Hello, Zeev Suraski wrote: > > At 01:40 31-08-01, Manuel Lemos wrote: > >Whoever hears you may even believe that Microsoft products and > >supporting sites are successful because they don't have flaws. Sorry, > >but honestely this sounds like an excuse for not doing it. > > Microsoft chooses wh

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Arcadius A.
Thanks Jack arcad. "Jack Dempsey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you have to use $GLOBALS["SCRIPT_FILENAME"] > > jack > > "Arcadius A." wrote: > > > Hello ! > > Why this script prints an empty string(it prints nothing) as the value of

[PHP] move_uploaded_file and related question

2001-08-31 Thread ---
but why i should use move_uploaded_file and similar functions instead of a simple copy command?? which is the security hole related to the use of copy?? At the php site is strongly encouraged the use of these functions, but i don't know why, where's the problem?? - Federico

Re: [PHP] move_uploaded_file and related question

2001-08-31 Thread Andrey Hristov
You have to move or delete your file so it have not te be in the /tmp after your script finishes or /tmp will get crowdy. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "---" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Frida

Re: [PHP] header() + link..

2001-08-31 Thread Ashwin Kutty
Hi, I thought as much.. And no, dont want to use frames.. Id rather just have the URL shown in the Location Field.. I do realise, there is no real way to ever hide the URL, however, I just dint want to make it too obvious for the users to bookmark or pass around to people who are not authorized

Re: [PHP] header() + link..

2001-08-31 Thread
From: Ashwin Kutty <[EMAIL PROTECTED]> Date: Fri, Aug 31, 2001 at 10:44:04AM -0300 Message-ID: <[EMAIL PROTECTED]> Subject: Re: [PHP] header() + link.. > Hi, > > I thought as much.. And no, dont want to use frames.. Id rather just have the > URL shown in the Location Field.. > > I do realise,

[PHP] Segmentation Fault on apache with imageCopy fonction

2001-08-31 Thread Matthieu Brunet
This line in my code : imageCopy($im,$source,10,10,0,0,$this->width,$this->height); Give me a segmentation fault in apache : [Fri Aug 31 13:58:43 2001] [notice] child pid 4158 exit signal Segmentation fault (11) If I replace this fonction by imageCopyMerge($im,$source,10,10,0,0,$this->width,$thi

RE: [PHP] HTTP authentication

2001-08-31 Thread Jon Haworth
Won't sending a 401 header do the trick? Not sure, but worth a try. Cheers Jon -Original Message- From: Boris [mailto:[EMAIL PROTECTED]] Sent: 31 August 2001 13:08 To: [EMAIL PROTECTED] Subject: [PHP] HTTP authentication Is there a way to force re-authentication without closing an

[PHP] PHP Syntax question.

2001-08-31 Thread Erols
Sorry for my ignorance. I just saw some PHP syntax that I am not aware of. Could someone please shed some light on this. What is the purpose of the @ in the following call to the PHP mail method? @mail( /* some parameters */ ); If I remove the @, then php compiler complains. Thank you in advanc

RE: [PHP] PHP Syntax question.

2001-08-31 Thread Jon Haworth
The @ suppresses any warning/error messages that are produced - hence the complaints when it's taken out :-) Cheers Jon -Original Message- From: Erols [mailto:[EMAIL PROTECTED]] Sent: 31 August 2001 01:06 To: [EMAIL PROTECTED] Subject: [PHP] PHP Syntax question. Sorry for my ignorance.

Re: [PHP] The future of PHP

2001-08-31 Thread Christopher CM Allen
Php'ers: These are great points that have been brought up (a kinda synopsis, since we are repeating here :) 1) some want direct marketing 2) Some believe the status quo is enough 3) all agreee php is useful as a web development tool/language 4) some agree that it can/should be more (GTK/Command

[PHP] Variable Syntax Question

2001-08-31 Thread Ninety-Nine Ways To Die
I have a form that reads in a couple variables via: Now... I want to read in those variables in something like the following: for($i=1;$i<4;$i++) { echo "$bob$i"; } BUT that obviously doesn't work, it simple prints 1, so how to I make it echo the value of the variable bob1? -Hass

Re: [PHP] Variable Syntax Question

2001-08-31 Thread
From: Ninety-Nine Ways To Die <[EMAIL PROTECTED]> Date: Fri, Aug 31, 2001 at 10:28:56AM -0400 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] Variable Syntax Question > I have a form that reads in a couple variables via: > > > > > > > Now... I want to read in those variables in something li

Re: [PHP] Variable Syntax Question

2001-08-31 Thread
From: * R&zE: <[EMAIL PROTECTED]> Date: Fri, Aug 31, 2001 at 04:36:36PM +0200 Message-ID: <[EMAIL PROTECTED]> Subject: Re: [PHP] Variable Syntax Question Btw... Why not just use an array? and then: foreach ($bob as $myValue) { print ($myValue); } That's a much nicer solution... --

[PHP] Re: File read Parser error

2001-08-31 Thread Bopolissimus Platypus
On Thu, 30 Aug 2001 17:06:38 -0500, [EMAIL PROTECTED] (Gary) wrote: >Can someone tell me why I am getting an error for the second line below. >It works locally but not live. > > $filename = "www/name/test/free.txt" missing semicolon there. tiger -- PHP General Mailing L

[PHP] PHP Security

2001-08-31 Thread Alfredeen, Johan
I am looking for a good, practical tutorial on what I should be doing as a developer to create a secure web site (PHP related). I have looked in my PHP text and searched the web, but haven't found anything real useful. I am not interested in Apache or OS security, as this is -hopefully- taken care

Re: [PHP] The future of PHP

2001-08-31 Thread Thomas Deliduka
Actually this originally started (If you're referring to the thread itself) with my question as to what to tell my JSP-loving buddy that PHP isn't an antiquated and dying language/processing system. I NEVER would have thought it was balloon into this conversation! On 8/31/2001 10:29 AM this was

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Alexander Skwar
So sprach »Arcadius A.« am 2001-08-31 um 05:27:04 -0700 : > $u = $SCRIPT_FILENAME; Because you did not define $SCRIPT_FILENAME anywhere. If you want to access the global variable, you've got to say so: global $SCRIPT_FILENAME; Alexander Skwar -- How to quote: http://learn.to/quote (german)

RE: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Boget, Chris
> So sprach »Arcadius A.« am 2001-08-31 um 05:27:04 -0700 : > > $u = $SCRIPT_FILENAME; > Because you did not define $SCRIPT_FILENAME anywhere. If you want to > access the global variable, you've got to say so: > global $SCRIPT_FILENAME; Or, so you don't have to specify all the variables you are

Re: [PHP] RE: [PHP-WIN] Can PHP and Java work together?

2001-08-31 Thread mark Charette
From: "Robin Bolton" <[EMAIL PROTECTED]> > Also, if you are considering using JavaScript to validate your form, you may > want to reconsider doing it in PHP as JavaScript is easy to circumvent. I think most if not all of us doing industrial-strength Web programming for our living end up doing it

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Alexander Skwar
So sprach »Boget, Chris« am 2001-08-31 um 10:04:49 -0500 : > Or, so you don't have to specify all the variables you are using > as globals (especially if you are using *alot* of them), you can > use: > > $GLOBALS[SCRIPT_FILENAME]; What's the gain? 'global ' has 7 characters, whereas '$GLOBALS

[PHP] Cookies

2001-08-31 Thread Jason Radley
Does anyone know how to share cookies between servers. What I want to do is set a cookies on non secure server for a secure server. Here is setcookie("SessionID","$sessid",time() + 7200,"https://domainname.com";); Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

RE: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Boget, Chris
> > Or, so you don't have to specify all the variables you are using > > as globals (especially if you are using *alot* of them), you can > > use: > > $GLOBALS[SCRIPT_FILENAME]; > What's the gain? 'global ' has 7 characters, whereas '$GLOBALS[]' has > 10 characters. So, you don't type less. A

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Arcadius A.
RE: [PHP] PHP_SELF or REQUEST_URI within Function ?Ok Men !!!. Now I see thanks alot for the inputs ! :o)) Arcad - Original Message - From: Boget, Chris To: 'Alexander Skwar' Cc: Arcadius A. ; [EMAIL PROTECTED] Sent: Friday, August 31, 2001 8:22 AM Subject: RE:

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Alexander Skwar
So sprach »Boget, Chris« am 2001-08-31 um 10:22:28 -0500 : > True. But take the following function: > > function processLotsOfFormVars() { > global $fieldOne, $fieldTwo, $fieldThree, $fieldFour; > global $fieldFive, $fieldSix, $fieldSeven; > global $PHP_SELF, $REQUEST_URI; > global $HTTP

[PHP] PHP to fax

2001-08-31 Thread Ari Nepon
Does anyone know of a way to go directly from a PHP/MySQL application to having a fax sent out??? I am trying to set up my application so that when a transaction is completed. Both parties receive a fax. Anyone done anything like this? Thanks, Ari Nepon -- PHP General Mailing List (http://www

Re: [PHP] Cookies

2001-08-31 Thread Jon Farmer
You can't set a cookie for a different domain or subdomain. If you set a cookie for a domain and then goto to SSL then the cookie will still be presented. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [

Re: [PHP] PHP to fax

2001-08-31 Thread Andrey Hristov
use exec() to call fax program on Linux. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Ari Nepon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 6:25 PM Subject: [PHP] PHP to fax > Does anyone know

RE: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Boget, Chris
> One of the downside of PHP IMHO is, that you do not have to define > variables. This leads to a lot of errors. At least there should be a > "option", which forces you to define variables, like maybe so: > dim $some_var; I definitely agree there. I've been bitten by this bug more times

Re: [PHP] Cookies

2001-08-31 Thread Jon Farmer
Ignore my previous post it is incorrect Sorry Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] - Original Message - From: "Jon Farmer" <[EMAIL PROTECTED]> To: "Jason Radley" <[EMAIL PROT

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Arcadius A.
Cool ... Now that we're talking about PHP I'd like to ask a question You know the "overloading" function in C++ Is that possible in PHP ? Basically , I'd like to define more than one function having the same name but different number of variables/parameters ... so PHP would know w

[PHP] Plese help me

2001-08-31 Thread soawarat weangkawe
We have installed PHP4.06 manually to use it with IIS 5 on win2000server We did everything the installation guide told us to do. We uncommented some options in php.ini including extension=php_oci8.dll Afer we stopped and started the Web server every dll was loaded except php_oci.dll "unable t

[PHP] My apologies for the OOAR's

2001-08-31 Thread Phil Labonte
Apparently I caused some agitation with my reply to Eric. I want to be clear so that everyone knows. I apologies for my reply and I will not be sending anymore OOAR to the list. Once again, I apologize. Phil Labonte -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

RE: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Boget, Chris
> Cool ... > Now that we're talking about PHP > I'd like to ask a question > You know the "overloading" function in C++ Is that > possible in PHP ? No, I do not believe so. > Basically , I'd like to define more than one function having > the same name but different number of v

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Philip Olson
> One of the downside of PHP IMHO is, that you do not have to define > variables. This leads to a lot of errors. At least there should be a > "option", which forces you to define variables, like maybe so: I've not followed this thread but this is pretty much what E_NOTICE is for, turn it on in

Re: [PHP] PHP to fax

2001-08-31 Thread Sean C. McCarthy
Hi Ari, If you are using Linux (if not you should! really) You can use lprfax which will let you use 'lpr -Pfax -J', mgetty-fax, efax or something like that. If you use one of those programs dump the information to file and use exec() from PHP. Sean C. McCarthy SCI, S.L. (www.sci

Re: [PHP] The future of PHP

2001-08-31 Thread Philip Olson
looks bright. -- 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]

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Arcadius A.
Ok .I see Thanks to you both ! Have a nice weekend Arcad -- 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] array search

2001-08-31 Thread Joseph Bannon
I have an array of names, like below... $people = array("Jim","John","JP"); Is there a way in an IF statement to see if someone's name is in the array? Like... if ($people =~ $person) { } I don't want to have to create a foreach loop to go through the array to see if that person is there. Jos

RE: [PHP] PHP Security

2001-08-31 Thread Seb Frost
Great question - I'd love to know too. I can give you one hint. Make sure that you validate any variables passed in the url. I had a script that should take an integer, and realised if someone put in a fraction or text then the script output errors to the html page showing file and directory na

Re: [PHP] array search

2001-08-31 Thread Andrey Hristov
from http://php.net/quickref.php $os = array ("Mac", "NT", "Irix", "Linux"); if (in_array ("Irix", $os)){ print "Got Irix"; } Andrey HristovIcyGEN Corporationhttp://www.icygen.comBALANCED SOLUTIONS - Original Message - From: "Joseph Bannon" <[EMAIL PROTECTED]> To: "PHP (E-

[PHP] Setcookie

2001-08-31 Thread Galvin, Max
Is there any way to see whether or not the cookie setting has actually worked without going to another page? I suspect there isn't but I'd like confirmation ;) Cheers Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: [PHP] PHP Security

2001-08-31 Thread Alfredeen, Johan
Thanks for the tip. This is what I am talking about. Even with an error like the one you mention below, preferably the page should die nicely and not output a bunch of secret info or other stuff to the client. I am generally careful to prevent that from happening in all my dealings with my mySQL d

RE: [PHP] Setcookie

2001-08-31 Thread Jason Radley
Please enable cookies.You need cookies to shop this site"; } else{ header("Location: somepage.php3"); } } ?> -Original Message- From: Galvin, Max [mailto:[EMAIL PROTECTED]] Sent: Friday, August 31, 2001 9:45 AM To: '[EMAIL PROTECTED]' Subject: [PHP

Re: [PHP] array search

2001-08-31 Thread Philip Olson
just to add some info. rememember this is case sensitive and spaces do matter, sometimes (depending on your goals) the following will apply : $good_names = array('jim','philip','sasheen'); $my_name= 'PHiliP'; if (in_array(trim(strtolower($my_name)),$good_names)) and, another good fu

[PHP] passing variables between scripts?

2001-08-31 Thread Jon Thompson Coon
I can't cope the fact that I loose my variables every time I reload the page. If someone could point me to the right direction, I'd be grateful. Present problem: I have a script that has some globals (surprise). Within this script, pretty deep in a function call tree, a function saves a query in

RE: [PHP] array search

2001-08-31 Thread Alfredeen, Johan
Joseph, The below postings are what you're looking for. Hopefully the in_array PHP function uses a smart search algorithm and doesn't go through the entire array. If you store your values in a db you can make use of an index on the column, or you could write your own search algorithm that uses a

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-31 Thread Alexander Skwar
So sprach »Arcadius A.« am 2001-08-31 um 17:36:51 -0700 : > Would this work ? Kinda, but not really. If you want to do this, you've got to stuff it all in one function, like so: function dunno($mandatory, $optional1 = NULL, $opt2 = NULL){ if (NULL === $optional1){ // be

Re: [PHP] just 10 characters from a string

2001-08-31 Thread Alexander Skwar
So sprach »Marcos Lloret« am 2001-08-31 um 09:53:01 +0200 : > i have a long string (about 255 characters) and i would like to show only 10. >how can i do it? substr Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.dig

RE: [PHP] Setcookie

2001-08-31 Thread Galvin, Max
Header redirect isn't vaiable in this situation. > -- > From: Jason Radley[SMTP:[EMAIL PROTECTED]] > Sent: 31 August 2001 17:00 > To: Galvin, Max > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Setcookie > > $alertthem = "Testing your browser for cookies."; > > if

Re: [PHP] The future of PHP

2001-08-31 Thread pierre-yves
> > 1) some want direct marketing > 2) Some believe the status quo is enough > 3) all agreee php is useful as a web development tool/language ... Did you open source your thread filter program? :) Good job anyway. For me the most important point is that the developer/maintainer of the language

[PHP] help again

2001-08-31 Thread Nikola Veber
I am having big troubles here. I wrote this code just as it said in the manual, and it prints "{$beer}'s taste is great";?> PHP Test "{$beer}'s taste is great"; ?> and if I don't put string into it prints nothing ! I'm kind of confused right now ... (win98, opera 5.12, php installed

Re: [PHP] help again

2001-08-31 Thread Jason Bell
All you should need to do is echo "$beer's taste is great"; don't use the braces. -Jbell - Original Message - From: "Nikola Veber" <[EMAIL PROTECTED]> To: "php forum" <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 9:38 AM Subject: [PHP] help again > I am having big troubles here. I

Re: [PHP] help again

2001-08-31 Thread Alex Marín Fica \(Desarrollo\)
echo sends a literal string to the output and eventually evaluates variables that are found inside, so it seems that your instruction should be: echo "{$beer}'s taste is great"; Why it worked with outside, I guess because it was closing some former tag in your code or something like that... Ho

Re: [PHP] help again

2001-08-31 Thread Philip Olson
Sounds like you want to do : $guiness = 'Thick and Creamy!'; $beer= 'guiness'; print ${$beer}; // Thick and Creamy! Regards, Philip Olson On Fri, 31 Aug 2001, Nikola Veber wrote: > I am having big troubles here. I wrote this code just as it said in the manual, and > it prints >

RE: [PHP] The future of PHP or my 2 cents

2001-08-31 Thread B. van Ouwerkerk
>I think with everyone replying to "The future of PHP" e-mails and putting in >their two cents, we're eventually going to raise that $100,000 in no time. > Yeah.. not to mention the time it takes to read or just download those messages. I stopped counting and started hitting the delete button.

RE: [PHP] RE: multiple submit buttons

2001-08-31 Thread Johnson, Kirk
Tim Ward wrote: > Be careful using values of submit buttons ... if the user hits return instead of clicking one of the buttons you won't get anything. If you want a default value try a hidden field before the submits with same name. > Tim, thanks for the tip. I had heard of this behavior before

Re: [PHP] PHP with Access?

2001-08-31 Thread EDUMEXICO
Try upsizer, simple but work fine. On Thu, Aug 30, 2001 at 10:02:03AM -0400, Jeff Lewis wrote: > I am using mySQL with all of my stuff but a friend who started writing some files >for our online baseball league was using Access as his database. We tried running it >on my server but it returns

  1   2   >