RE: [PHP] Max File Size

2002-12-05 Thread Roger Lewis
Hi, Thursday, December 5, 2002, 5:11:16 PM, you wrote: RL Jason Wong responded Wednesday, December 04, 2002 10:24 PM RL On Thursday 05 December 2002 10:14, Roger Lewis wrote: RL Thanks for the suggestion. I'll try ini_set although I'm not yet RL certain RL of how to use it. RL As has

Re: [PHP] Struggling with code

2002-12-05 Thread Jason Wong
On Thursday 05 December 2002 15:44, Ben C. wrote: I am now getting the following error: Warning: Supplied argument is not a valid MySQL-Link resource in /home/httpd/vhosts/localhost/httpdocs/data/up.php on line 21 Why do you think that is? Try using mysql_error() after each of your

Re: [PHP] Struggling with code

2002-12-05 Thread Hugh Danaher
please post lines 20 and 21, get rid of all @, the comma after url='$url' and show your most recent code. Others have posted and given you good advice, you should incorporate their suggestions. hugh - Original Message - From: Ben C. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] How to create user in mySQL ?

2002-12-05 Thread Jason Wong
On Thursday 05 December 2002 14:36, Manisha wrote: I want to create mySQL user thr phpMyAdmin. I inserted one record in mysql.user table and one in mysql.db table, testing with following program ? $conn = @mysql_connect (localhost:/usr/home/nets/mysql/mysql-demo.sock, manisha, pass);

[PHP] Re: passing sessions via POST

2002-12-05 Thread Bastian Vogt
Hi, make sure there's a session_start(); on each page. Your server should keep the session_id.If it doesn't try this: input type=hidden name=PHPSESSID value=$PHPSESSID HTH, Bastian Myrage schrieb: How do we pass sessions via post ?? I seem to lose the session once it has been submitted

RE: [PHP] Struggling with code

2002-12-05 Thread Ben C.
I have incorporated most of the suggestions. My most recent code is: ? $db_name = db1; $table_name = user; $connection = mysql_connect(localhost, user, password) or die(Couldn't connect.); $db = mysql_select_db($db_name, $connection) or die(Couldn't select database.); $sql = UPDATE user

RE: [PHP] Struggling with code

2002-12-05 Thread Ben C.
Hugh, I took away the comma from $url and it works. Everyone, Thanks for your help! Ben -Original Message- From: Ben C. [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:15 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Struggling with code I have incorporated most of the

Re: [PHP] ini function like ini_set and ini_alter

2002-12-05 Thread Franco Pozzer
Thanks Philip for the response. I can to write in step by step for to explain well my situation. 1. my application work fine in Win32 system but I must to executed it also in Linux and Mac env. It is possible. In Win32 in many case, I do not have Apache and PHP install. It is possible to have

Re: [PHP] Struggling with code

2002-12-05 Thread Hugh Danaher
Great to hear it works! I'd still consider using addslashes and the only way I've gotten it to work is to write them in like the following: url='.addslashes($url).' Looks messy but works. Oh, and stripslashes on the output too. Good Night! Hugh - Original Message - From: Ben C.

Re: [PHP] ini function like ini_set and ini_alter

2002-12-05 Thread Franco Pozzer
Thanks Janson. plaese write step by step how to do to confugure apache. remeber this. I work in Win32 system and PHp worh as CGI. I have created .htaccess like this: php_value auto_prepend_file=C:OPENFEDRA\Apache\htdocs\fedra\sv\cfg\systemvariables.php and httpd.conf modify in this

Re: [PHP] Regular Expresion Work on IP address

2002-12-05 Thread DL Neil
Dev, Nice work! Thanks for implementing the book's algorithm/proving it in PHP-PCRE, and I do like your extension into an internal/external function. I've not implemented your code (bookmarked for later) but some initial comments: - don't forget some of the other 'funnies' in the IP addressing

Re: [PHP] Struggling with code

2002-12-05 Thread liljim
Ben, consider re-working this slightly: $result = mysql_query($sql,$connection) or mysql_error(Couldn't execute query.); mysql_error() doesn't take any arguments (other than maybe a resource identifier ($connection, in this case)): it simply outputs problems, which allows you to diagnose what's

[PHP] Variables and http

2002-12-05 Thread hacook
Hi all, I have a page (to create a database) with X text fields called chpX (chp0, chp1, chp2..Etc) that posts these variables to a php file. I would like to know how can i get these values ? (I have also the $i variable that tells me what is the max X) Thanks, Hacook -- PHP General Mailing

[PHP] Checking for Overlapping Dates

2002-12-05 Thread Thomas . Churm
Hi, Background: I've created a vacation-request application for our company's intranet. When an employee requests a vacation, he has to list the name of another employee who will 'fill in' for him while he is gone. Before a vacation request can be saved in MySQL, I need to

Re: [PHP] Struggling with code

2002-12-05 Thread Jason Wong
On Thursday 05 December 2002 16:43, Hugh Danaher wrote: Great to hear it works! I'd still consider using addslashes and the only way I've gotten it to work is to write them in like the following: url='.addslashes($url).' Looks messy but works. Messy indeed ;) Why not $url =

Re: [PHP] Variables and http

2002-12-05 Thread Timothy Hitchens (HiTCHO)
Are you saying this is coming from a form entry? If so and you have PHP 4.1 then use: $_GET['chp1'] OR $_POST['chp1'] Depends if it is get or post data!! If you have pre 4.1 use the var name eg. $chp1 etc etc Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] If you need PHP hosting with an

Re: [PHP] ini function like ini_set and ini_alter

2002-12-05 Thread Jason Wong
On Thursday 05 December 2002 17:29, Franco Pozzer wrote: plaese write step by step how to do to confugure apache. remeber this. I work in Win32 system and PHp worh as CGI. I don't use PHP as CGI with Apache so I don't think I can help you here. But ... I have created .htaccess like this:

Re: [PHP] Creating dynamic names for images

2002-12-05 Thread Marek Kilimajer
I use this function: function sec_move_uploaded_file($tmp_name,$dir, $name) { if(file_exists($dir.'/'.$name)) { $ext=strrchr($name,'.'); $basename=substr($name,0,strlen($name)-strlen($ext)); $i=2; while(file_exists($dir.'/'.$basename.$i.$ext) ) { $i++;

[PHP] Re: Variables and http

2002-12-05 Thread Mattia
Hacook [EMAIL PROTECTED] ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I have a page (to create a database) with X text fields called chpX (chp0, chp1, chp2..Etc) that posts these variables to a php file. I would like to know how can i get these values ? (I

[PHP] Re: Post Variables

2002-12-05 Thread Mattia
for ($i=0; $i=12; $i++) { echo select name='$i'; echo option values; } the select... tag must stay out of the for loop. the syntax for select... is select ... option.../option option.../option option.../option option.../option /select bye Mattia -- PHP

[PHP] sessions

2002-12-05 Thread Martin Hudec
Hello, I have following problem: i have one script (index.php) which displays information (menu items) based on result from function check_valid_user(). This function checks if there is session_is_registered(valid_user). second script is for login.it saves into session

[PHP] Copy question

2002-12-05 Thread Evandro Sestrem
Hi, Can I use the copy function to copy a file to a remote computer? Ex: // copy a file from my computer to a remote computer copy('c:\teste.txt', '200.xxx.xx.xx/temp/teste.txt') How can I do it? Thanks in advance, Evandro Sestrem -- PHP General Mailing List (http://www.php.net/) To

[PHP] passing form variables with the same name

2002-12-05 Thread Doug Parker
I'm passing form variables from a script that is meant to display information to be updated in a mysql database, and it sends these to a script that updates the changed values. The problem is, I have a number of the same field being passed. For example, I have two fields in an html form -

Re: [PHP] Copy question

2002-12-05 Thread Marek Kilimajer
No, you can use ftp functions. Evandro Sestrem wrote: Hi, Can I use the copy function to copy a file to a remote computer? Ex: // copy a file from my computer to a remote computer copy('c:\teste.txt', '200.xxx.xx.xx/temp/teste.txt') How can I do it? Thanks in advance, Evandro Sestrem

Re: [PHP] passing form variables with the same name

2002-12-05 Thread 1LT John W. Holmes
I'd love to use an array, but I don't think you can pass an array value from a form and have it work on the update script - e.g. input name=Resource[0]... Ah, but you can... You can use exactly what you just wrote and have $_POST['Resource'][0] in your processing script. Loop through that

Re: [PHP] sessions

2002-12-05 Thread 1LT John W. Holmes
i have one script (index.php) which displays information (menu items) based on result from function check_valid_user(). This function checks if there is session_is_registered(valid_user). second script is for login.it saves into session session_register(valid_user).then it reloads

Re: [PHP] ini function like ini_set and ini_alter

2002-12-05 Thread Franco Pozzer
Thanks Jason. I use PHP as CGI in Win32 system because It is most stable like Apache module. I have make a same code PHP like this follow that I try ini_set and ini_aletr function instead of the -htaccess solution. The code that try it is this: ?

Re: [PHP] sessions

2002-12-05 Thread Stephen
Show us your code and don't copy straight from books. ;-) - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Martin Hudec [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 05, 2002 7:57 AM Subject: Re: [PHP] sessions i have one script (index.php) which

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
One more question... If I then wanted to do this for the other operations (such as multiplication, division, etc), how would I do that? - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'Stephen' [EMAIL PROTECTED]; 'Chris Wesley' [EMAIL PROTECTED] Cc: 'PHP List' [EMAIL

[PHP] code for my question about sessions ;) sorry

2002-12-05 Thread Martin Hudec
Hello , okay here's the code...sorry forgot to post it everything works in login.phpsession is registered...but in index, it seems that session is empty... login.php: ? session_start(); include (forum_fns.php); login($username); echo script language=\JavaScript\; //reloads index.php

Re: [PHP] code for my question about sessions ;) sorry

2002-12-05 Thread Stephen
I don't know if this will fix anything or not but instead of using check_valid_user(), try making the if statement say this: is(!isset($_SESSION['valid_user)) { echo NOT LOGGED IN; } else { echo LOGGED IN; } - Original Message - From: Martin Hudec [EMAIL PROTECTED] To: 1LT John

[PHP] Re: Variables and http

2002-12-05 Thread Tristan Carron
thanks, works perfectly - Original Message - From: Mattia [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Thursday, December 05, 2002 12:41 PM Subject: Re: Variables and http Hacook [EMAIL PROTECTED] ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Howto: run local script to update remote script

2002-12-05 Thread David T-G
eriol -- Yes, a cron job would do the trick for a process that must run at fixed and frequest intervals. The Windows scheduler might accomplish the same thing. Since we've already veered sharply off-topic, I'll go ahead and recommend that you check out dyndns.org or the like; set up your

Re: [PHP] Looping Addition

2002-12-05 Thread 1LT John W. Holmes
One more question... If I then wanted to do this for the other operations (such as multiplication, division, etc), how would I do that? Assuming you've figured out how to do an array... You'll have to loop through the values like in the code that others posted. foreach($_POST['number'] as

Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread ªüYam
Would u teach me how to setup the OpenSSL and the engine for the apache web server in order to achieve the 128 bits SSL protection? Actually, I have tried so many times but still failed to do so... First of all, there were errors occurred when I compiled the Openssl engine, It seemed looking for a

[PHP] Script not working from one computer

2002-12-05 Thread 1LT John W. Holmes
I know, PHP is executed server side, so it shouldn't matter about the computer, but... I've got a basic log in script that takes username and password and does the typical SELECT to find a match. If it's good, it sets some session variables and redirects to a main page, otherwise redirects back

Re: [PHP] Script not working from one computer

2002-12-05 Thread @ Edwin
Hello, 1LT John W. Holmes [EMAIL PROTECTED] wrote: [snip] So, I'm sure it's not the PHP script, so I'm looking for ideas of what I should check, settings wise, on the client computer? Any help is greatly appreciated. [/snip] Well, my magic PHP 8-ball says... Just kidding :) Anyway, here's a

Re: [PHP] mysql, php, checkbox

2002-12-05 Thread Adrian Partenie
Indeed, now it works, I put the form tag by mistake... Thanks, Adrian - Original Message - From: rija [EMAIL PROTECTED] To: Adrian Partenie [EMAIL PROTECTED] Sent: Tuesday, December 03, 2002 11:30 PM Subject: Re: [PHP] mysql, php, checkbox There are form/form tags around input

RE: [PHP] Script not working from one computer

2002-12-05 Thread M.A.Bond
Have you checked: Browser versions? (is the browser the same type/version as on the other machines) Is it a laptop? If so, are you using the internal keyboard with Numlock on? Is the machine in question set-up on the network correctly, i.e. has it got domain, gateway addresses etc setup - this

[PHP] Sesion Vars get reseted

2002-12-05 Thread Miguel López Dinaweb Dpto. Programación
Hi, I'm having a trouble with session vars, that i suspect that is related to garbage collection system. I start a session and make and continuos use of it, but sudently the session vars are reseted, the time when this ocurs is variable, always after passing the time of garbage recollection since

[PHP] Shopping Cart Rewrite

2002-12-05 Thread beno
Hi; PHP isn't my strong language so I need your help. I'm writing a patch to a shopping cart called fishcart http://fishcart.org The following code works well in another page. I pass the variable $related to the page that I'm patching: ? $fcrp=new FC_SQL; $fcrp-query(select relprod from

[PHP] C#

2002-12-05 Thread Wilmar Perez
Hello guys I'm sorry if this message disturbs anyone, I know it is completely off topic. I've been thinking about open a C# mailing list for I hadn't been able to find a good one so far. All I want to know is if there is enough people out there interested in joining such list. I posted

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
So would I just put this? foreach(%_POST['number'] as $num) { $output *= $num; } echo $output; That's for multiplication. - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED] Cc: PHP List [EMAIL PROTECTED] Sent: Thursday, December 05, 2002

[PHP] Safe mode and safe_mode_exec_dir

2002-12-05 Thread Rodrigo Borges Pereira
Hello all, I'm having a bit of a problem making a particular configuration with PHP and Apache. Here's the deal: I want to have php running with safe mode, so i define safe mode = On on /etc/php.ini. I have this script that i need to execute two programas, with exec(). So, in apache, i define a

[PHP] Q: Use getImageSize() on image data from email?

2002-12-05 Thread Mans Jonasson
Hi all, I am trying to use getImageSize() on imagedata I am receiving in an e-mail and collecting with imap_fetchstructure() et al. What I have in my $image variable is just the actual image data - no headers or anything, and of course getImageSize() doesn't work that way. Now, the question is

Re: [PHP] Looping Addition

2002-12-05 Thread Jason Wong
On Thursday 05 December 2002 23:05, Stephen wrote: So would I just put this? foreach(%_POST['number'] as $num) { $output *= $num; } echo $output; That's for multiplication. Yes. Wouldn't it have been quicker for you to try it than to ask? BTW make sure that none of $num is zero. --

[PHP] Newline charactes causing problems

2002-12-05 Thread Joshua E Minnie
Hey all, I know this has been asked before, and I have tried many of the solutions that were posted in the mailing archives, and also did some googling. But I can't seem to eliminate some new line characters from a string. Here is the scenario: 1. A user inputs some text into an form and

Re: [PHP] Browser going to page twice?

2002-12-05 Thread Step Schwarz
on 12/2/02 6:12 PM, Leif K-Brooks at [EMAIL PROTECTED] wrote: I'm having a weird problem. When I go to a page on my site, it often goes twice. I'm not sure if this is a client-side or server-side problem, but it doesn't happen on other sites. Is this a common problem, or am I making some

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread John Wards
On Thursday 05 Dec 2002 3:48 pm, Joshua E Minnie wrote: A load of stuff.. I just read the fist few paragraphs and got bored;-) but Have you tried doing a str_replace for \n which is new line? just replate it with a blank string John -- PHP General Mailing List

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread Joshua E Minnie
Already tried that. Doesn't seem to change anything. - Original Message - From: John Wards [EMAIL PROTECTED] To: Joshua E Minnie [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 05, 2002 10:48 AM Subject: Re: [PHP] Newline charactes causing problems On Thursday 05 Dec 2002

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread 1LT John W. Holmes
Or $notes = preg_replace(/(\r)?\n/, ,$_POST['notes']); in case it's the \r that's actually messing you up and not the \n? ---John Holmes... - Original Message - From: John Wards [EMAIL PROTECTED] To: Joshua E Minnie [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 05, 2002

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread John Wards
On Thursday 05 Dec 2002 3:54 pm, Joshua E Minnie wrote: Already tried that. Doesn't seem to change anything. how about \r John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newline charactes causing problems

2002-12-05 Thread Joshua E Minnie
I am wondering if it has something to do with the way that MySQL is storing the data. But I can't seem to find anything that is helping me when I search on MySQL related strings. +-+-+ | Joshua Minnie |Tel: 269.276.9690 | | [EMAIL

RE: [PHP] Problem with functions

2002-12-05 Thread Carlos Alberto Pinto Hurtado
? $username = victor; function test() { echo $GLOBALS[$username]; ? Carlos Alberto Pinto Hurtado IT ICA (57 1) 2322181 (57 1) 2324698 Movil.(57 3) 310 6184251 -Mensaje original- De: Victor Halla [mailto:[EMAIL PROTECTED]] Enviado el: Wednesday, December 04, 2002 6:16 PM Para:

Re: [PHP] Sesion Vars get reseted

2002-12-05 Thread 1LT John W. Holmes
- Original Message - I'm having a trouble with session vars, that i suspect that is related to garbage collection system. I start a session and make and continuos use of it, but sudently the session vars are reseted, the time when this ocurs is variable, always after passing the time of

[PHP] Re: code for my question about sessions ;) sorry

2002-12-05 Thread 1LT John W. Holmes
[snip] function login($username) { global $valid_user; $valid_user = $username; session_register(valid_user); } It _should_ work. My only guess is that maybe because you're registering something inside of a function, it's messing up, even though the variable is global. I don't do it

[PHP] Re: MySQL ?

2002-12-05 Thread Bastian Vogt
Hi, use mysql_list_tables(); HTH, Bastian Hacook schrieb: I am really sorry but i can't find any good mySQL good mailing list... How can i make a little php function to check if a table exists ? Thanks a lot, Hacook -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread bahwi
Sorry, OpenSSL is base in FreeBSD, so I didn't have to set it up myself. You can check www.openssl.org and www.apache.org. You still have to buy a cert though. For that, try: www.verisign.com and www.instantssl.com --- seems alot cheaper, no experience with them however But chances are your

[PHP] socket timeout

2002-12-05 Thread Gareth Thomas
Hi, I am attempting to timeout a socket_read() that is part of a handshaking process using socket_set_timeout(). Problem is it doesn't seem to work at all. If I switch of the handshaking write on the server side the read just sits there and doesn't time out at all. I have tried

RE: [PHP] Sesion Vars get reseted

2002-12-05 Thread Miguel López Dinaweb Dpto. Programación
I'm using php's built in functions, and i've made a very basic script thats keeps reloading minute by minute and wen it was more than 24 minutes (1440 seconds) reloading in any moment the variables gets reseted. Also the last acced time from the file were the session data is stored is updated

Re: [PHP] Sesion Vars get reseted

2002-12-05 Thread 1LT John W. Holmes
What OS are you on? ---Quote--- Note: If you are using the default file-based session handler, your filesystem must keep track of access times (atime). Windows FAT does not so you will have to come up with another way to handle garbage collecting your session if you are stuck with a FAT

[PHP] IMG SRC .ico (icons)

2002-12-05 Thread Benja
Hi everybody, The icons (.ico) are not displayed correctly by all the browsers (I.E. 5, etc...). After some research, it appears the only solution is to convert the .ico in GIF or JPEG... Do you know if a PHP script could do that conversion ? Take a icon and create a GIF or JPEG file... Thanks

[PHP] Re: socket timeout

2002-12-05 Thread Gareth Thomas
Hi, apparently this does not work with socket_read() but only with higher level socket functions (fread etc). However I have found a function called socket_set_nonblock(socketname) which apparently does something very similar, it prevents the socket_read from waiting to receive data. I simply

[PHP] paging through results of mysql query

2002-12-05 Thread Larry Brown
I know I'm trying to re-invent the wheel, but it is because I don't know how they do it. I set up a script to pull a ruleset from mysql and then loop through each row in the set. I then check each row as it loops until I get to the row number I want and start echoing rows. I create the row

RE: [PHP] paging through results of mysql query

2002-12-05 Thread John W. Holmes
I know I'm trying to re-invent the wheel, but it is because I don't know how they do it. I set up a script to pull a ruleset from mysql and then loop through each row in the set. I then check each row as it loops until I get to the row number I want and start echoing rows. I create the

[PHP] RE: [PEAR-DEV] ANNOUNCE: Metastorage object persistence API generator

2002-12-05 Thread Lukas Smith
-Original Message- From: Björn Schotte [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 6:42 PM To: Manuel Lemos Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; pear- [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re:

[PHP] A small problem with input feilds.

2002-12-05 Thread Mike
Hello everyone, I have the following html code that is generated via a script: table form action=/new/mp3/stuff/testsearch.php method=post target= trtdbArtist/b/tdtdbTitle/b/tdtdbFile Size/b/tdtdCheck/td/tr tr td width=295 valign=top pb Dj Ummet/b/p /td td width=195 valign=top

Re: [PHP] A small problem with input feilds.

2002-12-05 Thread Tim Ward
only checked checkboxes are submitted therefore you have to number the form fields if you want to keep the relationship between the arrays - this should be easy enough if the form is generated by your code. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message -

[PHP] Error in host server data stream

2002-12-05 Thread Daniel
my php code is working on one machine and not on another. I am now getting the error Warning: SQL error: [unixODBC][IBM][iSeries Access ODBC Driver]Error in host server data stream., SQL state S1000 in SQLExecDirect working machine: unixodbc 2.2.2-2 php-odbc4.1.2-7.2.4 non working:

[PHP] PHP Configuration - Can't Change Post_Max_Size

2002-12-05 Thread Roger Lewis
This is further to my post yesterday on Max File Size. I was able to set upload_max_filesize to 790 and I can therefore upload files up to that size. I would now like to increase that limit, but I am limited by post_max_size which defaults to 8M. I can't seem to change the value of

[PHP] Session and redirecting

2002-12-05 Thread Didier McGillis
I'm having some problems with sessions on this project I am doing for this one class. I know what I am doing with sessions on a certain level, as I use them with ASP and JSP apps. I notice that when I do session_start() the session SID or PHPSESSID doesnt appear until you refresh that page or

[PHP] Repeating Decimals

2002-12-05 Thread Stephen
Hello again, This is another PHP mathematical question. How can I display a bar over a number (overline) if it's a repeating decimal? When the user types in 1 by 3, they get 0.. I want it to display as 0.3 with the 3 overlined. How can I do this keeping in mind that not all numbers

Re: [PHP] Session and redirecting

2002-12-05 Thread 1LT John W. Holmes
I'm having some problems with sessions on this project I am doing for this one class. I know what I am doing with sessions on a certain level, as I use them with ASP and JSP apps. I notice that when I do session_start() the session SID or PHPSESSID doesnt appear until you refresh that page

Re: [PHP] fopen over a network

2002-12-05 Thread Joakim Andersson
Dara Dowd wrote: Thanks for the advice lads but I realise I should have been clearer. I know about header(etc..) so displaying the download dialog isn't the problem, it's how to get to the file on the file server and then open it. The file server isn't a web server. This is probably ridiculously

Re: [PHP] Repeating Decimals

2002-12-05 Thread 1LT John W. Holmes
This is another PHP mathematical question. How can I display a bar over a number (overline) if it's a repeating decimal? When the user types in 1 by 3, they get 0.. I want it to display as 0.3 with the 3 overlined. How can I do this keeping in mind that not all numbers will be

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
Continuing this even more...how would I use this same method only to subtract? What I'm doing right now would result in the following sitution. The user types in 5 as their first number. The second number is 4. Instead of returnin 1, it returns -9. It's subtracting the first number from 0, then

RE: [PHP] paging through results of mysql query

2002-12-05 Thread Larry Brown
Much Gratefulness on my part! Finally, my server and I can catch our breath. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:47 PM To: 'Larry Brown'; 'PHP List' Subject: RE:

[PHP] Re: Safe mode and safe_mode_exec_dir

2002-12-05 Thread James Hatridge
Hi Rodrigo et al... On Thursday 05 December 2002 16:09, Rodrigo Borges Pereira wrote: Hello all, directly in /etc/php.ini doesn't work either. I noticed PHP was compiled with --with-exec-dir=/usr/bin, but i suppose that what we define in php.ini (at least) overrides that. I had hell with

Re: [PHP] Looping Addition

2002-12-05 Thread Kevin Stone
You simply need the absolute value of the difference. So taking Stephen's example below.. $total = 0; foreach( $_POST['nums'] as $number ) { $total -= $number;// if users inputs 5 as first value result equals -5 $total = abs($total); // result now equals 5 } - Original Message

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
But then, if the user entered 5 - 6, it should be -1 but it'd return positive one... Is there another way? - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED]; Chris Wesley [EMAIL PROTECTED] Cc: PHP List [EMAIL PROTECTED] Sent: Thursday, December 05,

Re: [PHP] socket timeout

2002-12-05 Thread Chris Shiflett
--- Gareth Thomas [EMAIL PROTECTED] wrote: I am attempting to timeout a socket_read() that is part of a handshaking process using socket_set_timeout(). Problem is it doesn't seem to work at all. If I switch of the handshaking write on the server side the read just sits there and doesn't time

Re: [PHP] Looping Addition

2002-12-05 Thread 1LT John W. Holmes
But then, if the user entered 5 - 6, it should be -1 but it'd return positive one... Is there another way? Come on, man... this is addition and subtraction. You can't figure it out? You simply need the absolute value of the difference. So taking Stephen's example below.. $total = 0;

Re: [PHP] Q: Use getImageSize() on image data from email?

2002-12-05 Thread Morgan Hughes
On Thu, 5 Dec 2002, Mans Jonasson wrote: Hi all, I am trying to use getImageSize() on imagedata I am receiving in an e-mail and collecting with imap_fetchstructure() et al. What I have in my $image variable is just the actual image data - no headers or anything, and of course getImageSize()

[PHP] Hiding Errors

2002-12-05 Thread vernon
Is there a way to have errors in script not output to the screen? I have a page that creates an error which really isn't a problem and I don't want users to see the error message. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hiding Errors

2002-12-05 Thread Richard Baskett
If it is a function that you are getting an error on, just go ahead and put a '@' sign before the function so for example @fopen(); or you can change the error reporting in the php.ini file. I do believe there is an error reporting function also, but off the top of my head I cant remember what it

Re: [PHP] Hiding Errors

2002-12-05 Thread bahwi
I'm not too familiar with this method, but trying putting the @ symbol in front of the statement. ex: $file = @fopen(.); Hope this helps. --Joseph Guhlin http://www.josephguhlin.com/ Web Programmer / Unix Consultant / PHP Programmer -- PHP General Mailing List (http://www.php.net/)

[PHP] Passthru / exec question - '127' returned

2002-12-05 Thread Lee P. Reilly
Hi, I've ran into a problem using the passthru/exec commands with RH8. When I try and run my program (or even pwd, ls, etc) the number '127' is returned every_time. With passthru, the size of the optional return array is 0. Can anyone fathom a guess at the problem? Is the 127 value signifcant?

[PHP] Re: Passthru / exec question - '127' returned

2002-12-05 Thread Lee P. Reilly
Ahhh... no reply necessary. safe_mode :-o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hiding Errors

2002-12-05 Thread Brad Pauly
On Thu, 2002-12-05 at 14:32, vernon wrote: Is there a way to have errors in script not output to the screen? I have a page that creates an error which really isn't a problem and I don't want users to see the error message. You can also use set_error_handler to deal with errors however you

Re: [PHP] Looping Addition

2002-12-05 Thread Stephen
No, I wasn't going to ask that. But thanks for the info. :P - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED]; Kevin Stone [EMAIL PROTECTED] Cc: PHP List [EMAIL PROTECTED] Sent: Thursday, December 05, 2002 3:14 PM Subject: Re: [PHP] Looping

[PHP] Easy array stuff I think for those who can I guess.

2002-12-05 Thread Raymond Lilleodegard
Hi! I am trying to get out a value of an array that I have made from a query and deliver the value into a variable. I have made this code. Am I totally lost? while ($myrow = mysql_fetch_array($result)); { $id = $myrow['id']; $deltaker[] = array ($id); } $limit = count($deltaker);

[PHP] PHP and Ensim Question

2002-12-05 Thread Mike Bowers
I have a question regarding PHP Safe-Mode and Ensim. On my master confing (/etc/php.ini) safe mode is off. But on each domain and site I installed on the server the local config file for that siteturns safemode on. Doesn anyone know where Ensim puts the config files? I've tried to find them

[PHP] SuSE 8.0 php 4.1.2 .spec file

2002-12-05 Thread Razvan Cosma
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Maybe I should post this to the -install mlist, but it is not the installation (./configure, make...) that causes problems, but the fact that I want to keep dependencies. So - does anyone have a working $subj? Thank you very much for any

Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread Robert Mena
Thanks Bahwi, I agree with you regarding the client-side aspect. But since we are talking about a regular web-based application in php I think I will have to deal with that. The other security concerns are already addressed, such as the use of SLL to encrypt the traffic and possibly the use of

Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread bahwi
Sorry, it was late at night. I'm glad you have the SSL and everything else already taken care of. What I meant was for you to build your own session system, so that it is secure, instead of using PHP's built in session system. Someone once said that it has a 1% chance of cleaning up the

[PHP] phpOpenTracker.

2002-12-05 Thread Dave Mc
Hi, Is anyone on the list using this package? I've searched and can find no examples of its use, outside those provided on the OpenTracker Website. Is it possible to use the package on multiple hosted sites? All my virtuals show up as one site and the referers include my site.

[PHP] Re: PHP and Ensim Question

2002-12-05 Thread UberGoober
For those that don't know what ensim is, its a virtual hosting software (www.ensim.com), Mike - There is another setting in /etc/httpd/conf/httpd.conf to set safe mode off. I don't suggest you do this though. I would suggest you use the ensim bulliten board for these questions IMOHO. -- Mike

[PHP] PHP includes without access to the default directory

2002-12-05 Thread Gundamn
I have a hosted account. As such, I am unable to use the default location for files when used with the include command. So could somebody tell me how I can either make it go to a different directory, or to link to something (and how to add the variable as the filename)? Thank you in advance.

RE: [PHP] Hiding Errors

2002-12-05 Thread John W. Holmes
Is there a way to have errors in script not output to the screen? I have a page that creates an error which really isn't a problem and I don't want users to see the error message. If this is a production machine, you should have display.errors OFF in php.ini ---John Holmes... -- PHP

RE: [PHP] Easy array stuff I think for those who can I guess.

2002-12-05 Thread John W. Holmes
If this is mysql, you can use SELECT * FROM konkuranse ORDER BY RAND() LIMIT 1 To get a random row and skip all that stuff you have... ---John Holmes... -Original Message- From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 5:36 PM To: [EMAIL

  1   2   >