[PHP] making sense of time(), date() and strtotime()

2003-05-29 Thread Justin French
I have $_POST['day'] (1-31), $_POST['month'] (1-12), $_POST['year'] (2003-2004). I store all dates as unix (epoch) timestamps, and generate the timestamp for the event with: strtotime('{$_POST['month']}/{$_POST['day']}/{$_POST['day']}'); Everything works fine on my LAN (Australia), but when I up

Re: [PHP] Netbilling PHP Script

2003-05-29 Thread Mike Morton
I have to get this off my chest, and I tried to send it directly to Jason off list, but the email bounces back. Why? Probably because he gets a lot of these emails. Don't like what I have to say? Tough luck, I am sick of unconstructive emails hitting the list putting people down. If you cannot

Re: [PHP] strip_tags() Quandry....

2003-05-29 Thread CF High
Hey Justin. Sorry for the late reply -- got totally wrapped up in utilizing that highly useful bit of reg exp code. Thanks for the heads up; it certainly solved the problem. Unfortunately, or fortunately, new problems have arisen -- time to dive into learning some reg exp syntax Thanks

[PHP] Re: corrupt images

2003-05-29 Thread Al
Check that you are using the correct MIME type. There is a note on this in the User Contributed Notes under the function definition. Jason Jacobs wrote: Hi all. I've been struggling with getting images to upload cleanly. I'm using php 4.2.2. When I look at the uploaded file info, it gives

[PHP] PHP and Flash

2003-05-29 Thread César Aracena
Hi all, I just made a pretty little flash banner with buttons and everything... Does anyone knows if I can make the flash buttons links with dynamic content? I need to fetch cartain common pages but with different variables. Thanks in advanced, --- Cesar Aracena [EMAIL PROTEC

Re: [PHP] Decrypting data with GnuPG

2003-05-29 Thread Pierre-Luc Soucy
Hi, Does that mean that there is no way to achieve this with PHP and that I should rather use the --passphrase-fd argument? Thanks, Pierre-Luc Evan Nemerson wrote: GnuPG doesn't use stdin to read the password, which is where you're sending it. It uses a more low-level interface (check out the

php-general Digest 29 May 2003 12:05:40 -0000 Issue 2085

2003-05-29 Thread php-general-digest-help
php-general Digest 29 May 2003 12:05:40 - Issue 2085 Topics (messages 149331 through 149389): Help with eval() 149331 by: zavaboy 149371 by: Marek Kilimajer Re: detect proxy 149332 by: sonjaya Re: Create Links on the fly? 149333 by: Justin French Re: How ca

[PHP] PHP 4.3.2 released

2003-05-29 Thread Jani Taskinen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 After a lengthy QA process, PHP 4.3.2 is finally out! This maintenance release solves a lot of bugs found in earlier PHP versions and is a *strongly* recommended upgrade for all PHP users. PHP 4.3.2 contains, among others, following importan

Re: [PHP] upload problem, urgent plz guy

2003-05-29 Thread Marek Kilimajer
Use move_uploaded_file() instead of copy() fr r wrote: i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/t

RE: [PHP] upload problem, urgent plz guy

2003-05-29 Thread Jay Blanchard
[snip] i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 [/snip] Have you read and tr

[PHP] upload problem, urgent plz guy

2003-05-29 Thread fr r
i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 and here is my code:

[PHP] upload problem, urgent plz guy

2003-05-29 Thread fr r
i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 and here is my code:

[PHP] upload problem, urgent plz guy

2003-05-29 Thread fr r
i'm trying to do a very simple thing: upload image but it keep giving me this error although i gave permession on folder: Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/vhosts/negoumelshasha.com/httpdocs/test4.php on line 9 and here is my code:

RE: [PHP] Date question

2003-05-29 Thread Jay Blanchard
Have you checked the date functions at http://www.php.net ? -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 6:39 AM To: [EMAIL PROTECTED] Subject: [PHP] Date question Hi, For a given date, how can i find out the date of the day of the begining of t

[PHP] Socket problem

2003-05-29 Thread Adrian Zaharia
Hi, I try to make a script which runs 24/7 and which connects to a socket based news feed and fetches some data whenever the server sends it. The problem is that if i disconnect the client machine from the network, the program is not making any difference between receiving nothing cause server

[PHP] Date question

2003-05-29 Thread Shaun
Hi, For a given date, how can i find out the date of the day of the begining of that week? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP OOP x Procedural Performance

2003-05-29 Thread Jay Blanchard
[snip] It is a known issue that function calls are expensive for the processor. The OOP let us better organize the code but, thinking in function (or method) calls it may be more expensive than in the procedural form. My question is, has anyone made any tests regarding the performance of OO

[PHP] RE: creating thumbnails from .BMP files

2003-05-29 Thread Robert
John W. Holmes wrote: >> How do you create thumbnails from .BMP files? Is there a function > like >> there is for JPG (ImageJPEG)? > > Probably need to use an external program that understands that format > and an exec() call. > > ---John W. Holmes... > > Amazon Wishlist: http://www.amazon.com

RE: [PHP] How can I change the timezone?

2003-05-29 Thread Jay Blanchard
[snip] > [snip] > I am in Hong Kong and the server is in US. > I can't change the server setting. > [/snip] > > How about getting the server time and then adding or subtracting from > that to get the appropriate time? > > http://us2.php.net/manual/en/function.time.php That doesn't really accoun

[PHP] Re: Matching titles from distinct data sources

2003-05-29 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello > > Does anyone know of an algorithm or program for matching pieces of text > (such as film titles) that are conceptually the same, but which may be > written/spelled differently? > > eg. I need something which will identify a (li

Re: [PHP] vpopmail what is it???

2003-05-29 Thread Haseeb Iqbal
Actually i know what vpopmail is but to be abs clear i want to read more. i have a few questions in my mind. that i want to be clear about.i want to make a script that would create new users on a qmail server.i want to be sure this is what i want. now any suggestions welcome Creativity is inventi

Re: [PHP] creating thumbnails from .BMP files

2003-05-29 Thread Marek Kilimajer
image_bmp class at www.phpclasses.org can create bmp files, you might be able to write a class that will read it and return raw data. Artoo Smith wrote: Hey, How do you create thumbnails from .BMP files? Is there a function like there is for JPG (ImageJPEG)? Thanks -- PHP General Maili

Re: [PHP] greater than question

2003-05-29 Thread Marek Kilimajer
Create a function, then func_get_args will return you an array. Then continue as others sugested. You can call the function as functionName($a, $b, ) - any number of parameters you need Steve Buehler wrote: Hopefully someone has done this and has an easy answer. I know that I can do what I

Re: [PHP] Triggers & events with objects

2003-05-29 Thread Marek Kilimajer
You need to modify Testclass::someMethod to call the event handler directly Axel Tietje wrote: Hi, I would like to do the following When an objects method is called like this: $test= new Testclass; $test->someMethod ($someArgument); I'd like to have an event handler outside Testclass to log th

Re: [PHP] replacing register_shutdown_function

2003-05-29 Thread Marek Kilimajer
Put an & in: exec("/dealnews/myscript.php &"); The script will run in background. Brian Moon wrote: Hi all, Ever since register_shutdown_function was changed to no longer happen after the connection was closed, several things on our site have started to suck. Not the main, public site, but our

Re: [PHP] Help with eval()

2003-05-29 Thread Marek Kilimajer
for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) zavaboy wrote: Hey, I'm having problems with the eval() function... if ($Sort == "Up") { $do="<="; } else { $do=">="; } for ($i = $aNum; eval ('$i ' . $do . ' $bNum'); ) //So.. the above line acts like: //for ($i = $aNum; $i <= $bNum; )

Re: [PHP] run extension library as different uid/gid?

2003-05-29 Thread Marek Kilimajer
You can make a wraper setuid script and execute it, or chown /dev/your_storage Joe Wong wrote: Hi, I have created an extension library for my own use. This library needs to access a storage area needs specific user ID to operate. If I start Apache as normal ( using User Apache, Group Apache in h

RE: [PHP] Will Pay for Netbilling PHP Script

2003-05-29 Thread Ralph
Yeah. But no luck. Only in PERL. I'm pushed for time and I'm still working on other modules that I need for my client. Anybody interested in helping me out? I will gladly pay for help. Just give me quote. Here is Netbilling's API manual for anybody that is interested: http://netbilling.com/dire

Re: [PHP] caller function identification

2003-05-29 Thread Marek Kilimajer
Nope Christopher D. Jarecki wrote: Hi, Is there a way to find out which function (or which script) called the function that is currently being executed? I mean something like perl's caller_function(). Regards, -- Christopher D. Jarecki Senior Application Developer Implix.com -- PHP Gene

Re: [PHP] daily availability chart array

2003-05-29 Thread Marek Kilimajer
for($day=0; $day<7;$day++) { // $day[0] is mon; $day[1] is tues; ... foreach($avail[$day] as $av) { //do your calculation here } } Jason Dulberg wrote: Thank you for the response. I am not quite sure how that works, can you please give an example? Thanks. Jason -Original Me

Re: [PHP] Netbilling PHP Script

2003-05-29 Thread Jason Wong
On Thursday 29 May 2003 17:36, Ralph wrote: > I have to setup credit card verification/processing with Netbilling.com, > does anybody know of a PHP based Netbilling gateway script or class? Have you searched google? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sy

Re: [PHP] vpopmail what is it???

2003-05-29 Thread Jason Wong
On Friday 30 May 2003 04:16, Haseeb Iqbal wrote: > can anyone direct me.i want information about vpopmail and what is does . > a tutorial or something will work thanx in advance. i searched google but > got only manual pages of php. but there isn't any info there. If you don't already know what

[PHP] Netbilling PHP Script

2003-05-29 Thread Ralph
I have to setup credit card verification/processing with Netbilling.com, does anybody know of a PHP based Netbilling gateway script or class? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Wendell Brown [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 15:02 > > On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote: > > >I would've thought that $HTTP_*_VARS will be deprecated > sometime in the > >future. It might be an idea to write your own acce

Re: [PHP] PHP redirect

2003-05-29 Thread Leif K-Brooks
Actually, the standards require an absolute URL, e.g. header("Location: http://foo.com/bar/baz/something.php";); David Grant wrote: It might also be an idea to give the filename as a path relative to the root directory, e.g. header("Location: /foo/bar/index.php"); -- The above message is enc

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: David Grant [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 12:47 > To: Leif K-Brooks > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Variables don't pass... *sniff* > > > Leif K-Brooks wrote: > > > To maintain absolute compatibility, just use $

RE: [PHP] id & name when identifying html elements

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Roland Tarver [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 10:07 > > I've got a question about about naming html components (text fields, > select boxes etc) when submitting a form to a php page. > First I tried identifying an element using the "id" attribute

Re: [PHP] Decrypting data with GnuPG

2003-05-29 Thread Evan Nemerson
GnuPG doesn't use stdin to read the password, which is where you're sending it. It uses a more low-level interface (check out the below link if you're interested) where they interact directly with the virtual console. Try piping to your command- that won't work either echo $PASSPHRASE | \ /usr/bi

[PHP] caller function identification

2003-05-29 Thread Christopher D. Jarecki
Hi, Is there a way to find out which function (or which script) called the function that is currently being executed? I mean something like perl's caller_function(). Regards, -- Christopher D. Jarecki Senior Application Developer Implix.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP redirect

2003-05-29 Thread David Grant
Awlad Hussain wrote: Try this header("LOCATION: page2go.php"); I'm not normally so pedantic, however, the HTTP specification defines the above header as "Location", not "LOCATION". It might also be an idea to give the filename as a path relative to the root directory, e.g. header("Location: /fo

RE: [PHP] PHP redirect

2003-05-29 Thread Ralph
Use the header function: http://www.php.net/manual/en/function.header.php -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 1:46 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP redirect Hi guys what is the function in PHP for directing a php pag

Re: [PHP] PHP redirect

2003-05-29 Thread Awlad Hussain
Try this header("LOCATION: page2go.php"); - Original Message - From: "Angelo Zanetti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 29, 2003 9:46 AM Subject: [PHP] PHP redirect Hi guys what is the function in PHP for directing a php page?? thanx in advance Angelo -

[PHP] PHP redirect

2003-05-29 Thread Angelo Zanetti
Hi guys what is the function in PHP for directing a php page?? thanx in advance Angelo

Re: [PHP] vpopmail what is it???

2003-05-29 Thread David Grant
Haseeb Iqbal wrote: hi, can anyone direct me.i want information about vpopmail and what is does . a tutorial or something will work thanx in advance. i searched google but got only manual pages of php. but there isn't any info there. Try this: http://www.pscs.co.uk/products/vpop3/index.html -

[PHP] vpopmail what is it???

2003-05-29 Thread Haseeb Iqbal
hi, can anyone direct me.i want information about vpopmail and what is does . a tutorial or something will work thanx in advance. i searched google but got only manual pages of php. but there isn't any info there. Creativity is inventing, experimenting, growing, taking risks, breaking rules, ma

Re: [PHP] Parsing html to extract images

2003-05-29 Thread David Grant
Hidrahyl wrote: Hi, anyone can help me parsing html files in order to get all the images containing a file? Thanks, Simon. 1. Use fopen() to grab the HTML file you're after. 2. Read in each line to an array using file(); 3. Loop through the array, and apply the following reg. exp.: preg_match("/\

[PHP] Re: Biding Arrays from Oracle Stored Procedure to PHP Variables

2003-05-29 Thread Lang Sharpe
Have a look at this paper, in particular the collections section at the end http://www.phpconference.de/2001/slides/arntzen_ocipaper.txt I've never used them myself, because they look a bit dodgy. But it may be the only way to do what you're trying to do. Lang Gregory Watson wrote: > Hi guys.

[PHP] run extension library as different uid/gid?

2003-05-29 Thread Joe Wong
Hi, I have created an extension library for my own use. This library needs to access a storage area needs specific user ID to operate. If I start Apache as normal ( using User Apache, Group Apache in httpd.conf ), my PHP script fails to run. I try to setuid / setguid on the PHP script ( this script

[PHP] Re: sending email

2003-05-29 Thread Manuel Lemos
Hello, On 05/29/2003 12:32 AM, Aris Santillan wrote: i want to send html format type of emails using mail( ); function? is there a how to where can i start learning that type of encoding You may want to try this class that is able to compose and send HTML messages properly: http://www.phpclasses

Re: [PHP] Search Engines and Last-Modified Header

2003-05-29 Thread Manuel Lemos
Hello, On 05/28/2003 11:48 PM, Olinux wrote: To make sure that google re-indexes every month. I have thought of sending a last modified header using year/month/day of article and a random hour/minute/second. but if this random hour/month/second is "earlier" than the one already indexed it does not

Re: [PHP] sending email

2003-05-29 Thread Dan Anderson
HTML E-mail is just HTML code embedded in the e-mail. Pick up a book on HTML code. Even easier, make a web page using your favorite editor (note ms word and open office allow you to save as web page) and cut and paste the code. I think there /might/ be an extra line or two you might have to add

Re: [PHP] sending email

2003-05-29 Thread daniel
add this in the header section Content-Type: text/html; charset=\"iso-8859-1 also for html body use this $message = chunk_split(base64_encode($message)); > hi > > i want to send html format type of emails > using mail( ); function? > > is there a how to where can i start learning > that type of

Re: [PHP] My Sincere Request!![Scanned]

2003-05-29 Thread Joel Rees
> 1. This is the an example of the Nigeria 419 scam. I have no idea how it got > the 419 in the name. http://www.google.com/search?hl=en&ie=ISO-8859-1&q=nigeria+419 in particular, http://home.rica.net/alphae/419coal/ -- Joel Rees <[EMAIL PROTECTED]> -- PHP General Mailing List

[PHP] sending email

2003-05-29 Thread Aris Santillan
hi i want to send html format type of emails using mail( ); function? is there a how to where can i start learning that type of encoding thanks

Re: [PHP] Search Engines and Last-Modified Header (was: Variables don't pass...)

2003-05-29 Thread olinux
I think this is very important for dynamic site developers to understand. I'm very interested in learning more about this and I think we could all benefit from anyone with solid search engine experience. I run a site with about 18,000 news articles. They are stored in database and dynamically gene

RE: [PHP] creating thumbnails from .BMP files

2003-05-29 Thread John W. Holmes
> How do you create thumbnails from .BMP files? Is there a function like > there is for JPG (ImageJPEG)? Probably need to use an external program that understands that format and an exec() call. ---John W. Holmes... Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E PHP Architect

RE: [PHP] Notice: Undefined variable: PHP_SELF

2003-05-29 Thread John W. Holmes
> I am having problem with a PHP page on our web site. > I've installed the latest version of PHP on a Windows 2000 server. > > The error we're getting is: > Notice: Undefined variable: PHP_SELF > > Where do I start to fix this problem? Read the release notes. Register_globals is OFF. Use $_SERV

Re: [PHP] PHP OOP x Procedural Performance

2003-05-29 Thread Ray Hunter
yes, the bottom line is code reuse...that is why there is oop. So that a developer can always reuse code saving money on development and thus if speed is an issue then adding more hardware. -- Ray On Wed, 2003-05-28 at 20:05, William N. Zanatta wrote: > It is a known issue that function calls

[PHP] creating thumbnails from .BMP files

2003-05-29 Thread Artoo Smith
Hey, How do you create thumbnails from .BMP files? Is there a function like there is for JPG (ImageJPEG)? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Notice: Undefined variable: PHP_SELF

2003-05-29 Thread Dandie
Hi, I am having problem with a PHP page on our web site. I've installed the latest version of PHP on a Windows 2000 server. The error we're getting is: Notice: Undefined variable: PHP_SELF Where do I start to fix this problem? Thanks -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Session Question

2003-05-29 Thread Justin French
Register globals essentially takes the value of $_SESSION['foo'] and creates $foo. It does the same thing for GET, POST, COOKIES, etc. The problem here is that you have no way of telling if $foo was a POST variable, GET, SESSION, or whatever. So, I can choose to append ?admin=1 to one of your UR

[PHP] PHP OOP x Procedural Performance

2003-05-29 Thread William N. Zanatta
It is a known issue that function calls are expensive for the processor. The OOP let us better organize the code but, thinking in function (or method) calls it may be more expensive than in the procedural form. My question is, has anyone made any tests regarding the performance of OOP vers

Re: [PHP] How can I change the timezone?

2003-05-29 Thread Justin French
on 28/05/03 11:49 PM, Jay Blanchard ([EMAIL PROTECTED]) wrote: > [snip] > I am in Hong Kong and the server is in US. > I can't change the server setting. > [/snip] > > How about getting the server time and then adding or subtracting from > that to get the appropriate time? > > http://us2.php.net

Re: [PHP] Create Links on the fly?

2003-05-29 Thread Justin French
if you wish to have this work purely with PHP, and not rely on client-side stuff like javascript, then your only option (that i can see) is to create a middle man script which translates their wishes. startpage.html --- ... ... --- redirect.php --- http://mysite.com/dir/{$_POST['yourNumber'

Re: [PHP] detect proxy

2003-05-29 Thread sonjaya
dear sir sorry if my english bad, my question is , any body now script to detect ip(internet protocol) to web us . exsample : your ip is 192.168.1.1 , i get this $ip(REMOTE_ADDRES) , but this script just for main ip i want client ip because i use proxy , how we can detect, i want like this

[PHP] Help with eval()

2003-05-29 Thread zavaboy
Hey, I'm having problems with the eval() function... if ($Sort == "Up") { $do="<="; } else { $do=">="; } for ($i = $aNum; eval ('$i ' . $do . ' $bNum'); ) //So.. the above line acts like: //for ($i = $aNum; $i <= $bNum; ) //...or... //for ($i = $aNum; $i <= $bNum; ) { i if ($Sort == "Up") { $i++;

Re: [PHP] session_registered issue

2003-05-29 Thread César Aracena
Hi Jim, To solve the problem about caching I use two methods: In design stage, I simply turn off the "Automatic Refresh Page" in my Explorer options and, in working stage I use once a jscript to prevent the hole site from caching and the visitor´s brwsers think that it´s allways refreshing... use

[PHP] Parsing html to extract images

2003-05-29 Thread Hidrahyl
Hi, anyone can help me parsing html files in order to get all the images containing a file? Thanks, Simon. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Biding Arrays from Oracle Stored Procedure to PHP Variables

2003-05-29 Thread Gregory Watson
Hi guys... I'm very new to using Oracle and stored procedures. I'm using a stored procedure to return 12 variables, 8 of which are arrays. $EventID = 41403; $BufferSize = 3000; $connection_oracle = OCILogon("","**", "**"); $statement_oracle = OCIParse($connection_oracle

[PHP] Decrypting data with GnuPG

2003-05-29 Thread Pierre-Luc Soucy
Hi, I would like to decrypt data encoded with GnuPG without including the private key passphrase in the command to prevent people from viewing it with "ps". Here is the code I wrote: $command = "/usr/bin/gpg --homedir=/path/to/.gnupg --no-secmem-warning --always-trust --yes --output /pat

[PHP] re: quantifiers not working in ereg.*

2003-05-29 Thread matze
> On Sunday 25 May 2003 20:42, matze wrote: > > on a redhat 8.0 box with php 4.1.2 rpm (from rh v7.2) installed > > the ereg.* functions don't work as i expect. in some cases - > > especially when "\r\n" sequences are involved - the ereg functions > > don't match a string, although they should. i t

[PHP] replacing register_shutdown_function

2003-05-29 Thread Brian Moon
Hi all, Ever since register_shutdown_function was changed to no longer happen after the connection was closed, several things on our site have started to suck. Not the main, public site, but our internal pages where cache is regenerated and such. I have tried using the pcntl functions in an exec'

[PHP] Does array_rand need to be seeded?

2003-05-29 Thread Matt Grimm
The manual entry for array_rand states: "Don't forget to call srand() to seed the random number generator." However, the srand page states this: "Note: Since PHP 4.2.0 it's no longer necessary to seed the random number generator before using it." Is the 'random number generator' identical for

Re: [PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
> I can see what headers are sent. What is the url of the image? I checked using curl -I and found that the correct headers are being sent. I found out it was because I didn't have a certain library I needed included within the graph script. Thanks for your help anyway, Cheers, Jord -- Jordan

Re: [PHP] Appending to the REQUEST_URI

2003-05-29 Thread Matt Grimm
Yes, thanks John, with a little tweaking this does just what I needed. I keep forgetting to use that compact conditional syntax, it's sexy. I had to use PHP_SELF instead of REQUEST_URI first, since the latter contains the path, the script, and the query string. $url = $_SERVER['PHP_SELF'] . '?'

RE: [PHP] Variables don't pass... *sniff*

2003-05-29 Thread Evan Nemerson
Deprecated means that it has fallen out of favor, and is _in_the_process_of_being_phased_out_ You should not rely on this code in new applications. Go look it up in a dictionary. If you have to be backward compatible with < 4.1.0 (which was released on 10-Dec-2001!) I suggest something like this:

Re: [PHP] Jpgraph troubles

2003-05-29 Thread John S. Huggins
On Wed, 28 May 2003, Jordan Elver wrote: >-Hi, >-I've been creating some graphs using jpgraph and they work really well when I >-view them directly i.e. directly through the script. My problem comes as soon >-as I try to display them using the tag within another page. When I do: >- >- >- >-I ca

Re: [PHP] Appending to the REQUEST_URI

2003-05-29 Thread CPT John W. Holmes
Replying to myself... :) > You have to check for it, regardless. See if this works for you. > > $url = $_SERVER['REQUEST_URI'] . '?' . ((isset($_SERVER['QUERY_STRING'])) ? > $_SERVER['QUERY_STRING'] . '&' : '' ) . 'newVar=1'; > > The middle part basically sees if the QUERY_STRING is empty. If it i

[PHP] Netbilling Connect Script or Class...

2003-05-29 Thread Ralph
I have to setup credit card verification/processing with Netbilling.com, does anybody know of a PHP based Netbilling connect script or class? Your help is appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Fusebox - Circuit within another Circuit

2003-05-29 Thread Christopher Ditty
We are using PHP Fusebox to develop one of our applications where I work. I have a descent-grasp on the whole fusebox concept, but I am having problems getting my head around how sub-circuits work. Can anyone offer any advice? When I go to the main fuseaction, all works fine. When I try to go to

Re: [PHP] Appending to the REQUEST_URI

2003-05-29 Thread CPT John W. Holmes
You have to check for it, regardless. See if this works for you. $url = $_SERVER['REQUEST_URI'] . '?' . ((isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] . '&' : '' ) . 'newVar=1'; The middle part basically sees if the QUERY_STRING is empty. If it is, it includes a question mark other

Re: [PHP] Checking if an array key exists

2003-05-29 Thread CPT John W. Holmes
> I have a multi-dimensional array. Looks like this: > > $work_order_hdr = array ('whdr_id'=>'record_no', > 'whdr_order_no'=>'request_no', > 'whdr_site_id'=>'site_id', > 'whdr_user_id'=>'user_id', >

[PHP] Checking if an array key exists

2003-05-29 Thread James Kaufman
I have a multi-dimensional array. Looks like this: $work_order_hdr = array ('whdr_id'=>'record_no', 'whdr_order_no'=>'request_no', 'whdr_site_id'=>'site_id', 'whdr_user_id'=>'user_id', 'whdr_locatio

[PHP] Appending to the REQUEST_URI

2003-05-29 Thread Matt Grimm
Let's say I have a table with links in the headers for sorting each column. I want to carry the sort variable along in the $_GET array, and I need to be able to pass other variables to this same page, also using the GET method. My trouble is when I need to append a new variable to the REQUEST_

[PHP] Re: Help with fread

2003-05-29 Thread Catalin Trifu
Hi, As the PHP manual states you CAN NOT use filesystem functions, such as filesize, filectime, etc... on remote files, such as those opened opened through HTTP. You can however rely on the FTP functions, if you can use FTP to open the files. Cheers, Catalin "Erich Kolb" <[EMAIL

[PHP] Help with fread

2003-05-29 Thread Erich Kolb
How can I get statistics from a remote file? I am trying to get info on: FileSize Date Created Date Modified when: fopen ("http://somedomain.com/somefile.ext";, "r") Also, I am unable to use filesize function where $fp = fopen("http://somedomain.com/somefile.ext";, "r"). Is it possible to do t

Re: [PHP] CleanUp!!

2003-05-29 Thread Matt Grimm
First, make sure to use str_replace whenever possible instead of ereg_replace. It's faster: $out_file = str_replace("http://";, "", $in_file); etc... -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext

Re: [PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
> I assume you are sending something similar to the following before the > actual pic? > > header("content-type: image/png"); Jpgraph does that for you I think. As I said before, the script works when you access it directly, but not when it's through an img tag. -- Jordan Elver There may be no '

[PHP] CleanUp!!

2003-05-29 Thread Erich Kolb
How can I clean this up? $in_file = http://somedomain.com/somefile.php; $out_file = ereg_replace("http://";, "", $in_file); $out_file = ereg_replace("/","-", $out_file); $out_file = "/www/dev/".$out_file; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] detect proxy

2003-05-29 Thread Miguel Angelo
Hi Sonjaya, Here is how i detect a proxy / user external ip and internal ip I use the global variable catched by PHP from the web server, the web server that i use is Apache i don't know about your's but it might work. There are tonns of available information here is some that i ha

[PHP] rand() function not working right

2003-05-29 Thread ldg
I'm using the latest php and the rand() function isn't working properly when giving it any min and max arguments. It does work without anything between the () but if I put a min and max, then only the min value always gets chosen. Is that a bug? Is that new? I'm not using an old php version, and

[PHP] Dealing with spam on the list - please read

2003-05-29 Thread Rasmus Lerdorf
Folks, occasionally the odd spam message is going to slip through our various safeguards and spam will go out on the PHP lists. We are working on improving things on our end to reduce the amount that slip through, but we also need your help with the following: 1. Do not respond to the list compl

Re: [PHP] Jpgraph troubles

2003-05-29 Thread Wendell Brown
On Wed, 28 May 2003 19:00:20 +0100, Jordan Elver wrote: >I can't get it to display. It just shows the broken image icon. I assume you are sending something similar to the following before the actual pic? header("content-type: image/png"); I have a script set up on my page that demonstrates usin

[PHP] PHP Rocks! ..OT..

2003-05-29 Thread Wendell Brown
I had completely forgotten how much more hassel CGI / Perl is when compared to PHP. I just got done doing a MINOR mod to a Perl script (it took me about 4 hours compared to what would have taken me about 10 minutes in PHP) and I just want to say THANK YOU to all the PHP developers! :) -- PHP G

[PHP] Jpgraph troubles

2003-05-29 Thread Jordan Elver
Hi, I've been creating some graphs using jpgraph and they work really well when I view them directly i.e. directly through the script. My problem comes as soon as I try to display them using the tag within another page. When I do: I can't get it to display. It just shows the broken image icon

[PHP] Re: Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Hi, just to let you know i've sussed it out, i didnt realise that the destination directory had to be on the system, rather than on the site thank you very much for ur help and time adnan Adnan wrote: > Hi, > > i have been having trouble working out how to upload an image, the most > progress

RE: [PHP] Session Question

2003-05-29 Thread Johnson, Kirk
> SInce register_globals() is ON on my server, I need to be able to > figure out a way to ensure session security. The single most important thing to do is initialize all your variables. The way to ensure that you have done that is to set the error reporting level to "E_ALL" (which is max). The

[PHP] Re: Create Links on the fly?

2003-05-29 Thread Bobby Patel
###HTML snippet Enter Number : ###PHP http://www.mypage.com/".$number); exit(); ?> ### NOTE: I just wrote this on the fly so there is no error checking or sytnax checking Hopefully this makes sense and doesn;t need explanations, but if so just post the list and me and I'll get back to y

Re: [PHP] My Sincere Request!![Scanned]

2003-05-29 Thread bob parker
I have three points in response to this thread. 1. This is the an example of the Nigeria 419 scam. I have no idea how it got the 419 in the name. What they want from your is you bank account details so that they can remit the money out of the country and you supposedly get to keep your share.

[PHP] Re: ANY POSTNUKER? Security problem!

2003-05-29 Thread Shawn McKenzie
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It is also a simple drop-down box setting in the admin / settings. - -Shawn "Nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i have problem with session in postnuke. > > the problem is that while i m logged in as a user, if i cl

  1   2   >