[PHP] Plotting Data Graphics

2002-12-23 Thread Alexandre Soares
Hi All, Where I can get more information about a free library to plot 2d and 3d data information, Thanks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.427 / Virus Database: 240 - Release Date: 12/6/2002 -- PHP

[PHP] ¡¾help¡¿how can I put the pull down menu in a frame and display.....

2002-12-23 Thread dreamyman
1.I want to put my menu in a top frame and when I select a Item ,it can display it in the frame below. 2.my web has 2 frame ,lefe and right. but the right has a menu ,so I want to change left frame when select different menu of left frame. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Creating Extensions DLL with Delphi

2002-12-23 Thread Andreas Steibl
Don't know if this is the right place to ask this. I need to write a little extensions DLL in Delphi for PHP where can i find inforamtion for this ? thanxs in advance snoopy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Chris Wesley
On Mon, 23 Dec 2002, Luke Sneeringer wrote: However, then in the script I have a require tag (essentially like require('http://www.mydomain.com/common.php')) line. I call this line, and within that file (same domain) the $_COOKIE[] array as well as variables such as $cookiename are all blank.

Re: [PHP] Plotting Data Graphics

2002-12-23 Thread Chris Wesley
On Mon, 23 Dec 2002, Alexandre Soares wrote: Where I can get more information about a free library to plot 2d and 3d data information, Check out phpclasses.org. A quick search for graph returned 10 classes. Another 3 for plot. One may work out for you, or lead to something else more helpful.

Re: [PHP] ¡¾help¡¿how can I put the pull down menu in a frame and display.....

2002-12-23 Thread Chris Wesley
On Wed, 18 Dec 2002, dreamyman wrote: 1.I want to put my menu in a top frame and when I select a Item ,it can display it in the frame below. 2.my web has 2 frame ,lefe and right. but the right has a menu ,so I want to change left frame when select different menu of left frame. HTML

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Luke Sneeringer
That doesn't seem to work. This might be because my require tags also send variables (e.g. common.php?variable=1)--would this make a call to a non-PHP extention file fail? What happens is that the calls seem to produce no output (but they don't fail). In other words, require() returns true,

Re: [PHP] How to generate thumbnail ?

2002-12-23 Thread Gil Disatnik
Use convert (a part of ImageMagic), it's almost a standard on any unix machine and if not you can always compile it even as a user on a shared server. At 03:38 AM 12/23/2002 +0800, j wrote: Hi all , i want to generate the thumbnail of an image but I want my php to be portable. So how can I

[PHP] Error loading PHP module in Apache 2

2002-12-23 Thread Andrew Schaefer
I have compiled and installed both the newest versions of Apache and PHP with support for modules so I can use PHP with Apache. When I try to start the Apache server I get an error which reads. Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf: Cannot load

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Chris Wesley
On Mon, 23 Dec 2002, Luke Sneeringer wrote: That doesn't seem to work. This might be because my require tags also send variables (e.g. common.php?variable=1)--would this make a call to a non-PHP extention file fail? You've already demonstrated that you know included code inherits the parent's

Re: [PHP] Is __FILE__ still current or is there something newer?

2002-12-23 Thread Rick Widmer
At 03:05 PM 12/22/02 +, z z wrote: __FILE__ is useful to know the current script's path __FILE__ is a 'constant' defined by the Zend Engine that tells you the name of the current file. If you are in an Include the name of the included file is returned, if you are in the main file its

Re: [PHP] Plotting Data Graphics

2002-12-23 Thread Rick Widmer
At 03:06 AM 12/23/02 -0200, Alexandre Soares wrote: Hi All, Where I can get more information about a free library to plot 2d and 3d data information, http://www.aditus.nu/jpgraph/ Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] preg_replace question

2002-12-23 Thread electroteque
yet another regex question how could i hange the value within the quotes with preg_replace php_value upload_max_filesize 5M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Preperation for News CMS?

2002-12-23 Thread Steve Jackson
Hi all, I am about to write a CMS for a news section which I'll also adjust so that I can use for pages across the entire site. People should be allowed to edit/add/delete/archive/preview and upload pictures to a maximum of say five. My 1st question is does anyone know of some Open Source

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Jason Wong
On Monday 23 December 2002 15:19, Luke Sneeringer wrote: I have a question regarding the use of the $_COOKIE autoglobal and include() or require() tags. I have a script (index.php) which gets cookie variables. This works fine, and the cookies are accessable through both $_COOKIE[cookiename]

Re: [PHP] Plotting Data Graphics

2002-12-23 Thread Jason Wong
On Monday 23 December 2002 13:06, Alexandre Soares wrote: Hi All, Where I can get more information about a free library to plot 2d and 3d data information, google for jpgraph -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] preg_replace question

2002-12-23 Thread Jason Wong
On Monday 23 December 2002 18:34, electroteque wrote: yet another regex question how could i hange the value within the quotes with preg_replace php_value upload_max_filesize 5M If php_value upload_max_filesize is fixed then there is no need to use preg_replace. Just use a simple

Re: [PHP] Flushing image from database to browser - how to get itcached??

2002-12-23 Thread Dries Verachtert
Hello, I think you have two possibilities: * use session_cache_limiter() : you can find the explanation at http://www.php.net/manual/en/function.session-cache-limiter.php I guess you need the 'public' setting. * Add the headers yourself: for example at

[PHP] LDAP support...

2002-12-23 Thread Peter Lavender
Hi everyone Quick question: I'm running debian and have apt-get php and openldap. openldap works, as does php. I'm now working with the ldap functions and here is where I'm stuck. I can see from phpinfo() that ldap has been compiled in: '--with-ldap=shared,/usr' My problem is the following

Re: [PHP] LDAP support...

2002-12-23 Thread Peter Lavender
OK this is lame, but I'm posting a reply straight after the message hits my box... I'm running debian and have apt-get php and openldap. openldap works, as does php. I'm now working with the ldap functions and here is where I'm stuck. apt-cache search php4 what turns up? php4-ldap I've

[PHP] PHP scripts use/get passed root's environment?

2002-12-23 Thread Terrence Koeman
PHP 4.2.3 on Apache 1.3.27 on FreeBSD 4.7-STABLE; Apache runs with uid/gid 80/80 and php is loaded as module. For some reason all PHP scripts on my box run in root's environment instead of one created by apache. This is the environment section from phpinfo: http://ra.phid.ae/phpinfo.html And

RE: [PHP] Re: fgets() question?

2002-12-23 Thread Ford, Mike [LSS]
-Original Message- From: Noel Wade [mailto:[EMAIL PROTECTED]] Sent: 22 December 2002 09:44 A blank line should return the newline (\n or \r\n), according to http://www.php.net/manual/en/function.fgets.php. Also try using '===' (3 = signs) as the operator, which enforces

Re: [PHP] Flushing image from database to browser - how to get itcached??

2002-12-23 Thread Justin French
image.php needs to send appropriate headers for caching... of course, i have no idea what they are, because i've never done dynamic images :) don't *think* mod rewrite will affect/help anything here. Justin on 23/12/02 6:35 PM, Tim Molendijk ([EMAIL PROTECTED]) wrote: Hi all, I'm storing

RE: [PHP] upload_max_filesize + ini_set

2002-12-23 Thread Ford, Mike [LSS]
-Original Message- From: electroteque [mailto:[EMAIL PROTECTED]] Sent: 20 December 2002 19:34 and i just tested the script and it let me upload a 2.5M file. Well, I was just quoting from the manual, so that sounds worthy of a bug report in itself -- either the manual is wrong, or

Re: [PHP] Thumbnail generation

2002-12-23 Thread 1LT John W. Holmes
i want to generate the thumbnail of an image but I want my php to be portable. How can I generate thumbnail without depending on php host configuration (like --with-gd) ? Along with the othe suggestions, Netpbm is something that you can package up with your application so that you are

[PHP] calendar solution for workgroups ???

2002-12-23 Thread Tariq Murtaza
Hi all, I am looking for a good calendar system for a group of people. (PHP /Mysql) any idea?? Help/Comments will be appreciated. Tariq Murtaza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php-java formatting

2002-12-23 Thread Edward Peloke
Hello all, I am using a javascript alert box in one of my php pages to tell the user they didn't fill out all the required fields. As I check each field, if it is blank I am adding to the alert string: $alertstring=Missing Mandatory Fields; if ($fname==''){

[PHP] md5()

2002-12-23 Thread Edward Peloke
I don't want to store my users passwords in the db as clear text so I know I can use md5(). But, what do I do when a user has forgotten his/her password and I need to send it to them? Can I reverse md5()? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] md5()

2002-12-23 Thread Justin French
You reset the password to something new... either manually (a person) or with a self-help script. md5 is one way encryption. Justin on 24/12/02 12:38 AM, Edward Peloke ([EMAIL PROTECTED]) wrote: I don't want to store my users passwords in the db as clear text so I know I can use md5().

Re: [PHP] php-java formatting

2002-12-23 Thread 1LT John W. Holmes
I am using a javascript alert box in one of my php pages to tell the user they didn't fill out all the required fields. As I check each field, if it is blank I am adding to the alert string: $alertstring=Missing Mandatory Fields; if ($fname==''){ $alertstring=$alertstring.First

Re: [PHP] LDAP support...

2002-12-23 Thread michael kimsal
Peter Lavender wrote: OK this is lame, but I'm posting a reply straight after the message hits my box... I'm running debian and have apt-get php and openldap. openldap works, as does php. I'm now working with the ldap functions and here is where I'm stuck. apt-cache search php4 what

Re: [PHP] cookies

2002-12-23 Thread Krzysztof Dziekiewicz
The only problem is once the cookie is set, it never seems to go away. This one should have expired in 30 minutes right? I can still go in and get to the other pages without it telling me to log in. What did I do wrong? Mayby your pages are cached. Do you send no-cache headers ? --

Re: [PHP] md5()

2002-12-23 Thread Chris Hewitt
Edward Peloke wrote: I don't want to store my users passwords in the db as clear text so I know I can use md5(). But, what do I do when a user has forgotten his/her password and I need to send it to them? Can I reverse md5()? No. You send them a new password. Ideally, the only person who

Re: [PHP] md5()

2002-12-23 Thread Johannes Schlueter
On Monday 23 December 2002 14:38, Edward Peloke wrote: [...] Can I reverse md5()? No. You could only send the user a new password wich must be activated. johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] md5()

2002-12-23 Thread Edward Peloke
Thanks Johannes and Chris! That is what I will do. Eddie -Original Message- From: Johannes Schlueter [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 8:36 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] md5() On Monday 23 December 2002 14:38, Edward Peloke

[PHP] Re: calendar solution for workgroups ???

2002-12-23 Thread Jan Schneider
Tariq Murtaza wrote: Hi all, I am looking for a good calendar system for a group of people. (PHP /Mysql) any idea?? Help/Comments will be appreciated. Try http://www.horde.org/kronolith/ The newest version from CVS supports shared calendars and a fine granulated permission system based on

Re: [PHP] php-java formatting

2002-12-23 Thread Krzysztof Dziekiewicz
This all works fine except I want each empty field of the alert box to be on it's own line. I try adding \n to the lines of the alert string but it prints out the \n. How can I format this string so that it shows correctly in the alert box? Just you use '\n' but you have to do something

Re: [PHP] Thumbnail generation

2002-12-23 Thread Mika Tuupola
On Mon, 23 Dec 2002, 1LT John W. Holmes wrote: Better yet, take the time to write an Image Abstraction Layer that'll function just like a Database Abstraction Layer. You use the same functions no matter what and depending on the config, either GD, Imagemagik, Netpbm, or whatever is used to do

[PHP] php.exe without console window

2002-12-23 Thread Alexander Kuznetsov
Hello All, I know that in PHP-GTK development there is gtk-launcher php_gtk wich runs php-gtk scripts without terminal window. Is something like it for usually php.exe? I mean I was to execute php.exe from other application and don't want to see that ugly terminal window... -- Best regards,

[PHP] how to specify dimensions of opened window?

2002-12-23 Thread Jody Cleveland
Hello, I'm wondering, without the use of javascript, how to specify browser parameters for pop up windows. Such as window size and whether there's a toolbar. This would be for a popup when users would click on a link. Is this possible? -Jody Cleveland Winnefox Library System Computer Support

Re: [PHP] how to specify dimensions of opened window?

2002-12-23 Thread Rick Emery
Can't do this with PHP, which is server-side. You can, however, use PHP to generate JavaScript that will set the window parameters when executed. - Original Message - From: Jody Cleveland [EMAIL PROTECTED] To: Php-General (E-mail) [EMAIL PROTECTED] Sent: Monday, December 23, 2002 8:19 AM

RE: [PHP] how to specify dimensions of opened window?

2002-12-23 Thread Jody Cleveland
You can, however, use PHP to generate JavaScript that will set the window parameters when executed. How would I do that? Jody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to specify dimensions of opened window?

2002-12-23 Thread Rick Emery
Use PHP print/echo statements to create the JavaScript code, just as you would HTML code. - Original Message - From: Jody Cleveland [EMAIL PROTECTED] To: 'Rick Emery' [EMAIL PROTECTED]; Php-General (E-mail) [EMAIL PROTECTED] Sent: Monday, December 23, 2002 8:41 AM Subject: RE: [PHP] how

[PHP] Configuring printer output for a POS printer -- Admin Configuring Printer Drivers or a Select Driver Menu

2002-12-23 Thread Axis Computers
Hi, I'm developing a Pizza delivery application which uses printer output, and I want to know which is the better way to format the output to the printer, and how can I design a select printer menu (communicate with printer drivers), so the user can select from a number of POS printers (45

RE: [PHP] how to specify dimensions of opened window?

2002-12-23 Thread Jody Cleveland
Use PHP print/echo statements to create the JavaScript code, just as you would HTML code. Um... How would you go about doing that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL vs PostgreSQL

2002-12-23 Thread Miro Kralovic
Hi, I'm just deciding which DB to use for my projects and I'm not clear with one thing... When considering a database for web, is MySQL good enough? I read it only supports table locking, which is not very satisfying in such a multiuser environment as the internet.. Based on your experience,

Re: [PHP] how to specify dimensions of opened window?

2002-12-23 Thread Rick Emery
Do you know JavaScript? If not, start there. print open(\url\,\window_name\,\width=400,height=300menubar=no,status=no\); - Original Message - From: Jody Cleveland [EMAIL PROTECTED] To: 'Rick Emery' [EMAIL PROTECTED]; Php-General (E-mail) [EMAIL PROTECTED] Sent: Monday, December 23, 2002

Re: [PHP] MySQL vs PostgreSQL

2002-12-23 Thread Rick Emery
You accidentally published this to the wrong email list. I assume you meant to send this to the MySQL email list. - Original Message - From: Miro Kralovic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 9:10 AM Subject: [PHP] MySQL vs PostgreSQL Hi, I'm just

[PHP] Direct IO functions

2002-12-23 Thread Slobodan Miljkovic
Can anyone suggest how to detect is there a device connected on serial port, using Direct IO functions? Can a timeout be set on dio_open() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 23 Dec 2002 15:29:16 -0000 Issue 1780

2002-12-23 Thread php-general-digest-help
php-general Digest 23 Dec 2002 15:29:16 - Issue 1780 Topics (messages 129136 through 129197): Undefined Functions 129136 by: Beauford.2002 129137 by: Rasmus Lerdorf Re: fwrite() blank-line Quirk? 129138 by: Jason Wong Re: \Z characters 129139 by: Jason

[PHP] Richiesta collaborazioni

2002-12-23 Thread Armando
Salve, A chiunque possa interessare, cerco persone su Napoli con cui avere scambi di pareri e info circa PHP/MySQL, eventualmente ci sarebbero opportunità lavorative. Saluti -- Armando Alario ICQ# 172677921 -- Armando Alario ICQ# 172677921 -- PHP General Mailing List

Re: [PHP] calendar solution for workgroups ???

2002-12-23 Thread Brent Baisley
If you are looking for a complete solution (calendar, contact, to do, webmail, etc.), there is a nice open source project at: http://www.moregroupware.org/ I downloaded it and started playing with it about 2 weeks and like what I see. Totally overkill if you just want a Calendar. On Monday,

Re: [PHP] Configuring printer output for a POS printer -- Admin Configuring Printer Drivers or a Select Driver Menu

2002-12-23 Thread Chris Hewitt
Axis Computers wrote: I'm developing a Pizza delivery application which uses printer output, and I want to know which is the better way to format the output to the printer, and how can I design a select printer menu (communicate with printer drivers), so the user can select from a number of POS

Re: [PHP] Undefined Functions

2002-12-23 Thread Beauford.2002
I have a function at the bottom of my script which is called from withing an if/else statement. If I take it out of the if/else and just call the function it works fine (except I don't get the results I want). So it appears where you are calling it from does matter. See the examples below. This

Re: [PHP] MySQL vs PostgreSQL

2002-12-23 Thread David T-G
Miro, et al -- ...and then Miro Kralovic said... % % Hi, Hello! % % I'm just deciding which DB to use for my projects and I'm not clear with one % thing... When considering a database for web, is MySQL good enough? I read % it only supports table locking, which is not very satisfying in such

Re: [PHP] Undefined Functions

2002-12-23 Thread Rasmus Lerdorf
Like I said, where you define your function is important, not where you call it. If you are defining and calling it all in the same place, then yes, obviously it makes a difference. -Rasmus On Mon, 23 Dec 2002, Beauford.2002 wrote: I have a function at the bottom of my script which is called

[PHP] Forms

2002-12-23 Thread Vicente Valero
I'm having problems using variables from a html form. I've been reading, and it seems that I have register_globlas=off in php.ini. But I've tried to find this file in my Linux, but I haven't been able to locate it. Could someone tell me where is it? Thank you

Re: [PHP] Forms

2002-12-23 Thread John Nichel
How did you install php? RPM, from source? Check in /etc, or do a... find / -name php.ini as root. Vicente Valero wrote: I'm having problems using variables from a html form. I've been reading, and it seems that I have register_globlas=off in php.ini. But I've tried to find this file in my

Re: [PHP] Configuring printer output for a POS printer -- Admin Configuring Printer Drivers or a Select Driver Menu

2002-12-23 Thread Chris Hewitt
Axis Computers wrote: Yes, but in my application's case the server and the client are on the same computer, because the server will act as localhost, so you are saying there is no way to dump any printer output ? Ah, you do mean the server. OS dependent. If linux then probably call lpr via an

Re: [PHP] Forms

2002-12-23 Thread Rick Emery
For my Linux (RedHat 7.1), it's at /etc/php.ini - Original Message - From: Vicente Valero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 10:25 AM Subject: [PHP] Forms I'm having problems using variables from a html form. I've been reading, and it seems that I

Re: [PHP] Forms

2002-12-23 Thread Chris Hewitt
Rick Emery wrote: For my Linux (RedHat 7.1), it's at /etc/php.ini If its not there, check phpinfo(), this will specifiy where that particular installation of php requires it to be. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] calendar solution for workgroups ???

2002-12-23 Thread Rick Emery
Another good PHP/mySQL calendar application. Group scheduling, etc. Does not have extraneous things such as web-mail. Cost is $35 http://abledesign.com/demo/calendar/ rick People will forget what you said. People will forget what you did. But people will never forget how you made them feel.

Re: [PHP] Forms

2002-12-23 Thread Johannes Schlueter
On Monday 23 December 2002 17:30, John Nichel wrote: How did you install php? RPM, from source? Check in /etc, or do a... find / -name php.ini Or run a script ?php phpinfo(); ? and look what Configuration File (php.ini) Path tells you. On the output ob this comamnd you can see the

Re: [PHP] Forms

2002-12-23 Thread Jason Reid
And remember that if you alter the php.ini file once you have found it, that you MUST restart apache in order for the changes to take place. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: Johannes Schlueter [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] Are there macros in PHP?

2002-12-23 Thread Don
Hi, I need to search a MySQL table based on a condition that can change at runtime. Example == $condition = CustCode = $HTTP_SESSION_VARS['logoncustcode']; other code $queryID = mysql_query(SELECT * FROM CustTariff WHERE . $condition . ORDER BY CustCode); Will the above work? Thanks, Don

Re: [PHP] Are there macros in PHP?

2002-12-23 Thread Rick Emery
What happened when you experimented with this code? You did try, right? - Original Message - From: Don [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, December 23, 2002 11:57 AM Subject: [PHP] Are there macros in PHP? Hi, I need to search a MySQL table based on a

[PHP] Suggestions on how I should handle this

2002-12-23 Thread Sarah Heffron
I have an application I've written for a pet sitting service. So someone calls and says they need a pet sit and we take their info and pick a sitter. We call that sitter to see if they can take the job, but if they say no, then we have to change it to a new sitter who can take the job. I want to

RE: [PHP] Suggestions on how I should handle this

2002-12-23 Thread Edward Peloke
Not usre how your db is designed but I would probably just add a table that links to the sitter and job tables. As people are called a row is put into this table with the sitter and job ids and an 'accepted' column is set to 0, or 1 or Y or N. Then you can query the job table and join the sitter

RE: [PHP] Suggestions on how I should handle this

2002-12-23 Thread John W. Holmes
I have an application I've written for a pet sitting service. So someone calls and says they need a pet sit and we take their info and pick a sitter. We call that sitter to see if they can take the job, but if they say no, then we have to change it to a new sitter who can take the job. I want

[PHP] socket_select() on STDIN

2002-12-23 Thread Geir Torstein Kristiansen
Is it possible to use socket_select() on STDIN with the socket extension? If not, consider this a feature request. I know about fopen('php://stdin', 'r') and this is not what I want unless I can socket_select() on that socket (which I cant). Please cc as I am not subscribed to this list. --

Re: [PHP] Are there macros in PHP?

2002-12-23 Thread Chris Hewitt
Don wrote: $condition = CustCode = $HTTP_SESSION_VARS['logoncustcode']; other code $queryID = mysql_query(SELECT * FROM CustTariff WHERE . $condition . ORDER BY CustCode); Not sure about the multiple assignment (I have not looked it up in the manual), but otherwise the principle is right,

[PHP] mbstring and iconv status and conversion problems

2002-12-23 Thread Jan Schneider
Hi, I'm currently playing a bit with the iconv and mbstring extensions and have some problems. First question: Is there any place where I can find information about the current status of these extensions and their functions? Second question: Since iconv's output buffering charset conversions

Re: [PHP] Undefined Functions

2002-12-23 Thread Beauford.2002
Then based on the one below that doesn't work, what is the problem with it? As I said, the functions are at the bottom of the script. The only thing after them is the closing ?. I also said that they work if I don't call them from within an if/else. This tells me it is not where it is defined but

[PHP] Re: mbstring and iconv status and conversion problems

2002-12-23 Thread Jan Schneider
Jan Schneider wrote: Second question: Since iconv's output buffering charset conversions doesn't seem to work quite well, I tried to use mbstring's one. But afaics it doesn't support converting into utf-8. Is there any other preferred method to convert to utf-8? Sorry, not converting _to_

Re: [PHP] Undefined Functions

2002-12-23 Thread Gerald Timothy Quimpo
On Monday 23 December 2002 11:11 am, Beauford.2002 wrote: Then based on the one below that doesn't work, what is the problem with it? your example wasn't runnable (since parts of it were is the attached a fair example of what you're trying to do? i don't have any problem with it. it works as

Re: [PHP] Undefined Functions

2002-12-23 Thread Leif K-Brooks
Try defining them at the top instead... Beauford.2002 wrote: Then based on the one below that doesn't work, what is the problem with it? As I said, the functions are at the bottom of the script. The only thing after them is the closing ?. I also said that they work if I don't call them from

Re: [PHP] Undefined Functions

2002-12-23 Thread Rasmus Lerdorf
I have no idea what you have done wrong. I am simply telling you how it works. Create a small test script that reproduces the problem and we can help you. What you have provided so far does not give us anything to work with. Try this, for example: ? if(true) func1(); else func2();

Re: [PHP] Forms

2002-12-23 Thread Jason Sheets
php.ini can be in several different locations, the best way to identify its location is to ask PHP where it is at (I have seen it in /usr/local/etc, /etc, /usr/local/lib, /usr/local/conf, among others). Construct a php file with phpinfo() like: ?php phpinfo(); ? Then visit the page in

[PHP] Unable to match dollar sign in preg_match

2002-12-23 Thread Randall Perry
Here's my expression: $data = xyz_%split%_$10.21; preg_match (/^.*_\%split\%_$(\d*\.\d*)/, $data, $match); Returns nothing (escaping the $ with a \ does the same), but this returns 10.21: preg_match (/^.*_\%split\%_\D*(\d*\.\d*)/, $data, $match); How is it done? -- Randall Perry sysTame

RE: [PHP] upload_max_filesize + ini_set

2002-12-23 Thread Dan Rossi
maybe someone would like to report it , my reports either get ignored or are false alarms , i am creating a function to get the line upload_max_filesize and change its value in .htaccess its the only way , and this is everytime i load the uploader page -Original Message- From: Ford, Mike

RE: [PHP] Unable to match dollar sign in preg_match

2002-12-23 Thread John W. Holmes
preg_match (/^.*_\%split\%_$(\d*\.\d*)/, $data, $match); Should be preg_match (/^.*_\%split\%_\\\$(\d*\.\d*)/, $data, $match); ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List

Re: [PHP] Unable to match dollar sign in preg_match

2002-12-23 Thread Randall Perry
Hokay, that works, but what's with the triple backslashes? preg_match (/^.*_\%split\%_$(\d*\.\d*)/, $data, $match); Should be preg_match (/^.*_\%split\%_\\\$(\d*\.\d*)/, $data, $match); ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy

[PHP] Date Subtraction

2002-12-23 Thread Christopher J. Crane
I have two periods in time from a Cisco router that I would like to find the difference in seconds. I am not sure the best way to do this since it is not a date, but rather an amount of time since last reset. Here is the numbers 181 days, 7:11:06.66 //stands for 181 days, 7 hours, 11 minutes,

Re: [PHP] Date Subtraction

2002-12-23 Thread Marco Tabini
I don't think you can use strtotime in that case. However, assuming that your data is properly formatted every time, you can use a simple function like this (I'm doing it from memory, so it might not actually work): ?php function conv_time ($s) { preg_match (/^([0-9]*) days,

[PHP] Re: [PHP-WIN] Tutorials on OOP

2002-12-23 Thread Davy Obdam
Hi people, Thanks for all the reply`s. I found the tuturials very usefull and much better then the most tutorials i have found so far, usualy with an example class car or something not very usefull Thanks, Davy Obdam mailto:[EMAIL PROTECTED] Davy Obdam wrote: Hi people,. I have to

[PHP] php+gif problems take 2

2002-12-23 Thread cj
Hi would any one know what the following error's are for/mean I am using gd 2.0.7 with gif support and php4.2.3. I am using the exact same gd version and php version as I used on another machine and it compiled with only minor problems, but these errors are different to the errors I got on the

[PHP] mcrypt

2002-12-23 Thread Ysrael Guzmán
Hi, my server is win 2000 server and IIS 5.0 i wnat to work to MCRYPT, but i don't know... help me please. Por favor yo estoy trabajando con windows 2000 server, y mi servidor web es un Internet Information Service, trabajo con PHP y Mysql... deseo encriptar con MCRYPT, pero no viene

Re: [PHP] mcrypt

2002-12-23 Thread Alex Piaz
As far as I know, there is no mcrypt windows version. You´ll have to try to compile it yourself. And don´t ask me how because I don´t know:-) A sugestion: If you can, change to linux. It´s better and it´s Free. Regards Alex At 18:33 23/12/2002 -0500, Ysrael Guzmán wrote: Hi, my server is win

Re: [PHP] Date Subtraction

2002-12-23 Thread Justin French
okay, this is just me thinking out loud... none of this is tested... ? function something($time) { $time = substr($time, 0, -3); list($days,$theRest) = explode(' days, ', $time); list($h,$m,$s) = explode(':', $theRest); $days = $days * 86400; $h = $h * 360; $m = $m *

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Luke Sneeringer
That worked perfectly! The problem is fixed. Thank you so much. Luke Chris Wesley wrote: On Mon, 23 Dec 2002, Luke Sneeringer wrote: That doesn't seem to work. This might be because my require tags also send variables (e.g. common.php?variable=1)--would this make a call to a non-PHP

RE: [PHP] Unable to match dollar sign in preg_match

2002-12-23 Thread John W. Holmes
I don't know. I just got that from reading the manual. The very first user comment on the preg_match page. chrisbolt at home dot com 12-Mar-2000 03:23 If you want to use some of PHP's special characters in your expression, such as $, you must escape it twice. For example: $matchme =

[PHP] Problem with Include

2002-12-23 Thread sport4ever
Hello, my problem is that I can't use more than one SSI INCLUDE in a page Please access this test page to check the problem yourself: http://www.sport4ever.com/test/hello.shtml The first INCLUDE will appear correctly and prints HELLO World, include #1 which is the output of hello.php

[PHP] Beginner examples?

2002-12-23 Thread Chris Rehm
I have a friend who has asked me about some sites she's working on. She maintains multiple sites on different servers. Each of these sites runs a different contest, currently handled by formmail.pl and then some hand entry by her part. I've suggested she use MySQL, her own host allows it, and

php-general Digest 24 Dec 2002 04:01:39 -0000 Issue 1781

2002-12-23 Thread php-general-digest-help
php-general Digest 24 Dec 2002 04:01:39 - Issue 1781 Topics (messages 129198 through 129239): Richiesta collaborazioni 129198 by: Armando Re: Configuring printer output for a POS printer -- Admin Configuring Printer Drivers or a Select Driver Menu 129199 by: Chris Hewitt

[PHP] REMOTE_HOST

2002-12-23 Thread John Taylor-Johnston
I think this is perl? REMOTE_HOST How can I do this? I want to check the referer. If A do Aa, else Bb I can't find a variable in phpinfo() ?php $appareil = getenv('REMOTE_HOST'); if(strpos($appareil, www.foo.ca)) { echo found $appareil; }else{ echo did not find $appareil; } ? -- PHP General

[PHP] Re: REMOTE_HOST

2002-12-23 Thread John Taylor-Johnston
The deal is my ISP does a redirect from www.delete.compcanlit.ca to www.delete.compcanlit.usherbrooke.ca. I'm trying to if statement the redirect. Again, I find no variable in phpinfo(). John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] REMOTE_HOST

2002-12-23 Thread John W. Holmes
I think this is perl? REMOTE_HOST How can I do this? I want to check the referer. If A do Aa, else Bb I can't find a variable in phpinfo() ?php $appareil = getenv('REMOTE_HOST'); if(strpos($appareil, www.foo.ca)) { echo found $appareil; }else{ echo did not find $appareil; } ?

RE: [PHP] Beginner examples?

2002-12-23 Thread John W. Holmes
I have a friend who has asked me about some sites she's working on. She maintains multiple sites on different servers. Each of these sites runs a different contest, currently handled by formmail.pl and then some hand entry by her part. I've suggested she use MySQL, her own host allows it,

[PHP] Timing mySQL query time.

2002-12-23 Thread Noodle Snacks
Is there a built in php function for mysql that I can use to time the last query? or do I have to take the microtime before and after then substract the first from the last? I want to time how long my queries take -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Timing mySQL query time.

2002-12-23 Thread Rasmus Lerdorf
Why not just get the query times from the mysql general query log? On Tue, 24 Dec 2002, Noodle Snacks wrote: Is there a built in php function for mysql that I can use to time the last query? or do I have to take the microtime before and after then substract the first from the last? I want

  1   2   >