[PHP] Re: file upload problem (files > 7.5mb)

2002-03-04 Thread Joe Van Meer
Hi there:) Are you using the hidden form field with the max file limit set? Cheers, Joe :) Stefan <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > i wrote a php uploadscript and it works fine till the file is not larger > then 7.5mb. > is set the max upload file size in the uplad

[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: Sessions that last for ever

2002-02-16 Thread Joe Van Meer
Hi Nigel, you could set a cookie once they enter your site, and check at the top of each page you want accessible with this variable to see if they have it or not. Joe :) Nigel Gilbert <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > By default, a session (cre

[PHP] Re: Sessions and templating help

2002-02-16 Thread Joe Van Meer
Hi Justin, are you using at the top of every page you want to keep the session? Cheers, Joe :) Justin Deutsch <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > > I am running Apache with PHP4 as a module. I have also written a script (template.php)

[PHP] Re: array variable passing in session.

2002-02-07 Thread Joe Van Meer
Hi Peter, are you limited to using arrays? If not, try msql_fetch_row() since you are only looking for the one record, ie: the corresponding username and password record for the username and password that was passed. Hope this helps, Joe :) Peter Ruan <[EMAIL PROTECTED]> wrote in message

[PHP] Re: How to keep form inputs from being cleared

2002-02-07 Thread Joe Van Meer
Probably the easiest way is to not get to that point at all in the first place. Just use a client-side javascript form validation script to prevent un-filled fields from even occurring. Another way around ths is to create tempory session variables on the processing page, and if some of the form

[PHP] Re: Upload script with user admin

2002-02-01 Thread Joe Van Meer
I forgot to mention that all of the pics in my small app are renamed and are only 5 digits in length. So I always know I can count on the substr() and 5 digits/characters. Your situation is more than likely different than mine own, and you'll have to adjust the extraction of the file name to suit

[PHP] Re: Images and Mysql

2002-01-30 Thread Joe Van Meer
See my reply to "Image fields and PHP" on the 14th of january. HTH Joe :) David Orn Johannsson <[EMAIL PROTECTED]> wrote in message 006501c1a99a$31ce5cb0$6500640a@gandalf">news:006501c1a99a$31ce5cb0$6500640a@gandalf... I need to find out how to upload images to a database and then displaying them

[PHP] Re: application variable

2002-01-19 Thread Joe Van Meer
Hi there, I usually test at the top of the page that does my 'logging-in' to see if the variable I set for each user once they actually login is set. So if I set a variable called '$isloggedin' upon a successful login, I would check at the top of that page to see if it is set or not, if it's alrea

[PHP] Record Paging Using Arrays

2002-01-12 Thread Joe Van Meer
Hi there, I have a small php/data driven website and would like to incorporate record paing. Unfortunately I'm working with sql Server temporarily, but I'm still required to do this. So since I wasn't allowed to use the handy LIMIT in my sql statement I figured I'd dump my results into a mulitdien

[PHP] Re: File download results question

2001-11-20 Thread Joe Van Meer
Is there another way to do this...I'd like to be able to display html code on my php pages (code examples) Thx Joe "Henrik Hansen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [EMAIL PROTECTED] (Joe Van Meer) wrote: > &

[PHP] Re: File download results question

2001-11-20 Thread Joe Van Meer
I figured it out... strip_tags() function did the trick . Joe "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there. I have a small php app that allows a user to download a txt file > that's created '

[PHP] Re: odbc_num_rows always returns -1

2001-11-20 Thread Joe Van Meer
Also (I forgot to tell you) you can use that -1 number. The fact that it is -1 tells you you have records that have been retrieved. Otherwise it will return 0. Cheers, Joe :) "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

[PHP] Re: odbc_num_rows always returns -1

2001-11-20 Thread Joe Van Meer
Hi Peter, from what I hear (and what I've read) with sqlServer you'll always get a result of -1 for num_rows. To get an accurate count you'll have to use the count() on the db in a select query. That's one workaround, no doubt there are others. SELECT COUNT(my_id) FROM TABLE ... Cheers Joe :)

[PHP] Re: Download textfile

2001-11-20 Thread Joe Van Meer
Hi Arno, I was shown this code yesterday...it will allow a download of a file. Of course you'll have to change the file name :) Cheers Joe "Arno" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When I link a textfile, the textfile is opened in the browser.

[PHP] File download results question

2001-11-20 Thread Joe Van Meer
Hi there. I have a small php app that allows a user to download a txt file that's created 'on the fly' from a database. Everything is working great except for the actual results displayed on the file...it get results similar to the code below...it's insertng tags (and square characters) all over

[PHP] Download File Problem - text not appearing on downloaded file

2001-11-19 Thread Joe Van Meer
Hi there. I managed to get the prompt for a file download when a user clicks on a text link. The file downloads properly to the client machine, howevr, when I open up the file there is no content. What do I have to add to the following code to get the content sent back to the user? Thx Joe :)

[PHP] File Download Inquiry

2001-11-19 Thread Joe Van Meer
Hi there. How would I go about downloading a file off of the server. The filename will always be the same in my case. Say it is sitting in a directory called 'textfiles'. What method/function would I use to download it to a user's local system? Thx Joe:) -- PHP General Mailing List (http://ww

[PHP] Re: random images fom db

2001-11-16 Thread Joe Van Meer
ay $imagepath = odbc_result($row,1); $myArray[] = $imagepath ; } / grab a random index from $myArray here $imagearrayindex = array_rand($myArray); $randomimage = $myArray[$imagearrayindex]; print ""; print "" ; print "" ; print "" . "Welcome back " .

[PHP] random images fom db

2001-11-16 Thread Joe Van Meer
Hi there. I have s a php page that randomly grabs an image's path from a db field and displays it on my php page. My problem is that sometimes when I refresh the image won't display. So I guess you can say I'm getting intermittent images...sometimes it displays and sometimes not. I've checked all

[PHP] Re: Array From DB sQLServer

2001-11-16 Thread Joe Van Meer
got it :) thx for looking "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there. I have a table called IMAGES and I would like to retrieve all > image_ids and dump into an array. I'm new to php so any hel

[PHP] Array From DB sQLServer

2001-11-16 Thread Joe Van Meer
Hi there. I have a table called IMAGES and I would like to retrieve all image_ids and dump into an array. I'm new to php so any help would greatly be appreciated. I started my code below, but am unsure what to do next :( Thx Joe:) 'connect to db $connectionToDBid = odbc_connect("codesnipits", "j

[PHP] Re: Image Upload, renaming question

2001-11-15 Thread Joe Van Meer
wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Joe Van Meer wrote: > > > Hi there, I have an upload form on my website that works great, however I > > have come to a roadblock...how the heck do I rename the copied file? > > Everytime I upload an i

[PHP] Image Upload, renaming question

2001-11-15 Thread Joe Van Meer
Hi there, I have an upload form on my website that works great, however I have come to a roadblock...how the heck do I rename the copied file? Everytime I upload an image it overwrites the old one with the new. The code below uploads the file and displays the following: Your photo has been upload

[PHP] Re: Login/Security Problem

2001-11-14 Thread Joe Van Meer
uot;>news:[EMAIL PROTECTED]... > set a cookie, and delete it with a logout button or when the user leaves > your domain > > > "Joe Van Meer" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi there.

[PHP] Login/Security Problem

2001-11-14 Thread Joe Van Meer
Hi there. I'm new to php and would like some insight on securing a website. Upon successful login to my site (checks against database for username and password) I assign a session variable called '$islogged' to 'yes'. On all other pages throughout my site I use the following code to determine if t

[PHP] Advice Needed

2001-11-13 Thread Joe Van Meer
Hi there. I have a small php app connected to sqlServer db. The app is used as a code library for various programming languages. Basically, a code repository. My problem is this, I would like to be able to insert the code for a function (the actual code) into the db. However, I keep running into

[PHP] Destroying Session Prob

2001-11-12 Thread Joe Van Meer
Hi again, I've just completed my logout process, everything is going great but after I log out (logout.php has session_start() followed by session_destroy(). ) I get two weird symbols printing out. One is like a box and the a "B". My code is below. " ?> Any ideas why I'm getting these 2 sy

Re: [PHP] Cookies, Sessions and Login Proceess

2001-11-12 Thread Joe Van Meer
ROTECTED]... > On Mon, 12 Nov 2001, Joe Van Meer wrote: > > > Thx Christopher for replying. Ok, let me see if I understand you > > correctly... > > > > The user enters username and password on index.php, this is posted to > > login.php. On login.php after I veri

Re: [PHP] Cookies, Sessions and Login Proceess

2001-11-12 Thread Joe Van Meer
etc. It's a good practice for when you'll > have to deal with privacy & security concerns. > > ~Chris /"\ > \ / September 11, 2001 > X We Are Al

[PHP] Cookies, Sessions and Login Process

2001-11-12 Thread Joe Van Meer
Hi there, I'm new to php coming from an asp background and would like to know the easiest way to automate a login process. I have one page called 'index.php' and it contains a form with 2 elements, username and password. This page is posted to th 'login.php' and here I do a check against the datab