Re: [PHP] Re: ARRAY, IF INSERT

2002-06-24 Thread Jesper Brunholm
César aracena wrote: The catch would be to make PHP to auto assign the relatives level by knowing it has to start from $i=1 and loop $i++ until no other kid is inserted. Now that I write it, it seems I could use a for loop, but what should be the structure of it using the $name 0 you told

Re: [PHP] Using Oracle Data base store procedure (function, procedure, package)

2002-06-24 Thread Laurent Drouet
Hi I think you should have a look to http://www.php.net/manual/en/function.ocibindbyname.php. I use this function to call an Oracle Stored Procedure and retrieve the return value. Regards Laurent

[PHP] Re: recommend any good learning books

2002-06-24 Thread Jesper Brunholm
[EMAIL PROTECTED] wrote: I am coming over from Perl life. Does anyone recommend any good beginners books on learning PHP? I am looking for something similar too learning perl from Oreily. I must confess that I do not know the O'reilly book you're talking about, but PHP MySQL development

Re: [PHP] Run two separate version of Apache and Php

2002-06-24 Thread Al Baker
I believe you will need to compile two versions, and point two to different php.ini locations. Here's a snipet from the manual. http://www.php.net/manual/en/install.configure.php#install.configure.options.php Al --enable-maintainer-mode Enable make rules and dependencies not useful (and

[PHP] xslt_output_begintransform() - What Happend to it?

2002-06-24 Thread Nigel Liefrink
Couldn't help noticing with the upgrade to version 4.21 that this function is no longer available, I've looked around and not found much on the subject but so far I have worked out that my code basically has to change from this... ?xslt_output_begintransform($xslfile); StatusBar

[PHP] getting the value of a javascript variable

2002-06-24 Thread Otteneder Hermann
hi everybody, i have a short problem: i have two drop down menues in a form. the content of the second dropdown is dependent from the selection in the first dropdown menue. now i want write a short javascript which runs on the onSelect - event of the first dropdown. this script gives me the

[PHP] URGENT!!! File Uplaod

2002-06-24 Thread César Aracena
Hi all. Sorry for this, but a couple of hours ago (imagine… Monday at 3 in the morning) one of my clients called and asked me to put a Photography upload for each member of his business and the dead line is in 2 hours. I’ve been messing around for the first time with file uploading, but it

[PHP] Re: getting the value of a javascript variable

2002-06-24 Thread BB
http://www.mattkruse.com/javascript/dynamicoptionlist/source.html hope this helps Otteneder Hermann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi everybody, i have a short problem: i have two drop down menues in a form. the content of the second dropdown

[PHP] Re: URGENT!!! File Uplaod

2002-06-24 Thread BB
http://www.php.net/manual/en/function.is-uploaded-file.php César aracena [EMAIL PROTECTED] wrote in message 000901c21b5a$e1aea180$cdc405c8@gateway">news:000901c21b5a$e1aea180$cdc405c8@gateway... Hi all. Sorry for this, but a couple of hours ago (imagine. Monday at 3 in the morning) one of my

Re: [PHP] URGENT!!! File Uplaod

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 16:40, César Aracena wrote: Hi all. Sorry for this, but a couple of hours ago (imagine… Monday at 3 in the morning) one of my clients called and asked me to put a Photography upload for each member of his business and the dead line is in 2 hours. I’ve been messing

Re: [PHP] Remote cgi script function

2002-06-24 Thread Haddad Said
Thanks John, See when i echo $contents, the page displayed contains backgrounds and other text from the remote site, how can i crop only the returned query and display it in a page with my backgrounds etc thanks John Holmes [EMAIL PROTECTED] wrote in message

RE: [PHP] Re: ARRAY, IF INSERT

2002-06-24 Thread César Aracena
the name 0 was a sql-query - it will return a ressource which will enable you to make something like $i=0; while($row = mysql_fetch_assoc($nameless_result){ #psuedo-code# # mysql_query=(insert into table set relativenumber = 'jr$i' where ID=$row[ID]); } [César L. Aracena] I think

[PHP] Removing Empty Lines from Text??

2002-06-24 Thread Jason Caldwell
Is there an elegant way to remove excess blank lines from my form data? For example; if someone enters the following text and then press' the Submit button: This is a some text This is more text, and yet even more What I want to do is remove the excess white

Re: [PHP] Remote cgi script function

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 16:47, Haddad Said wrote: See when i echo $contents, the page displayed contains backgrounds and other text from the remote site, how can i crop only the returned query and display it in a page with my backgrounds etc Short answer: with great difficulty. Longer answer:

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread BB
$var = preg_replace(/\n*/,\n,$var); Jason Caldwell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there an elegant way to remove excess blank lines from my form data? For example; if someone enters the following text and then press' the Submit button:

RE: [PHP] URGENT!!! File Uplaod

2002-06-24 Thread César Aracena
You're completely right - as usual - now for the file handling... what's better? Storing it to the DB or as file?? Thanks a lot. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 5:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] URGENT!!!

RE: [PHP] copying the structure of a blank table in mysql

2002-06-24 Thread John Holmes
Anyone have a link (or the code) to copy the structure of a blank table to a new table using mysql? ? function change_table_name($old_name, $new_name) { $result = mysql_query(show create table $old_name); $create = mysql_result($result,0,1); str_replace(TABLE `$old_name`,TABLE

[PHP] Re: === and @

2002-06-24 Thread BB
== compares 2 variables regardless of type (1 == 1) === compares 2 variables with type in mind (1 !== 1) @ supresses errors in functions Phil Schwarzmann [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What exactly happens when you put three equal-signs together

Re: [PHP] Removing Empty Lines from Text??

2002-06-24 Thread Justin French
Well, in short, you want to replace \n\n\n or \n\n\n\n with \n\n. This can be done cleaverly with a regexp (not my expertise at all, but you want to replace 3 or more occurences of \n in a row with \n\n. Otherwise, a simple str_replace() will do it an okay job. something like: ? $str =

Re: [PHP] Using Oracle Data base store procedure (function, procedure, package)

2002-06-24 Thread Stuart Dallas
On Monday, June 24, 2002, 3:46:02 AM, èdy kurniawan wrote: The manual doesn't show how we can execute kind of oracle store procedure .. I know nothing about using Oracle from PHP, but a quick search on Google revealed the following: http://www.phpworld.com/manual/ref.oci8.html - example 2 shows

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread BB
replace that with $var = preg_replace(/\n+/,\n,$var); Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $var = preg_replace(/\n*/,\n,$var); Jason Caldwell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there an elegant way

Re: [PHP] rounding a number

2002-06-24 Thread George Whiffen
Jason Wong wrote: On Monday 24 June 2002 11:34, Phil Schwarzmann wrote: I want to round a number to the nearest decimal place... if the number is 4.623, I want it to display 4.6 if the number is 2.36, I want it to display 2.7 You don't really mean 2.36 -- 2.7 ?? Is there a function

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread Jason Caldwell
neither worked. any other suggestions? Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... replace that with $var = preg_replace(/\n+/,\n,$var); Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $var =

[PHP] Re: rounding a number

2002-06-24 Thread George Whiffen
Phil Schwarzmann wrote: I want to round a number to the nearest decimal place... if the number is 4.623, I want it to display 4.6 if the number is 2.36, I want it to display 2.7 Is there a function that does this? round(), ceil(), floor() don't do this and I've checked through all the

RE: [PHP] URGENT!!! File Uplaod

2002-06-24 Thread John Holmes
You're completely right - as usual - now for the file handling... what's better? Storing it to the DB or as file?? File -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread BB
$var = preg_replace(/[\r\n]+/,\n,$var); Jason Caldwell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... neither worked. any other suggestions? Bb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... replace that with $var =

Re: [PHP] URGENT!!! File Uplaod

2002-06-24 Thread BB
It does depend on the usage, but general files are better John Holmes [EMAIL PROTECTED] wrote in message 000a01c21b69$74acc170$b402a8c0@mango">news:000a01c21b69$74acc170$b402a8c0@mango... You're completely right - as usual - now for the file handling... what's better? Storing it to the DB

[PHP] imagecopyresized() problems

2002-06-24 Thread Phil Ewington
Hi, I am trying to copy and resize an image using imagecopyresized() and cannot seem to crack it. Below is the code I am using, can anyone tell me why I keep getting and invalid image resource warning and is this the src or dest parameter that the error is referring to? $srcImageName =

[PHP] php JavaScript

2002-06-24 Thread Luis Miguel N. Tavora
Hi there. I've tried to include a simple javascript in a .php file, but couldn't get it to work. Actually not even the php code worked at all... Is there any specific configuration flag that needs to be set up in the Apache server so that the javascripts work correctly? Thanks in advance

[PHP] ftp class problem

2002-06-24 Thread Steve Edwards
i've written a class for connecting to an ftp server in passiv mode, sending a text file, sending one or more .mpegs and disconnecting. on my test box this script works fine (PHP 4.2.1) BUT on my live box (PHP 3.0.18) it fails... On the live box (php 3.1.8) the script fails when i call

RE: [PHP] Time Delay using phpscript

2002-06-24 Thread SP
Take a look at this page, it uses flush to stagger the results as php processes it. pretty cool http://www.massassi.com/bTemplate/benchmarks/benchmark_var_assign.php?i=50 -Original Message- From: Uma Shankari T. [mailto:[EMAIL PROTECTED]] Sent: June 23, 2002 11:14 PM To: PHP Subject:

[PHP] Sessions problem

2002-06-24 Thread Francesco Chicchiriccò
Hello people out there! I've experienced a curly problem with Linux 2.4.16, Apache 1.3.9 PHP 4.0.6 (Slackware 8). I use a session variable ($login) to manage the authentication to a web administration interface: every page begins with a simple test which checks if $login is stored in session.

php-general Digest 24 Jun 2002 12:07:30 -0000 Issue 1424

2002-06-24 Thread php-general-digest-help
php-general Digest 24 Jun 2002 12:07:30 - Issue 1424 Topics (messages 103506 through 103570): Using Oracle Data base store procedure (function, procedure, package) 103506 by: èdy kurniawan 103507 by: Peter 103512 by: èdy kurniawan 103513 by: Peter

Re: [PHP] Cc / Bcc don't work on win2k but on linux???

2002-06-24 Thread Christoph Grottolo
Sorry. The link below is broken. Try one of the mirrors on www.phpclasses.org instead. Christoph Christoph Grottolo wrote: You could use the mail class by Manuel Lemos on php.upperdesign.com if you need cc/bcc and attachments. I've been using it for quite some time now with good results.

[PHP] Testing PHP on a local machine

2002-06-24 Thread Craig
I want to set up a site at home to play with php I have windows xp pro, dreamweaver MX and mysql Do I need anything to view live application data locally in my browser eg a dynamic php website that is on my local machine that i can access and update? I hope this makes sense Can anyone point

[PHP] Re: php JavaScript

2002-06-24 Thread BB
Javascript is client side and is not parsed by the server at all If you are generating javascript with PHP, and it is in an external file, it still needs a .php extension Can you be more specific to the problem, paste some code? Luis Miguel N. Tavora [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] PHP and COM

2002-06-24 Thread MindHunter
I am looking for more examples on PHP and COM. I've got all the stuff from the manual and the tutorials, but I want more. Anyone that can help plz? Tx MH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing PHP on a local machine

2002-06-24 Thread Henry
Craig, goto http://www.php.net/downloads.php and get the php exe installer read this doc. http://in.geocities.com/samdarshipali/apache-php-mysql.htm that should get you going. cya Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 4.2

2002-06-24 Thread Erik Price
On Sunday, June 23, 2002, at 09:06 AM, Pekka Saarinen wrote: Most virtual server users have no means to set PHP.INI to their liking so changes like that should be done in longer time span to let developers update the software _before_ changes in PHP happen. What about ini_set() ?

Re: [PHP] Whos online at the moment in PHP

2002-06-24 Thread Erik Price
On Sunday, June 23, 2002, at 09:53 AM, Pag wrote: Is it possible to code in PHP a small indicator on a site saying how many people are viewing that page at the moment? Sorry if its a silly question, but i am a newbie at PHP. If it is, could you point me in the good direction?

Re: [PHP] === and @

2002-06-24 Thread Erik Price
On Sunday, June 23, 2002, at 10:46 PM, Phil Schwarzmann wrote: What exactly happens when you put three equal-signs together instead of just one or two? I've seen this in other people's code, then search php.net and found nothing. PHP does dynamic typing. So the following returns TRUE if

[PHP] extension problem

2002-06-24 Thread adelphp
hi all i am working on php and i have problem with extensions. when I try to include a library , I am getting this message : unable to load dynamic library c:\php\extentions\sablotron.dll - one of the library files needed to run this application cannot be found. What should I do. please help.

[PHP] extension problem

2002-06-24 Thread adelphp
hi all i am working on php and i have problem with extensions. when I try to include a library , I am getting this message : unable to load dynamic library c:\php\extentions\sablotron.dll - one of the library files needed to run this application cannot be found. What should I do. please help.

[PHP] extension problem

2002-06-24 Thread adelphp
hi all i am working on php and i have problem with extensions. when I try to include a library , I am getting this message : unable to load dynamic library c:\php\extentions\sablotron.dll - one of the library files needed to run this application cannot be found. What should I do. please help.

[PHP] extension problem

2002-06-24 Thread adelphp
hi all i am working on php and i have problem with extensions. when I try to include a library , I am getting this message : unable to load dynamic library c:\php\extentions\sablotron.dll - one of the library files needed to run this application cannot be found. What should I do. please help.

Re: [PHP] How to remove item from cart

2002-06-24 Thread Erik Price
On Sunday, June 23, 2002, at 09:30 PM, Vicki wrote: If you can suggest code that works, that would be great, or at least point me in the right direction if I'm on the wrong track with checkboxes. If you haven't noticed already, I'm very, very new to PHP and haven't quite got the hang of it

RE: [PHP] Whos online at the moment in PHP

2002-06-24 Thread James E. Hicks III
Why not; 1. Record each visitors IP that connects and the connect time. 2. Delete from this table all records that are 5 mins old. 3. Count the remaining records as people currently viewing page. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: getting the value of a javascript variable

2002-06-24 Thread George Whiffen
Otteneder Hermann wrote: hi everybody, i have a short problem: i have two drop down menues in a form. the content of the second dropdown is dependent from the selection in the first dropdown menue. now i want write a short javascript which runs on the onSelect - event of the first

[PHP] real time php

2002-06-24 Thread adi
I have a program in php, with access at mysql database. The problem is, my users have to access Refresh button anytime when they want to see real time values in database. How to make a function for refreshing values in php pages, without pressing Refresh button. What must i read? Any help

Re: [PHP] Limiting text inputs by character count?

2002-06-24 Thread George Whiffen
John Holmes wrote: The best way to do this is server side with strlen(). You can use javascript or maxlength, but if a user wants to get around it, they can. ---John Holmes... John, The best way to do this is with both. maxlength/Javascript as a courtesy, strlen for security. As you

[PHP] Re: How to put a new line character with fputs($birthday_file, $content);

2002-06-24 Thread Tracker 1
Download unix2dos.exe (there is also a dos2unix.exe) http://www.bastet.com/software/UDDU.ZIP If you are running the php on *nix, and wanting to import the file on excel, you will need it.. Another thing you can do, is create it in an html/table format table tr tddata1/td /tr

[PHP] Re: PHP and COM

2002-06-24 Thread BB
$DBCon = new COM(ADODB.Connection); $DBCon-Open('PROVIDER=MSDASQL;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=your.mdb'); Function CloseSQL() { global $DBCon; $DBCon-Close(); $DBCon = ; } Function ExecSQL($SQL) { global $DBCon; $rs = @$DBCon-Execute($SQL); if (!$rs) {

Re: [PHP] is there a function like javascript's window.open in PHP

2002-06-24 Thread Tracker 1
heh, my first thought was to suggest php-gtk g you are right, I see this question on asp lists all the time.. :) -- === Michael J. Ryan - tracker1[*at*]theroughnecks.com Roughneck BBS: http://www.theroughnecks.net

Re: [PHP] real time php

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 10:04 AM, adi wrote: How to make a function for refreshing values in php pages, without pressing Refresh button. What must i read? There's a meta tag that will auto-refresh the page after a specified number of seconds. That will work. But you can't

Re: [PHP] real time php

2002-06-24 Thread 1LT John W. Holmes
I have a program in php, with access at mysql database. The problem is, my users have to access Refresh button anytime when they want to see real time values in database. How to make a function for refreshing values in php pages, without pressing Refresh button. What must i read? PHP can't

[PHP] Re: cookies

2002-06-24 Thread Tracker 1
Paul O'Neil [EMAIL PROTECTED] wrote in message... If a browser has cookies blocked , anyone have code if unable to set cookie then goto another page. at the top of a page.. psuedo code if cookie['test'] exists... if true //cool else if get['cookietest'] exists

Re: [PHP] Time Delay using phpscript

2002-06-24 Thread 1LT John W. Holmes
Take a look at this page, it uses flush to stagger the results as php processes it. pretty cool http://www.massassi.com/bTemplate/benchmarks/benchmark_var_assign.php?i=50 I'd be interested to hear from other people if that works in other browsers. It had a nice effect when I looked at it in

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread Tracker 1
$strMine = preg.replace(/(\r\n|\r|\n)+/,$strMine,\r\n\r\n); or \n\n as the replace.. :) I use the (\r\n|\r|\n) to match against windows, unix, mac line terminations... I usually replace with the windows \r\n -- === Michael

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread Tracker 1
would suggest /(\r\n|\r|\n)+/ especially if the input is from a browser that could be mac, or windows.. :) -- === Michael J. Ryan - tracker1[*at*]theroughnecks.com Roughneck BBS: http://www.theroughnecks.net

Re: [PHP] php JavaScript

2002-06-24 Thread 1LT John W. Holmes
Can you please explain what you're doing more? PHP and Javascript are completely different. PHP happens first, on the web server, to create code to send to the browser. The browser then interprets this code, executes any javascript, etc, and displays the page. You can't have both at the same

[PHP] gss_nt_service_name ?

2002-06-24 Thread General
I'm running this PHP 4.2.1 DSO compile on a Mandrake 8.2 PPC and have Apache 1.3.23 Advanced Extranet server When starting httpd I get this error - Executing: /etc/rc.d/init.d/httpd starting httpd-perl:[ok] starting httpd: Syntax error on line 74 of /etc/httpd/conf/httpd.conf Cannot load

[PHP] problem with PHP_SELF

2002-06-24 Thread DoL
Hi All I would like to submit a form to call itself, and according to some references I could use the $PHP_SELF variable in action attribute of the form element in a HTML document But it is not working for me, please help. I have this line of code form action=?php echo $PHP_SELF; ? method=POST

Re: [PHP] problem with PHP_SELF

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 10:42 AM, DoL wrote: Can anyone advice what did I missed here? Would this have anything to do with php or/and apache configuration? Is it possible that your php.ini file is configured for register_globals = off ? If so, you should use: $_SERVER['PHP_SELF']

Re: [PHP] problem with PHP_SELF

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 22:42, DoL wrote: Hi All I would like to submit a form to call itself, and according to some references I could use the $PHP_SELF variable in action attribute of the form element in a HTML document But it is not working for me, please help. I have this line of code

Re: [PHP] PHP 4.2

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 21:29, Erik Price wrote: On Sunday, June 23, 2002, at 09:06 AM, Pekka Saarinen wrote: Most virtual server users have no means to set PHP.INI to their liking so changes like that should be done in longer time span to let developers update the software _before_

[PHP] Command Line Execution

2002-06-24 Thread Bob Ahola
Within an executing script, what is the proper technique to determine the environment of execution... i.e., browser or command line? Bob Ahola, Atlanta

Re: [PHP] imagecopyresized() problems

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 18:57, Phil Ewington wrote: Hi, I am trying to copy and resize an image using imagecopyresized() and cannot seem to crack it. Below is the code I am using, can anyone tell me why I keep getting and invalid image resource warning and is this the src or dest parameter

Re: [PHP] PHP 4.2

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 10:55 AM, Jason Wong wrote: There are quite a few config settings which cannot be altered using ini_set(), register_globals being one of them, although that can be set using .htaccess files. I see. I must have misread this page:

[PHP] Auto logout?

2002-06-24 Thread Hawk
I have a login, and when users are logged on, it should show in some way on the page, that's not the problem, it is to show that they are logged off when they are, often people forget to press the logout button, and the mysql database is unchanged, saying they are still logged on, how can I do so

Re: [PHP] Removing Empty Lines from Text??

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 16:56, Justin French wrote: Well, in short, you want to replace \n\n\n or \n\n\n\n with \n\n. This can be done cleaverly with a regexp (not my expertise at all, but you want to replace 3 or more occurences of \n in a row with \n\n. To add my tuppence's worth, I would

Re: [PHP] Auto logout?

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 11:14 AM, Hawk wrote: I have a login, and when users are logged on, it should show in some way on the page, that's not the problem, it is to show that they are logged off when they are, often people forget to press the logout button, and the mysql database

[PHP] PHP as a proxy to an htaccess protected site. (STILL UNRESOLVED)

2002-06-24 Thread php
Hi people, Iam trying to make a script that you give it the login and password for a determined password protected site, and it logs you in. It will be like a proxy. So, what I have is something like this: ? $fp = fopen (http:// $login:$[EMAIL PROTECTED]/protected_area/index.html, r); while

[PHP] Convert a grayscale value to a #RRGGBB hex value

2002-06-24 Thread René Fournier
Anyone know how I might convert a grayscale value, from between 0 to 100, to hex, such that 0 (black) would be returned as #00, and 100 (white) as #FF? For example... function grayscaletohex ($val) { $hex = $val ... [ a simple operation ] return $hex; } Thanks.

[PHP] Convert a grayscale value to a #RRGGBB hex value

2002-06-24 Thread René Fournier
Anyone know how I might convert a grayscale value, from between 0 to 100, to hex, such that 0 (black) would be returned as #00, and 100 (white) as #FF? For example... function grayscaletohex ($val) { $hex = $val ... [ a simple operation ] return $hex; } Thanks.

Re: [PHP] Can't start Apache

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 23:33, General wrote: Help! I'm running this PHP 4.2.1 DSO compile on a Mandrake 8.2 PPC and have Apache 1.3.23 Advanced Extranet server When starting httpd I get this error - Executing: /etc/rc.d/init.d/httpd starting httpd-perl:[ok] starting httpd: Syntax error on

[PHP] function definition causing problems?

2002-06-24 Thread Bill Hudspeth
I am using PHP 4.2.1, Windows 2000P, IIS4 connected to an Access 2000 database with an ISAPI module. I have created a very simple form and have written a function to display radio buttons. While a hard-coded, HTML version of the form works perfectly (correctly returning data), the php file brings

[PHP] session_is_registered = secure?

2002-06-24 Thread Duncan
Hi there, i created a session based login and in order to enter the selected part of the script, i check for the passed variable and if the session is registered, which only happens, if the user password is right. So, currently i am checking for: else if

Re: [PHP] Can't start Apache

2002-06-24 Thread General
Thanks I did all that ...do I have to have a working kerberos to do the configure ...because then I get a meesage stating that php couldn't find a simple progam ...however the confiure goes fine then when I make it dies with recursive error 1 cannot find libgss_krb5.so ...and I am pointing to

[PHP] Using $PHP_SELF in a form

2002-06-24 Thread Frank Miller
Hello All, Im working on a project here at our university and need a little. We installed a wireless network and bought 5 ipaqs to use and experiment with. I wrote a work order system that we are still using. Basically the tech guys want to be able to check WO from the ipaqs and if they

RE: [PHP] function definition causing problems?

2002-06-24 Thread Johnson, Kirk
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\inetpub\wwwroot\PHP\cat_proto3.php on line 46 Line 46 corresponds to the form tag, as follows: FORM ACTION=?php echo $_SERVER['PHP_SELF'] ? method=POST When you echo out

[PHP] wordwrap doesn't work for customer's Outlook

2002-06-24 Thread m u i n a r
Hello What would *you* do if you wordwrap a text and send it via the mail() command, and your costumer gets the whole text on 1 single line? I'm using $newtext = wordwrap( $text,76,\r\n ); He has Outlook. When I'm testing it in my Eudora, in Bat and in Outlook Express, it's wrapped nicely.

RE: [PHP] Error(Newbie)

2002-06-24 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 22 June 2002 15:19 when I try and view stat.php I get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\TecEco(Converting To PHP)\includes\stat.php on

[PHP] Re: Using $PHP_SELF in a form

2002-06-24 Thread George Whiffen
Frank Miller wrote: I'm working on a project here at our university and need a little. We installed a wireless network and bought 5 ipaq's to use and experiment with. I wrote a work order system that we are still using. Basically the tech guys want to be able to check WO from the

[PHP] Ensim with PHP and MySQL

2002-06-24 Thread Mark McCulligh
Has anyone ever used Ensim on their server with PHP and MySQL. I am looking at purchase Ensim to management my web sites. It looks like a great product, but because it is embedded into RedHat, I am worried about its flexible. If I want to upgrade my PHP, MySQL or Apache on it. It doesn't look

[PHP] Re: Convert a grayscale value to a #RRGGBB hex value

2002-06-24 Thread Matthew Gray
If you know its grayscale... function GrayScaleToHex( $val ) { $norm = $val * 2.55 + $val/100; $hex = sprintf(%02X, $norm); return '#' . $hex . $hex . $hex; } Should get you close enough. Matt René fournier wrote: Anyone know how I might convert a grayscale value, from between

Re: [PHP] function definition causing problems?

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 12:15 PM, Johnson, Kirk wrote: When you echo out an array element, the name needs to be enclosed in curlies, e.g., echo {$_SERVER['PHP_SELF']} I think that this is only important when using an associative array element reference within certain kinds of

Re: [PHP] function definition causing problems?

2002-06-24 Thread Rasmus Lerdorf
// this won't work b/c of quoting issues echo This script is called $_SERVER[PHP_SELF]; // this should work fine IIRC echo This script is called $_SERVER['PHP_SELF']; Nope, use: echo This script is called $_SERVER[PHP_SELF]; -Rasmus -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Can't start Apache

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 23:54, General wrote: Thanks I did all that ...do I have to have a working kerberos to do the configure ...because then I get a meesage stating that php couldn't find a simple progam ...however the confiure goes fine then when I make it dies with recursive error 1

RE: [PHP] Convert a grayscale value to a #RRGGBB hex value

2002-06-24 Thread Lazor, Ed
I have an idea on how to do this. Could someone confirm whether this is a good approach? function grayscaletohex ($val) { $n = ($val * 255) / 100;// convert from range of 100 to range of 255 $h = dechex($n);// convert decimal to hex

Re: [PHP] Can't start Apache

2002-06-24 Thread General
I know because it was causing the problem I was talking about down a couple of lines. Quoting Jason Wong [EMAIL PROTECTED]: On Monday 24 June 2002 23:54, General wrote: Thanks I did all that ...do I have to have a working kerberos to do the configure ...because then I get a meesage

RE: [PHP] header(Location with in URL

2002-06-24 Thread Lazor, Ed
Have you tried this? header(Location: $retURL); ? -Original Message- $retUrl = htmlspecialchars ($retUrl); if ($retUrl != ) { header(Location: . $retUrl); Any ideas? This message is

RE: [PHP] function definition causing problems?

2002-06-24 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 24 June 2002 18:12 On Monday, June 24, 2002, at 12:15 PM, Johnson, Kirk wrote: When you echo out an array element, the name needs to be enclosed in curlies, e.g., echo {$_SERVER['PHP_SELF']} I think

[PHP] PHP with IIS

2002-06-24 Thread Dave Leather
Hello all, I am attempting to open and/or create a DBASE file on a NOVELL network. When I attemp a command such as if (!dbase_open(C:\\orders.dbf,2)){ print COULD NOT OPEN DB; }else{ print DB WAS OPENED; } I receive a message that says DB WAS OPENED - no problem... On my IIS

RE: [PHP] function definition causing problems?

2002-06-24 Thread Johnson, Kirk
I thought this syntax, an unquoted key name, was deprecated ;) From the manual at http://www.php.net/manual/en/language.types.array.php: You should always use quotes around an associative array index. Kirk Nope, use: echo This script is called $_SERVER[PHP_SELF]; -- PHP General Mailing

RE: [PHP] function definition causing problems?

2002-06-24 Thread Rasmus Lerdorf
Not inside a quoted string. On Mon, 24 Jun 2002, Johnson, Kirk wrote: I thought this syntax, an unquoted key name, was deprecated ;) From the manual at http://www.php.net/manual/en/language.types.array.php: You should always use quotes around an associative array index. Kirk Nope,

Re: [PHP] function definition causing problems?

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 01:30 PM, Ford, Mike [LSS] wrote: You can use: echo This script is called {$_SERVER['PHP_SELF']}; echo This script is called ${_SERVER['PHP_SELF']}; echo This script is called $_SERVER[PHP_SELF]; or even echo This script is called .

Re: [PHP] session_is_registered = secure?

2002-06-24 Thread Kevin Stone
I don't know of any exploit that can start a session remotely. Only thing I can recommend is that you modify the default session id to prevent local hackers from hijacking your sessions (assuming you're on an ISP and not running your own server). Also you should consider testing those variables

Re: [PHP] PHP with IIS

2002-06-24 Thread Andrew Brampton
Does the user to which ISS runs under have network permissions to access p:\ ? IIRC you need to set up ISUR_machine_name to have permission to the remote share. Andrew - Original Message - From: Dave Leather [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 6:29 PM

[PHP] Run two separate version of Apache and Php

2002-06-24 Thread rdkurth
Hello php-general, I need to run a separate version of Apache on the same server I also what to use a different copy of the php.ini file with that version of apache. I am aware that I can override most of the php.ini settings in the httpd.conf file. But this is not what I want to do. Php will be

Re: [PHP] php JavaScript

2002-06-24 Thread Jim lucas
nope, theres nothing in apache that needs to be setup for js to be used. does your js file have any php in it? when you say that you couldn't get it to work, do you mean that the include doesn't work or that the js doesn't work on the page that you are including it to? Jim Lucas - Original

  1   2   >