[PHP] Re: corrupt images

2003-05-30 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

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

2003-05-30 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

Re: [PHP] Netbilling PHP Script

2003-05-30 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

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

2003-05-30 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

[PHP] session_regenerate_id()

2003-05-30 Thread Dan Joseph
Hi, I know this function is new, however, does anyone have any documentation on it? There is nothing on php.net... -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] A good function

2003-05-30 Thread Daniel J. Rychlik
What is a good function for striping white space and removing \\..\.. and possible , Anything that would be considered unwanted user input??? I looked at trim() but its doesnt do all the things I need it to do. -Dan

Re: [PHP] Decrypting data with GnuPG

2003-05-30 Thread Pierre-Luc Soucy
From the GnuPG docs: --passphrase-fd n Read the passphrase from file descriptor n. If you use 0 for n, the passphrase will be read from stdin. This can only be used if only one passphrase is supplied. Don't use this option if you can avoid it. I added --passphrase-fd 0 to my command so

RE: [PHP] A good function

2003-05-30 Thread Dan Joseph
Hi, Have a look at: http://us2.php.net/manual/en/function.ereg-replace.php That might do what you want. -Dan Joseph What is a good function for striping white space and removing \\..\.. and possible , Anything that would be considered unwanted user input??? I looked

Re: [PHP] PHP and Flash

2003-05-30 Thread Sancar Saran
On Thursday 29 May 2003 14:31, César Aracena wrote: 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

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

2003-05-30 Thread Rasmus Lerdorf
If you have your date components split up already the way you do, you should be using mktime(). Next you have to determine which timezone your information is from. If you consider your month/day/year values to be GMT values, then use gmmktime() to generate your timestamp. Otherwise, make sure

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

2003-05-30 Thread Wendell Brown
On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS] wrote: Well, how about references, then? (And me, personally, I'd use isset() rather than is_array().) if (isset($_POST)): $POST = $_POST; else: $POST = $HTTP_POST_VARS; endif; I was told that PHP didn't do

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

2003-05-30 Thread Rasmus Lerdorf
On Thu, 29 May 2003, Wendell Brown wrote: On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS] wrote: Well, how about references, then? (And me, personally, I'd use isset() rather than is_array().) if (isset($_POST)): $POST = $_POST; else: $POST =

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

2003-05-30 Thread Ford, Mike [LSS]
-Original Message- From: Wendell Brown [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 15:18 On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS] wrote: Well, how about references, then? (And me, personally, I'd use isset() rather than is_array().) if

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Jason Wong
On Thursday 29 May 2003 21:49, Mike Morton wrote: 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. Because I don't like spam. Why do you bother to answer on the php list at

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

2003-05-30 Thread Wendell Brown
On Thu, 29 May 2003 07:21:01 -0700 (Pacific Standard Time), Rasmus Lerdorf wrote: It isn't a pointer. It is a reference which you should think of as a symbol table alias. A pointer, at least by my definition, is a memory address. In PHP it isn't a memory address, just another entry in the

Re: [PHP] Date question

2003-05-30 Thread Shaun
of course ;) but i couldn't find a reference to this particular problem... Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Have you checked the date functions at http://www.php.net ? -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Thursday, May

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Mike Morton
Jason, you are a sad sad man. The point I was simply trying to make was that YOU do not have to do ANYTHING. Don't search google, don't spend any time on it at all, don't even email. There are plenty of people here that are willing to help - if you are not - piss off. Not everyone has your

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Justin French
Mike, I agree that at times Jason (and plenty of others, including myself on a bad day) tend to use the search google and RTFM replies a lot, but the reality is that if people did a quick search in the manual, and a quick search on google, this list would be a lot less cluttered. It also goes a

Re: [PHP] Date question

2003-05-30 Thread Wendell Brown
On Thu, 29 May 2003 15:40:00 +0100, Shaun wrote: of course ;) but i couldn't find a reference to this particular problem... I don't think you are going to find a standard PHP function to do this. You are going to have to do something like this (I haven't tried it but I think it will do what

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
Umm, have you tested it? It didn't work for me... Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) zavaboy wrote: Hey, I'm having problems with the eval() function... if ($Sort == Up) { $do==; } else

[PHP] GD2 Bundled with PHP v 4.3.2

2003-05-30 Thread Dave O Keeffe
Hi All, I read in the ChangeLog for v4.3.2 that GD2 is bundled with this release. I downloaded and installed the Windows Installer version but my sample imagecreate code still doesn't work, it reports the error 'Call to undefined function: imagecreate()'. When I uncomment the

[PHP] easy update

2003-05-30 Thread Edward Peloke
Ok, I enroll in the school of 'If it ain't broke, don't fix it' and my version of PHP has worked just fine so I never saw a reason to update. Now, I think I will take the plunge. I can barely remember configuring apache and php originally so is there an easy route to install the latest php

RE: [PHP] Date question

2003-05-30 Thread Ford, Mike [LSS]
-Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 15:40 of course ;) but i couldn't find a reference to this particular problem... Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Have you checked the date functions at

RE: [PHP] easy update

2003-05-30 Thread Joe Stump
I prefer apt-get -u dist-upgrade ;) If you follow the static compile in the INSTALL file that comes with the PHP source you can compile it in a matter of minutes. --Joe -- Joe Stump [EMAIL PROTECTED] http://www.joestump.net Label makers are proof God wants Sys Admins to be happy.

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Mike Morton
Justin: Point well taken, and I agree for the most part. Teaching people to learn themselves is a much better solution that just giving the answer, however it CAN be done in a constructive and helpful manner, rather than a rude and abrupt one. I have not noticed your responses, so I cannot

Re: [PHP] Date question

2003-05-30 Thread Jason Wong
On Thursday 29 May 2003 22:40, Shaun wrote: of course ;) Try: $start_date_ts = time(); if ('Mon' != date('D', $start_date_ts)) { $start_date_ts = strtotime(last monday); } $start_date= strftime(%Y-%m-%d, $start_date_ts); echo $start_date; Season to taste.

[PHP] Random Blank Output wit 4.3.2

2003-05-30 Thread Andy BIERLAIR
Hi, I’ve tried php-4.3.2 with my old config (4.3.1), and I noticed that all our VirtualHosts are sometimes blank and then after a browser refresh, the content is showed. This happens approx. 1 in 10 times. You can try it with one of our vhosts: www.hot.lu and refreshing it a few times. The

RE: [PHP] GD2 Bundled with PHP v 4.3.2

2003-05-30 Thread Ford, Mike [LSS]
-Original Message- From: Dave O Keeffe [mailto:[EMAIL PROTECTED] Sent: 29 May 2003 15:28 I read in the ChangeLog for v4.3.2 that GD2 is bundled with this release. I downloaded and installed the Windows Installer version but my sample imagecreate code still doesn't work, it

[PHP] Re: PHP OOP x Procedural Performance

2003-05-30 Thread rush
William N. Zanatta [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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.

Re: [PHP] Help with eval()

2003-05-30 Thread David Grant
zavaboy wrote: Umm, have you tested it? It didn't work for me... Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) Untested: for ($i = $aNum; eval(return (\$i . $do . \$bNum););) -- David Grant Web Developer

Re: [PHP] A good function

2003-05-30 Thread Shaun
how about stripslashes(); http://www.php.net/manual/en/function.stripslashes.php HTH Shaun Dan Joseph [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Have a look at: http://us2.php.net/manual/en/function.ereg-replace.php That might do what you want. -Dan Joseph What is

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Adam Voigt
Agreed, if you don't have something usefull to say, don't say anything at all. On Thu, 2003-05-29 at 10:57, Mike Morton wrote: Justin: Point well taken, and I agree for the most part. Teaching people to learn themselves is a much better solution that just giving the answer, however it CAN

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
I get a infinite loop and parse error, unexpected $... David Grant [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] zavaboy wrote: Umm, have you tested it? It didn't work for me... Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] for ($i = $aNum;

RE: [PHP] Re: PHP OOP x Procedural Performance

2003-05-30 Thread Joe Stump
In my experience OOP isn't any faster/slower. I've used it on sites that get 30M hits a month; so if it's gonna break I'd have seen it by now. One thing I'd like to abundantly point out is that NOT EVERYTHING BELONGS IN OOP! For instance, if you're building classes that output HTML - you've

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Cal Evans
Mike, I'm glad you vented. Now let me. I say none of this in anger and quite a lot of it in amusement. Please don't take this the wrong way. (By saying that I'm insuring that you WILL take it the wrong way!) :) Why is it helpful to give a person the answer to a question that has been answered

Re: [PHP] Help with eval()

2003-05-30 Thread David Grant
zavaboy wrote: I get a infinite loop and parse error, unexpected $... Told you it was untested.. :P -- David Grant Web Developer [EMAIL PROTECTED] http://www.wiredmedia.co.uk Tel: 0117 930 4365, Fax: 0870 169 7625 Wired Media Ltd Registered Office: 43 Royal Park, Bristol, BS8 3AN Studio:

[PHP] Links in e-mail

2003-05-30 Thread christian tischler
I use mail() to send e-mail automatically. But all I can send is text. I would like to send links, but can figure out how to make them work. Thanks, Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ldap_add() troubles

2003-05-30 Thread Cecile
Hi list, i'm very newbie in PHP so sorry for this simple question but i havn't found any differences between my code and example code on a lot of website that i visited. I use PHP-4.3.1, OpenLDAP 2.1.19, BerkeleyDB-4.1.25 and Apache-2.0.45. My problem is that my variables are not taken into

RE: [PHP] Links in e-mail

2003-05-30 Thread Joe Stump
Most MUA's will convert http://* or www.* to a link. Otherwise you'll have to send MIME encoded HTML with a href=/a tags. The problem with the second solution is that not all MUA's (ie. mutt) support MIME encoded HTML messages. --Joe -- Joe Stump [EMAIL PROTECTED] http://www.joestump.net Label

Re: [PHP] Links in e-mail

2003-05-30 Thread Adam Voigt
For the third parameter of the mail command, use: Content-type:text/html\r\n I.E.: mail($to,$subject,$body,Content-type:text/html\r\n); On Thu, 2003-05-29 at 11:13, christian tischler wrote: I use mail() to send e-mail automatically. But all I can send is text. I would like to send links,

Re: [PHP] Links in e-mail

2003-05-30 Thread ruusvuu
$link = http://somedomain.com;; $msg .= $link\n; Quoting christian tischler [EMAIL PROTECTED]: I use mail() to send e-mail automatically. But all I can send is text. I would like to send links, but can figure out how to make them work. Thanks, Christian -- PHP General

[PHP] Structered or Object Oriented?

2003-05-30 Thread Jaime Diaz
I would like to know wich is the best way to program in PHP, is it OO or structured, because I red in a book that if I program in OO PHP the performance of the page is slower than programming it in structured. But if i have a big web site isn´t it better to program Object Oriented. -- PHP

[PHP] [sessions] using [sockets]. Very tough!

2003-05-30 Thread Nicholas F. Singh
Hello all you great PHPers, Who among you can solve this tricky problem? OK, a little background: my goal is to send local POST requests to some of my php pages from **within** a php program. I have already successfully done simple POST data transfers with sockets using HTTPClient.class. This

RE: [PHP] Re: PHP OOP x Procedural Performance

2003-05-30 Thread Johnson, Kirk
One thing I'd like to abundantly point out is that NOT EVERYTHING BELONGS IN OOP! For instance, if you're building classes that output HTML - you've skipped a few chapters in your OOP design books. Joe, I am curious about this opinion, could you elaborate a bit, please? I am not an OOP

Re: [PHP] Netbilling PHP Script

2003-05-30 Thread Jason Wong
On Thursday 29 May 2003 22:49, Mike Morton wrote: There are plenty of people here that are willing to help - if you are not - piss off. For the record the gentleman posted the question twice. I didn't even bother to answer the first one (and no-one else did). When he posted again he was

RE: [PHP] Re: PHP OOP x Procedural Performance

2003-05-30 Thread Joe Stump
Sure ... I'm of the belief that OOP (in PHP anyways) has great use for core libraries. Core libraries, by their nature, generally don't output HTML. It's a core libraries job to separate logic and presentation. How portable is your library that outputs HTML for a guy who wants PDF/WAP/XML output?

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

2003-05-30 Thread Gregory Watson
Thanks Lang - from the notes you sent me I'm able to bind arrays successfully using a complex select, but using the procedure still gives me an error: Warning: OCIStmtExecute: ORA-01008: not all variables bound in C:\ftp_dir\boards\winners.php on line 20 Warning: OCIFetch: ORA-24374:

[PHP] PHP.INI question.

2003-05-30 Thread Ananth Kesari
Hi, Can we use one PHP.INI directive to set the other? What I mean is like this: Let's say I have: upload_tmp_dir = sys:/php/temp in the PHP.INI file. Now I want to set the same value into the open_basedir directive like: open_basedir = .;sys:/php/temp Here, I do not want to hard code

[PHP] Getting POSTed values from dynamically named checkboxes

2003-05-30 Thread Dillon, John
My problem relates to IF statement in the following code. There are two checkboxes, named altid$thisid, so for instance they become altid36 and altid37. When the form is submitted with both checked, I can read the first altid36, but the second does not pass the IF test. Any suggestions re

Re: [PHP] Getting POSTed values from dynamically named checkboxes

2003-05-30 Thread David Grant
Dillon, John wrote: My problem relates to IF statement in the following code. There are two checkboxes, named altid$thisid, so for instance they become altid36 and altid37. When the form is submitted with both checked, I can read the first altid36, but the second does not pass the IF test. Any

Re: [PHP] Help with eval()

2003-05-30 Thread Marek Kilimajer
yes, missing semi-comma: for ($i = $aNum; eval ('return $i ' . $do . ' $bNum;'); ) the rest is up to you, I don't know what you want to do whit it Marek Kilimajer wrote: for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) zavaboy wrote: Hey, I'm having problems with the eval()

Re: [PHP] [sessions] using [sockets]. Very tough!

2003-05-30 Thread Marek Kilimajer
Nicholas F. Singh wrote: Hello all you great PHPers, Who among you can solve this tricky problem? OK, a little background: my goal is to send local POST requests to some of my php pages from **within** a php program. I have already successfully done simple POST data transfers with sockets using

RE: [PHP] Re: PHP OOP x Procedural Performance

2003-05-30 Thread Michael Sweeney
Joe, I mostly agree with your opinion. But remember that a method in an object that has output doesn't have to print the output - it can return it instead and the calling function can then either display the output or do something else with it. And if it makes sense to have a method return HTML,

[PHP] Can we use one PHP.INI directive to set the other?

2003-05-30 Thread Ananth Kesari
Hi, Can we use one PHP.INI directive to set the other? What I mean is like this: Let's say I have: upload_tmp_dir = sys:/php/temp in the PHP.INI file. Now I want to set the same value into the open_basedir directive like: open_basedir = .;sys:/php/temp Here, I do not want to hard code

Re: [PHP] [sessions] using [sockets]. Very tough!

2003-05-30 Thread N. F. Singh
Good point. However, the whole point is that I need to pass that session ID so that TST2 can access the same session info TST1 is. Know what I mean? I wonder how I can resolve this... Thanks for the reply! - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Nicholas F. Singh

[PHP] easy conversion to a date?

2003-05-30 Thread Anthony
I have a form where the user enters a date into a text input field. I need to convert this text to a date and put it in a field in a mySQL database. Is there an easy way to do this? Do I have to tear the string appart and create a date out of the parts? Someone must have a fiunction that will

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

2003-05-30 Thread Jason Wong
On Friday 30 May 2003 07:03, Haseeb Iqbal wrote: 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

Re: [PHP] easy conversion to a date?

2003-05-30 Thread Jordan S. Jones
Anthony, I believe that what you are looking for is the following: http://www.php.net/strtotime Jordan Anthony wrote: I have a form where the user enters a date into a text input field. I need to convert this text to a date and put it in a field in a mySQL database. Is there an easy way to do

Re: [PHP] [sessions] using [sockets]. Very tough!

2003-05-30 Thread Marek Kilimajer
You can do: session_start(); $session_id = session_id(); session_write_close(); Lock has been released, now you are free to post $session_id to the other script N. F. Singh wrote: Good point. However, the whole point is that I need to pass that session ID so that TST2 can access the same

Re: [PHP] easy conversion to a date?

2003-05-30 Thread Michael Sweeney
Look at http://www.php.net/strtotime ..micahel.. On Thu, 2003-05-29 at 09:21, Anthony wrote: I have a form where the user enters a date into a text input field. I need to convert this text to a date and put it in a field in a mySQL database. Is there an easy way to do this? Do I have to

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
Ok, it works now! Thanks! Go visit what I'm working on at: http://zavaboy.jimbug.org/phptest/blog.php I'm working on a blog, mainly for myself... If you go there, tell me if the yellow days are clickable. Also tell me if you see red dates on the blog. I should be the only one to see those things

Re: [PHP] [sessions] using [sockets]. Very tough!

2003-05-30 Thread N. F. Singh
Fantastic! I was totally unaware of this function. Thanks very much! If any of you guys found this helpfull, be sure to call session_start() again if you're using --enable-trans-sid. Otherwise, on your subsequent call to another page needing a session state, the SID won't be propogated (at least

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

2003-05-30 Thread Carl Furst
Yes, no problem! Glad it worked out. you may wish to actually study the perlre man page on perl.com. This goes into the most details and talks about how PERL actually EXTENDS shell regular expressions significantly and excellent resource that I have used many many times. I figure since PHP

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

2003-05-30 Thread CPT John W. Holmes
Yes, no problem! Glad it worked out. you may wish to actually study the perlre man page on perl.com. This goes into the most details and talks about how PERL actually EXTENDS shell regular expressions significantly and excellent resource that I have used many many times. I figure since PHP

Re: [PHP] PHP OOP x Procedural Performance

2003-05-30 Thread Ernest E Vogelsinger
At 04:05 29.05.2003, William N. Zanatta said: [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

Re: [PHP] easy conversion to a date?

2003-05-30 Thread Anthony
exactly what I'm looking for. Thanks! - Anthony Jordan S. Jones [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anthony, I believe that what you are looking for is the following: http://www.php.net/strtotime Jordan Anthony wrote: I have a form where the user enters a date

Re: [PHP] Re: PHP OOP x Procedural Performance

2003-05-30 Thread rush
Joe Stump [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sure ... I'm of the belief that OOP (in PHP anyways) has great use for core libraries. Core libraries, by their nature, generally don't output HTML. It's a core libraries job to separate logic and presentation. How portable

[PHP] Re: Links in e-mail

2003-05-30 Thread Manuel Lemos
Hello, On 05/29/2003 12:13 PM, Christian Tischler wrote: I use mail() to send e-mail automatically. But all I can send is text. I would like to send links, but can figure out how to make them work. In most mail programs, if you start address in text messages with http:// or mailto: for

[PHP] imagecreatefromjpeg()

2003-05-30 Thread Edward Peloke
ok, I am having an off day, I admit...I got this script off codewalkers this morning (cheating, I know) ?php //phpinfo(); function thumbnail($i,$nw,$p,$nn) { $img=imagecreatefromjpeg($i); $ow=imagesx($img); $oh=imagesy($img); $scale=$nw/$ow; $nh=ceil($oh*$scale);

[PHP] opendir(), readdir() question..

2003-05-30 Thread ef
Hi all, How can i do for the moment i open and list all file there, display in the browser the order of this files by name ?. I have this code: ?php $handle=opendir('.'); while ($file = readdir($handle)) { if ($file != . $file != ..) { echo $file\n; } } closedir($handle); ? And

Re: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 01:55 PM, Edward Peloke wrote: Isn't php4.3.2 compiled with the gd library Not necessarily. Run a phpinfo() and look in the configuration for --with-gd. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508

Re: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 01:55 PM, Edward Peloke wrote: I now have php 4.3.2 I'm sorry, I read the version wrong. Feel free to ignore me. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax)

RE: [PHP] Re: PHP OOP x Procedural Performance

2003-05-30 Thread Dan Joseph
Hi, From my personal recent experience, I can tell you that processing a lot of echo's thru classes is a heck of a lot slower than just doing it the normal way. Although I wouldn't have done this particular project any other way, I do with that I could get it to display faster. Its not

[PHP] Opening a Dynamic Pop Up Window

2003-05-30 Thread Jeffrey L. Fitzgerald
Help! :-) Have a need for a pop up window to show images when the thumbnail is clicked. But the script I found only shows the image and no background, etc. I want to be able to have the pop up open and then send it a php created dynamic page with the proper html and image. In perl I know

RE: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Edward Peloke
would this still be in phpinfo? I am running apache on windows and all I did was move unzip the binaries to my php folder, then move the dll into my windows system directory...phpinfo now displays version 4.3.2but maybe I need to do more...I was using 4.2.x before I upgraded. -Original

[PHP] \n outputs \r\n ??

2003-05-30 Thread Michael Isaacs
Still new to PHP - any assistance would be very much appreciated... I am using a php script to send info to a local file for mail filtering. Whe the php script sends the following: fputs($nf, MAILDIR=$MAILDIR # Default mail directory\n); the output actually has a chr 13, 10 ProcMail interprest

[PHP] Best Approach for defining User Access Levels

2003-05-30 Thread Monty
Hi. I've set up a membership site that has different levels of users. Each member's DB record has a user_status field that has a number from 1-9, 9 being the highest (Admin) level of access. This has worked okay, but, I'm finding this system of granting access too limiting, and need finer control

RE: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Edward Peloke
Nevermind, I got it working with a few ini changes... Thanks, Eddie -Original Message- From: Steve Keller [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 2:24 PM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] imagecreatefromjpeg() At 5/29/2003 01:55 PM, Edward

[PHP] Re: opendir(), readdir() question..

2003-05-30 Thread Catalin Trifu
Hi, You could put them into an array and sort the array. cheers, Catalin Ef [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, How can i do for the moment i open and list all file there, display in the browser the order of this files by name ?. I have this code:

[PHP] Re: \n outputs \r\n ??

2003-05-30 Thread Catalin Trifu
Hi, If indeed \n puts CRLF pairs, which i doubt, you can use the hex code for LF which is 0x0A istead. Cheers, Catalin Michael Isaacs [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Still new to PHP - any assistance would be very much appreciated... I am using a php

[PHP] Re: Can we use one PHP.INI directive to set the other?

2003-05-30 Thread Catalin Trifu
Hi, Simply put: it doesn't work; you have to put it by hand there, or use the ini_set function in all PHP scripts you need. Cheers, Catalin Ananth Kesari [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Can we use one PHP.INI directive to set the other? What I

RE: [PHP] imagecreatefromjpeg()

2003-05-30 Thread Steve Keller
At 5/29/2003 02:42 PM, Edward Peloke wrote: Nevermind, I got it working with a few ini changes... All rightee. Glad I could help. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax)

[PHP] Ebay Cookie? Login Help w/ Script

2003-05-30 Thread sevenfiftyflat
Hello All! I hope someone can give me some good advice, I'm trying to write a PHP script to make it easy for me to do my ebay auctions, and I'm having problems dealing with the Cookies at Signin. I _BELIEVE_ ( but I'm not sure ) that the problem is all about the cookies. I forget what site I

[PHP] Re: Opening a Dynamic Pop Up Window

2003-05-30 Thread Monty
This should be fairly easy. It sounds like the script you are using is opening only the image in a new window, and not a page that loads the image in a new window. Just add some Javascript to the links around your thumbnails, like this: a

[PHP] request

2003-05-30 Thread Marius
? $random = gmp_random(10); echo $random; ? how to do that it echoes a random number and not a Resource id #1, -- Marius [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] request

2003-05-30 Thread Weston Houghton
I would imagine that you have to add: $random = gmp_strval($random); In between the two lines to convert the resource to a string value. Wes On Thursday, May 29, 2003, at 04:24 PM, Marius wrote: ? $random = gmp_random(10); echo $random; ? how to do that it echoes a random number and not a

[PHP] sound

2003-05-30 Thread Bobby
Does anybody know of a way under php to add a background sound to a webpage...i have sound on my page when it's local but as soon as I copy it to the server, nothing :( thanks -bobby Bobby Brooks [EMAIL PROTECTED] http://bobby-brooks.com Public Key = bobby-brooks.com/pubring.pkr Simulated

Re: [PHP] sound

2003-05-30 Thread Jordan S. Jones
Have you copied the sound file to your server as well? Jordan Bobby wrote: Does anybody know of a way under php to add a background sound to a webpage...i have sound on my page when it's local but as soon as I copy it to the server, nothing :( thanks -bobby Bobby Brooks [EMAIL PROTECTED]

RE: [PHP] sound

2003-05-30 Thread Julien Wadin
Php is on the server, not on the local client You can make it with Flash -Message d'origine- De : Bobby [mailto:[EMAIL PROTECTED] Envoyé : jeudi 29 mai 2003 21:39 À : [EMAIL PROTECTED] Objet : [PHP] sound Does anybody know of a way under php to add a background sound to a webpage...i

RE: [PHP] sound

2003-05-30 Thread Bobby
I know that...i'm just curious if somebody knows of a bit of php code outside of the usual html embed src and background tags for sound on a webpage...and I'm trying to avoid having to add flash unless I have to...but yes that is an option Thanks -bobby -Original Message- From: Julien

Re: [PHP] Structered or Object Oriented?

2003-05-30 Thread Rey Segundo Guerrero Proenza
Hi: On Thu, 29 May 2003, Jaime Diaz wrote: I would like to know wich is the best way to program in PHP, is it OO or structured, because I red in a book that if I program in OO PHP the performance of the page is slower than programming it in structured. But if i have a big web site isn´t it

RE: [PHP] sound

2003-05-30 Thread Brian S. Drexler
Negative. Sounds are client side, PHP is server side. -Original Message- From: Bobby [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 3:45 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] sound I know that...i'm just curious if somebody knows of a bit of php code

RE: [PHP] sound

2003-05-30 Thread Alex Earl
I'm guessing perhaps you didn't upload the sound to the server when you uploaded the webpage? Slide -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Decrypting data with GnuPG

2003-05-30 Thread Evan Nemerson
Are you appending a newline to your passphrase? $passphrase = my gnupg passphrase\n; On Thursday 29 May 2003 06:56 am, you wrote: From the GnuPG docs: --passphrase-fd n Read the passphrase from file descriptor n. If you use 0 for n, the passphrase will be read from stdin. This can

Re: [PHP] request

2003-05-30 Thread Evan Nemerson
?php echo $random = gmp_intval(gmp_random(10)); ? On Thursday 29 May 2003 01:24 pm, Marius wrote: ? $random = gmp_random(10); echo $random; ? how to do that it echoes a random number and not a Resource id #1, -- Happy shall he be, that taketh and dasheth thy little ones against the

Re: [PHP] Decrypting data with GnuPG

2003-05-30 Thread Pierre-Luc Soucy
I just tried, but that didn't correct the problem - the output.txt file is still not generated: ? $command = /usr/bin/gpg --homedir=/path/to/homedir/.gnupg --no-secmem-warning --passphrase-fd 0 --always-trust --yes --output /path/to/homedir/.gpgkeys/temp/output.txt --decrypt

[PHP] e-mailing with attachements

2003-05-30 Thread Artoo Smith
How do you send attachments when sending e-mail uisng the mail() command? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-05-30 Thread George Whiffen
Daniel, Switch register_globals back on, and everything works as it always did. So do it! All this fuss about register_globals being insecure is a complete load of rubbish. This issue really bores me, but it seems programmers are wasting a lot of time on it, so I guess I'd better run through

Re: [PHP] e-mailing with attachements

2003-05-30 Thread Ernest E Vogelsinger
At 23:20 29.05.2003, Artoo Smith said: [snip] How do you send attachments when sending e-mail uisng the mail() command? [snip] If you want to use the builtin mail() function you gotta construct the complete MIME

[PHP] Variables not being past

2003-05-30 Thread The Doctor
Questions, I have a cusotmer using a basic username and password verifier on a php Web Page. This was working and suddenly with I redefined the php environment, the php variables are not getting passed on. why? -- Member - Liberal International On 11 Sept 2001 the WORLD was violated. This

  1   2   >