[PHP] Re: Help needed with calculation

2009-11-15 Thread Ben
Chris Payne wrote: Hi everyone, I'm not sure of the correct formula for this, if I have a file - just for example, that is 10245458756 bytes long and the download speed is 60KB a second, what formula would I use to calculate how many seconds/minutes/hours it would take to download the file? Mat

[PHP] Re: Help needed / failed to open stream: Permission denied

2005-10-19 Thread Mark Rees
> > > This is line 57 $file_handle = fopen("./" . $file_name, "r"); > > It seems that the user your web server runs as may not have permission to > open that file. Also, you might want to double check that ./$ile_name is a > valid path. And if you're planning to write to the file, you need to spe

[PHP] Re: Help needed / failed to open stream: Permission denied

2005-10-19 Thread David Robley
Ndagi Mutiri wrote: > Hello, > > Trying to read a binary file in MySQL database, i have the following error > : > > Warning: fopen(./) [function.fopen]: failed to open stream: Permission > denied in d:\...\download.php on line 57 > > This is line 57 $file_handle = fopen("./" . $file_name, "r");

[PHP] Re: Help Needed

2005-08-26 Thread Mark Rees
http://uk2.php.net/manual/en/function.mssql-query.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help needed

2004-07-03 Thread Jason Barnett
Completely new? Well, there are a lot of articles on the web that will get you started... just try googling for "MySQL PHP tutorial". If you're willing to put in the time you can do it yourself... but there are a lot of PHPers out there that can do it for you right now. -- PHP General Mailing

Re: [PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Where does thejavascript fit ? Nirmala P wrote: Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = '); document.write(test); } and mor

Re: [PHP] Re: Help needed

2003-06-30 Thread Nirmala P
Hi Pete Morganic , Thanks for reply. But the code is not solving my problem. May be I did not epress my problem clearly. Actually I wanted to store the returned value so that I can write it on page like { test = '); document.write(test); } and moreover the value I am passing is "material" and

[PHP] Re: Help needed

2003-06-30 Thread Pete Morganic
Nirmala P wrote: Hi list, This time i am pasting my code could any body tell where wrong I am ? if(!$db) echo("Connect to localhost mysql database failed"); if(!mysql_select_db("eshop",$db)) echo ("Selection of eshop failed on MySQL database"); $Sql = "SELECT " . $field ." FROM languag

[PHP] Re: Help needed

2003-04-01 Thread Andy
Thank you to all who helped, I have it working, well sort of. I now get the form but when I fill it in I get URL cannot be found on this server. The pages are there but it looks like i am not communicating with the database and the email is not being sent. I am now getting cross-eyed looking at al

[PHP] Re: Help needed

2003-04-01 Thread Ryan Vennell
make sure you have a semicolon on line 200 or it could cause an error on line 201. am i right in assuming that this is a switch? can you provide us with a small block of code before and after this line? maybe 5 lines on either side... -Ryan >>> Andy<[EMAIL PROTECTED]> 04/01/03 08:17AM >>> H

[PHP] Re: Help needed

2003-04-01 Thread J.Veenhuijsen
Missing ; ? Jochem Andy wrote: Hi all Can someone help? I am new to PHP and need some help, i have tried to build a members only section to my website but i am finding it very hard. I get this error when i go to the login page: Parse error: parse error in /home/.sites/112/site***/web/Members/

[PHP] Re: help needed with code!!

2003-03-10 Thread chris
On Tue, 11 Mar 2003 01:14:09 -0500, Karl James <[EMAIL PROTECTED]> wrote: Can anyone give me some pointers on why im note seeing Any output to the browser. Thanks Karl my link http://66.12.3.67/webdb/webdb13/assignment_1.php my code http://nopaste.php-q.net/7560 ultimatefootballleague.com/inde

Re: [PHP] Re: Help Needed

2003-02-04 Thread Pushpinder Singh Garcha
Hello All: Thanks again... I tried to use this and it is working fine for me. Please comment: Many Thanks -Pushpinder On Tuesday, February 4, 2003, at 12:32 PM, Goetz Lohmann wrote: Pushpinder Singh Garcha schrieb: Hello All: My question is related to authentication. I have made a login

[PHP] Re: Help Needed

2003-02-04 Thread Goetz Lohmann
Pushpinder Singh Garcha schrieb: > Hello All: > > My question is related to authentication. I have made a login system > using PHP Sessions and MySQL. Once the user gets authenticated on the > website I want to be able to allow him to see some html pages on the > website. Only users who have logge

[PHP] Re: help needed building query string based on which form fieldsthat are filled.

2003-02-02 Thread Edwin Boersma
Don't get your question right, but you get all your vars in the querystring after submitting the form. There, you should check on whether or not the var is filled (i.e. $var <> "" or so). There's no other way :-( so your guess is pretty ok. BTW: use Javascript to modify the submitted values.

[PHP] Re: help needed with forms

2002-11-21 Thread Manuel Lemos
Hello, On 11/21/2002 07:28 PM, Pushpinder Singh Garcha wrote: I am using php based forms, which collect information from the client and send it in the form a email message to the admin. I need to start using validation i.e. check whether some field/s has been correctly entered in the from. My

[PHP] Re: Help needed with attachments

2002-11-13 Thread Manuel Lemos
Hello, On 11/13/2002 02:35 PM, Pushpinder Sngh Garcha wrote: I am using MIME to send mail (http://www.phpclasses.org/mimemessage) I need to be able to send attachments that are present on the local machine. Is there a way to send attachements without uploading then to the server ?? The file ne

Re: [PHP] Re: Help needed about queries with MySQL, thanks.

2002-08-18 Thread Chris Knipe
Same here... Even though allot of people say it's not necessary... - Original Message - From: "Carsten Mohr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 18, 2002 5:22 PM Subject: [PHP] Re: Help needed about queries with MySQL, thanks. &

[PHP] Re: Help needed about queries with MySQL, thanks.

2002-08-18 Thread Carsten Mohr
Hallo, I don't know if it helps you, but normally you have to quote the variable in the SQL-Statement like: SELECT * FROM sessions WHERE sessionID = '$sessionID' Otherwise I always get an SQL-Error Jean-Marc Godart wrote: > Hello everyone, > > I am a new PHP user, from Belgium. I am trying to

Re: [PHP] Re: Help needed with hexdec();

2002-07-08 Thread Richard Lynch
>I wrote a less-limited hex2dec function years ago, and threw it up on >Sklar, >or, uhhh, the *other* PHP code repository. There were really only two, >back >then... :-) Another option would be the BC Math package which will let you compute arbitrarily large numbers, albeit a bit slower. Just h

RE: [PHP] Re: Help needed with hexdec();

2002-07-08 Thread frank
t the numbers or hex number for that matter please don't hesitate. Anyway, I'm dropping the project for now. Thanks again. -Oorspronkelijk bericht- Van: Richard Lynch [mailto:[EMAIL PROTECTED]] Verzonden: zondag 7 juli 2002 0:12 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Re: H

[PHP] Re: Help needed with hexdec();

2002-07-06 Thread Richard Lynch
>I have to convert a perl script to PHP trying to do so I get negative >values from hexdec(), If I use (int)hexdec() the numbers aren't negative >anymore, but they do not add up to what they should. >From the manual: http://php.net/hexdec "The largest number that can be converted is 7fff or

Re: [PHP] Re: help needed with headers

2002-04-27 Thread Donna Robinson
Hi, I spent ages figuring this one out so it work work on Windoze, Linux, Mac, ... and this *always* works: Create a hyperlink for user to click on: echo ' Download TXT'; On click, we come back in to this: if ( $action == '*' ) { if ( isset( $download ) ) { downloadFile( $download ); w

[PHP] Re: help needed with headers

2002-04-27 Thread Yuri Petro
Try this: header ("Content-type: text/plain"); header ("Content-disposition: attachment; filename=file.txt"); -- Kind regards, Yuri. www.AceHoster.com Quality web hosting "Vins" <[EMAIL PROTECTED]> > I would like to create a text file that doesn't save to disk but askes me to > sav

Re: [PHP] Re: Help needed with speading up a function.

2002-03-08 Thread Erik Price
On Friday, March 8, 2002, at 04:27 PM, George Whiffen wrote: > Hope you are/are not trying to crack ciphers! George, you know way more about math than I do, but I do know that trying to crack them is a good way to make sure they work, or make them stronger! Erik (who thinks his pay rate s

[PHP] Re: Help needed with speading up a function.

2002-03-08 Thread George Whiffen
William, You need a mathematician not a computer programmer. This is classic number theory which must have been very well explored. I have a very vague recollection that there may be partial proofs that there are no primes between x and y or no more than n primes between w and z for low ranges

[PHP] Re: Help needed - need to access a value from DB into all pages

2002-02-21 Thread Joe Van Meer
Hi there :) One of the most common methods of achieving this is by using session variables. First the user logins in through a form with a username and a password, you check these against the database to make sure they are who they say they are, once that is established you could create a session

[PHP] Re: Help needed - need to access a value from DB into all pages

2002-02-21 Thread Michael Kimsal
Janet, I think you probably need to investigate the concept of sessions. You were a bit sketchy on details, but it sounds like this is what you want. If you'd like more help, post to the list, or contact me directly at [EMAIL PROTECTED] (aim:mgkimsal) Wg4- Cook wrote: > Hi there, > > I am st