RE: [PHP] Getting uploaded filename & directory

2001-11-12 Thread Luboslav Gabal ml.
> In setting up a form to allow a user to upload a file, > upon submission of that form, you can get the actual > file name that is being uploaded by accessing the > variable: > > $userfile_name > > (assuming the form element's name where the user > specifies the file is "$userfile"). > > Is th

[PHP] problem with getting data from NNTP server

2001-09-16 Thread Luboslav Gabal ml.
I have script for getting header of article from NNTP server using sockets: "; } ?> output have look so: ... Path: csnews.vslib.cz!not-for-mail From: "Antonin Mohaupt" <[EMAIL PROTECTED]> Newsgroups: cz.comp.lang.php ... but it is only ... Path: csnews.vslib.cz!not-for-mail From: "Antonin Moh

RE: [PHP] dynamic menu possible?

2001-09-16 Thread Luboslav Gabal ml.
> What I want to do is have a drop-down menu where the options are files This is matter of HTML or JavaScript > located in a folder on the server that changes as items are added to or > removed. Then the user can select an item from the menu, submit, and that > page will load. This is script f

RE: [PHP] Comining variables into a single string

2001-09-16 Thread Luboslav Gabal ml.
> Greetings to All: > > I'm inexperienced, although enthusiastic about using PHP. I want to write > data more effectively to a file. > > This doesn't work: fputs($frank, "Testing " $whatever " more testing > \n\n\n"); > Right now, all I know is using three separate fputs statements. I'd like t

RE: [PHP] Help with database queries

2001-09-17 Thread Luboslav Gabal ml.
> Hi, > > need some help with the code below. I am thinking of reusing this for > building a thumbnail gallery from a database. > > First, is the code actually good? Do i do something that will slow down the > responses? > > Second, can anyone help me with a code sample to implement that will limi

RE: [PHP] Counting

2001-09-17 Thread Luboslav Gabal ml.
> I'm using php/mysql. I want to be able to count the number of records that > match something. > I've used mysql_num_rows() and it does work, but is there a better way? > Something like COUNT(*)? I've tried to use it, but all I get is Resource ID > #1 or something similar. Any ideas for the best

RE: [PHP] NEED HELP: select box repeat

2001-09-17 Thread Luboslav Gabal ml.
> OK I am trying to write a script that will bring data out of a database into > a select box. But what I need it to do is repeat 5 times or more depending > on what it brings out. I can only get it to display one select box. Here is > what I got so far: > > require 'common.inc'; > // Connect to

RE: [PHP] Help with database queries

2001-09-17 Thread Luboslav Gabal ml.
- Pôvodná správa - Od: "Luboslav Gabal ml." <[EMAIL PROTECTED]> Komu: "Daniel Alsén" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Odoslané: 17. zárí 2001 23:39 Predmet: RE: [PHP] Help with database queries > > Hi, > > >

[PHP] closing persistance connection

2001-09-20 Thread Luboslav Gabal ml.
How to close persistance connection to MySQL server ? Luboslav Gabal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] htmlentities

2002-04-06 Thread Joerg Hanke [ML-php]
hi! i've got the following problem and hope one of you is able to help me solving that: i've got a system in php that writes data (e.g. variable-name = $data) to a mysql database. there are two more scripts: one for displaying the data and one for writing the data into a formular. the displaying

[PHP] redirector

2002-04-06 Thread Joerg Hanke [ML-php]
hi, i've got the possibility to create alias subdomains, which redirect all to the document-root... e.g.: http://adam.domain.com redirects to http://domain.com i want to redirect the users who access http://adam.domain.com to http://domain.com/home/adam how to do this best in php?? reguards,