[PHP] Delete Related Table

2003-02-02 Thread Remon Redika
hi everyone.. i need delete two related table from mysql database, but i am found and error.. this following my sql language : DELETE FROM X INNER JOIN Y ON X.ID = Y.ID WHERE Y.No = 144; i found an error in INNER JOIN syntax.. but i have successfully displaying 2 Related table in SELECT synta

Re: [PHP] Re: MySQL/PHP Associative Array Insert

2003-02-02 Thread Chris Shiflett
--- Cditty <[EMAIL PROTECTED]> wrote: > A co-worker is teaching me to move to the next level > in php. I have started using associative arrays for my > scripts, but I am having a problem using them to do an > insert into MySQL. Can someone give me an example of > how to do an insert to the database

[PHP] Re: Graphic Pie Charts

2003-02-02 Thread michael kimsal
Vernon wrote: How do I create a graphic pie chart on the fly with PHP. I have already figured out how to get the variables from the database and so forth am just looking to create the graphics. Thanks If you have the GD libraries installed, you could use the jpgraph libraries - google for jp

[PHP] Re: MySQL/PHP Associative Array Insert

2003-02-02 Thread michael kimsal
Cditty wrote: A co-worker is teaching me to move to the next level in php. I have started using associative arrays for my scripts, but I am having a problem using them to do an insert into MySQL. Can someone give me an example of how to do an insert to the database using these arrays? My array is

[PHP] fread vs fgets

2003-02-02 Thread Jeff Schwartz
I'm trying to download various amount of information from handles opened by fsockopen. fgets works but takes forever on very large files because it breaks on every line. fread seems like it would work better but when I use a buffer of 1024 or 4096, it's actually far SLOWER on small files. Wha

RE: [PHP] question

2003-02-02 Thread David Freeman
Karl, > what is a winmail.dat file? Is it too much to ask that you do some of this sort of thing for yourself? Here, I'll help you... 1. Connect to the Internet (if necessary) 2. Load a web browser 3. Navigate to http://www.google.com/ 4. Type "what is a winmail.dat file" into the search b

RE: [PHP] php/mysql connection

2003-02-02 Thread John W. Holmes
Because a default install of MySQL includes an anonymous user, one with no username or password. There is also a root user with no password. Read the MySQL manual on Installation and the GRANT command on how to fix this. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professional

Re: [PHP] mysql/php query - wrox

2003-02-02 Thread Chris Shiflett
--- Anthony Ritter wrote: > I installed mysql 3.23.55 and wanted to check the user > table in the mysql db. > > The query was: > SELECT User FROM user WHERE host='localhost'; This is a PHP list. There are mailing lists for MySQL that you should check out if you are having trouble understanding da

[PHP] mysql/php query - wrox

2003-02-02 Thread Anthony Ritter
Working on: Win 98 / mysql 3.23.55 / php 4 I installed mysql 3.23.55 and wanted to check the user table in the mysql db. The query was: SELECT User FROM user WHERE host='localhost'; The output was: xx user | xx || || root

RE: [PHP] including files...

2003-02-02 Thread John W. Holmes
Another option is to place the files outside of your web root. The include files can be anywhere on your machine, you just have to give a good path when you include() them. If they are outside of your web root, then they can never be called up in a browser. Last option is to name the files with a

RE: [PHP] Help with include path

2003-02-02 Thread John W. Holmes
> I just finished loading the OS to my PC once again, installed and > configured IIS and then installed PHP 4 but now, every page I try to open > tells me: > > Failed opening required '/icaam7/lib/stdlib.php' > (include_path='.;c:\php4\pear') Since there's a slash at the beginning, it's looking f

Re: [PHP] Date and time problem

2003-02-02 Thread Larry E. Ullman
echo date ("l dS of F Y h:i:s A"); However, I need to add 12 hrs to this date befor displaying on the webpage. Can someone please help me to modify the above code? $t = time() + (12 * 60 * 60); echo date ("l dS of F Y h:i:s A", $t); Larry -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Graphic Pie Charts

2003-02-02 Thread Andrew Brampton
You will have to look up how to use the GD libraries Look up Image Functions in the manual... Or you could also google for online tutorials/classes Andrew - Original Message - From: "Vernon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 1:19 AM Subject: [P

[PHP] Listbox variable

2003-02-02 Thread Denis L. Menezes
Hello friends. I have the following code : The code works fine and the listbox is populated. But when I select a category and press the "Search" button, the variable $CategoryName is not passed to the page findbycategory.php. Can you please tell me where I am wrong? Quote \n"; } $

Re: [PHP] Text size in image

2003-02-02 Thread Tom Rogers
Hi, Monday, February 3, 2003, 8:24:00 AM, you wrote: BVB> When creating an image using the image functions how do you control the BVB> type face size? If you are using imagestring() the size is determined by the font number (1 - 5) for internal fonts. If you use true type fonts then the size is s

Re: [PHP] Date and time problem

2003-02-02 Thread Tom Rogers
Hi, Monday, February 3, 2003, 11:10:36 AM, you wrote: DLM> Hello friends. DLM> The follwing code displays the date on my webpage : DLM> echo date ("l dS of F Y h:i:s A"); DLM> However, I need to add 12 hrs to this date befor displaying on the webpage. Can someone please help me to modify the a

[PHP] Graphic Pie Charts

2003-02-02 Thread Vernon
How do I create a graphic pie chart on the fly with PHP. I have already figured out how to get the variables from the database and so forth am just looking to create the graphics. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date and time problem

2003-02-02 Thread Denis L. Menezes
Hello friends. The follwing code displays the date on my webpage : echo date ("l dS of F Y h:i:s A"); However, I need to add 12 hrs to this date befor displaying on the webpage. Can someone please help me to modify the above code? Thanks Denis

RE: [PHP] how to write clean code.

2003-02-02 Thread Luke Woollard
What about the coding standard found on PEAR.php.net LW -Original Message- From: Maxim [EMAIL PROTECTED] [mailto:Maxim [EMAIL PROTECTED]]On Behalf Of Maxim Maletsky Sent: Monday, 3 February 2003 11:19 AM To: anders thoresson Cc: Subject: Re: [PHP] how to write clean code. Coding

Re: [PHP] how to write clean code.

2003-02-02 Thread Maxim Maletsky
Coding style is a very personal issue, one codes the way he/she likes. But, for keeping the maintenance easier, K&R style (named after Kernighan and Ritchie - the Linux fathers) would probably be the best. I (personally) prefer it quite a lot, without much modifications. Here are a few references

Re: [PHP] listbox problems

2003-02-02 Thread Paul Chvostek
On Sun, Feb 02, 2003 at 04:55:08PM -0500, Matt wrote: > > > i have a listbox: > > > > > //connect to db and get query > > mysql_connect("."); > > mysql_select_db("..."); > > $query=mysql_query("select username from users); > > /*finish the listbox*/ > > while($account=mysql_fetch_array($quer

Re: [PHP] Help with include path

2003-02-02 Thread John Nichel
Make a php file with nothing but this in it phpinfo(); ?> ...and hit that in your browser. It will tell you the location of the ini that it is using. César Aracena wrote: Hi all, I'm sorry for this re-post, but I do need help with this URGENT... I just finished loading the OS to my PC

[PHP] Help with include path

2003-02-02 Thread César Aracena
Hi all, I'm sorry for this re-post, but I do need help with this URGENT... I just finished loading the OS to my PC once again, installed and configured IIS and then installed PHP 4 but now, every page I try to open tells me: Failed opening required '/icaam7/lib/stdlib.php' (include_path='.;c:\ph

[PHP] Directory size

2003-02-02 Thread Antti
How do I get the directory size? Suppose there is a function for this. antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] listbox problems

2003-02-02 Thread Sunfire
hi.. listbox prob fixed... i had echo ""; in the first file it should have been: echo ""; and in second file i had: echo 'account[username]'; should have been : echo "$account[username].."; - Original Message - From: "Matt" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]

Re: [PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Øystein Håland
See: http://www.php.net/readdir http://www.php.net/filemtime The examples within will help you write this. K, think it is possible to solve my problem. Here comes a almost similar question. After looking up the stat(9 function I cant see how I can acces the 'created date' of a file. Can I?

Re: [PHP] including files...

2003-02-02 Thread Sunfire
how do you tell it to refuse file.inc with a .taxis file? the server i will be running this on is a public server and they dont allow .taxis files i dont think...i will have to check and see - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "'Sunfire'"

Re: [PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Øystein Håland
- Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Øystein Håland" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, February 02, 2003 11:41 PM Subject: Re: [PHP] How can I display lastmodified for all my php-files? See: http://www.php.net/readdir http://www.p

Re: [PHP] index.php

2003-02-02 Thread John Nichel
Can you hit it by typing the actual filename? http://www.mydomain.com/index.php If yes, check you httpd.conf file, and make sure that you have added "index.php" as a valid index file. Justin French wrote: Strange -- can u change it to foo.php and execute it, or do you get a 404 error (not found

Re: [PHP] question

2003-02-02 Thread Justin French
on 02/02/03 7:56 AM, Karl James ([EMAIL PROTECTED]) wrote: > what is a winmail.dat file? PLEASE don't post in rich text / HTML -- you've been asked more than once PLEASE ask php-specific questions Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] including files...

2003-02-02 Thread Justin French
on 03/02/03 5:28 AM, John W. Holmes ([EMAIL PROTECTED]) wrote: > Pretty much. Only addition is to make sure filename.inc can't be viewed > through the browser. ... by having apache refuse to server all .inc files through http, via the use of a .htaccess file (assuming apache server) Cheers, Jus

Re: [PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Philip Olson
On Sun, 2 Feb 2003, Øystein Håland wrote: > > "Jason Sheets" <[EMAIL PROTECTED]> skrev i meddelandet > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Take a look at the getlastmod() function, an example of the usage would > be: > > $last_mod = date ("F d Y H:i:s.", getlastmod()); > > Then you c

Re: [PHP] index.php

2003-02-02 Thread Justin French
Strange -- can u change it to foo.php and execute it, or do you get a 404 error (not found)? Justin on 03/02/03 12:45 PM, Renato Lopes ([EMAIL PROTECTED]) wrote: > Hi! > > I have called a index.php file in a directory. > > Every time I point my browser to that directory the contents of the >

Re: [PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Øystein Håland
"Jason Sheets" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Take a look at the getlastmod() function, an example of the usage would be: $last_mod = date ("F d Y H:i:s.", getlastmod()); Then you can print or operate on last_mod any way you want, if you don'

[PHP] Text size in image

2003-02-02 Thread Brian V Bonini
When creating an image using the image functions how do you control the type face size? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] listbox problems

2003-02-02 Thread Philip Olson
On Sun, 2 Feb 2003, Sunfire wrote: > i have a listbox: > > //connect to db and get query > mysql_connect("."); > mysql_select_db("..."); > $query=mysql_query("select username from users); > /*finish the listbox*/ > while($account=mysql_fetch_array($query)){ > echo "$account[username]"; > } >

Re: [PHP] listbox problems

2003-02-02 Thread Matt
>From: "Sunfire" <[EMAIL PROTECTED]> >Sent: Sunday, February 02, 2003 4:53 PM >Subject: [PHP] listbox problems > i have a listbox: > > //connect to db and get query > mysql_connect("."); > mysql_select_db("..."); > $query=mysql_query("select username from users); > /*finish the listbox*/ >

[PHP] listbox problems

2003-02-02 Thread Sunfire
i have a listbox: $account[username]"; } ?> got it to fill listbox with usernames.. now my question is how do you use the $users variable in the php script that deals with the listbox? iat this point all i wanted to do was print the user name that was selected in the listbox but after i get how

Re: [PHP] question

2003-02-02 Thread David Rice
Karl: Your question appears to be completely off-topic but perhaps this might help you. http://www.gotquestions.com/xs/seeDocument.asp?topicID=14&documentID=696 On Saturday, February 1, 2003, at 03:56 PM, Karl James wrote:   IncrediMail -

[PHP] Re: how to write clean code.

2003-02-02 Thread rush
"Anders Thoresson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Where can I find good guidelines on how to write PHP-code that's easy to > read for a human? it is also good idea to separate html from the code, for instance by using some template engine. rush

RE: [PHP] Re: Associative vs normal arrays

2003-02-02 Thread Mark Charette
All arrays in PHP are associative; we sometimes use integers to refer to them, but the order of the array internally is not necessarily the same as the integers; indeed, any array can have "holes" in them. So the question is moot. "There are no different indexed and associative array types in PHP,

[PHP] question

2003-02-02 Thread Karl James
what is a winmail.dat file?   thanks Karl       IncrediMail - Email has finally evolved - Click Here

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread Peter Gumbrell
$strandx is defined with code at the top of the page, as follows $strandx = array('English' => array('Reading', 'Writing','Oral and Visual Communication'), 'Mathematics' => array('Number Sense and Numeration', 'Measurement', 'Geometry and Spatial Sense','Patterning and Algebra','Data Management an

[PHP] Help with include path

2003-02-02 Thread César Aracena
Hi all, I just finished loading the OS to my PC once again, installed and configured IIS and then installed PHP 4 but now, every page I try to open tells me: Failed opening required '/icaam7/lib/stdlib.php' (include_path='.;c:\php4\pear') even when my php.ini (under Windows folder) tells me that

Re: [PHP] Barcodes...

2003-02-02 Thread Cristian Ichim
Try to have a look at this: http://www.aramsoft.com/barcode/barcode-0.0.8a.tar.gz --- http://cristophus.cjb.net --- Why static, when you can go dynamic? On Sun, 2 Feb 2003, Chris Knipe wrote: > Lo all, > > Does anyone have some fonts or neat PHP code / classes to generate Code > 128-t

Re: [PHP] index.php

2003-02-02 Thread Chris Shiflett
--- Renato Lopes <[EMAIL PROTECTED]> wrote: > Every time I point my browser to that directory the > contents of the directory gets displayed instead of > the index.php file. It would help if we knew what Web server, but I will assume Apache and hope for the best. Locate your httpd.conf file, and

Re: [PHP] PHP version of ColdFusion CFParam

2003-02-02 Thread Chris Shiflett
--- Lon Lentz <[EMAIL PROTECTED]> wrote: > Is there a PHP version of the ColdFusion tag ? It has been a while since I wrote CF, but I believe just does the same thing as something like this: The PHP equivalent of this example is: if (!isset($foo)) { $foo = 'default'; } Chris -- PHP

Re: [PHP] Barcodes...

2003-02-02 Thread Cristian Ichim
You can have a look at this: http://www.aramsoft.com/barcode/barcode-0.0.8a.tar.gz --- http://cristophus.cjb.net --- Why static, when you can go dynamic? On Sun, 2 Feb 2003, Chris Knipe wrote: > Lo all, > > Does anyone have some fonts or neat PHP code / classes to generate Code > 128-

[PHP] php/mysql connection

2003-02-02 Thread Anthony Ritter
Newbie question and OT. Sorry. I am able to conncet to a mysql server with the following call to mysql_connect(). $connect=@mysql_connect("","",""); There are no parameters in the function call. Why can I connect if there are no parameters? However, if I give mysqladmin the password of: goodpa

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread John W. Holmes
Where do you define the $strandx array? What is it's value? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Peter Gumbrell [mailto:[EMAIL PROTECTED]] > Sent: Sunday, February 02, 2003

[PHP] Re: mailing with SMTP server requiring authentication

2003-02-02 Thread Manuel Lemos
Hello, On 02/02/2003 02:32 PM, Johan köhne wrote: Is it possible and if so, how to send emails through SMTP servers that require authentication (logging in)? Not via mail(). You may want to try this class for composing and sending messages that comes with a wrapper function named smtp_mail() t

Re: [PHP] how to write clean code.

2003-02-02 Thread Jason Sheets
One resource I've found valuable is the PHP Coding Standard at http://utvikler.start.no/code/php_coding_standard.html To quote the introduction: The PHP Coding Standard is with permission based on Todd Hoff's C++ Coding Standard. Rewritten for PHP by Fredrik Kristiansen / DB Medialab, Oslo 2000-2

[PHP] how to write clean code.

2003-02-02 Thread anders thoresson
Where can I find good guidelines on how to write PHP-code that's easy to read for a human? -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Jason Sheets
Take a look at the getlastmod() function, an example of the usage would be: $last_mod = date ("F d Y H:i:s.", getlastmod()); Then you can print or operate on last_mod any way you want, if you don't want to operate on the date you can just print the return of date. This information is available i

Re: [PHP] Barcodes...

2003-02-02 Thread Jason Sheets
You might take a look Pear's Image_Barcode, it uses GD so it should be able to make them in PNG. With PEAR::Image_Barcode class you can create a barcode represent given string. This class uses GD function because of this the generated graphic can be any of GD supported supported image types. htt

[PHP] safe mode problem

2003-02-02 Thread Gurvinder Singh
hi i create a php page dynamically in my php script. this page include one of my other php file. when i run the newly created script i get this error Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access file.php owned by uid 831 Is there a way to handle th

[PHP] Ringtones and php

2003-02-02 Thread John Nichel
Has anyone used php to send ringtones to cell phones? I've been to sites that are doing this in ASP, so I'm pretty sure it can be done in php. I've tried just sending headers like this... header ( "Content-Type: audio/midi" ); header ( "Content-Name: By-Tor's Song" ); header ( "Content-Version

[PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Øystein Håland
In one file I want to display filenames and when these files was last modified. I want this to happen even for files in other directories. First of all, can it be done with php (I have seen that it is possible using SSI), and in that case how? -- PHP General Mailing List (http://www.php.net/) T

[PHP] PHP PDF parser and FFDB-php SQL wrapper

2003-02-02 Thread zlu tarch
Hi All, I need to extract text ata from PDF files. Does anyone know if there is a PHP PDF parser? Also, does anyone know if there is a sql wrapper for the ffdb-php project (http://sourceforge.net/projects/ffdb-php/)? John created this wonderful FFDB in PHP, and I was wondering if there are plan

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread Peter Gumbrell
Thanks for the suggestion, John. When I implement your code, however, I get an error saying Warning: Invalid argument supplied for foreach() in home/student/peter/public_html/week4.php on line 153 where line 153 is foreach($strandx[$subject] as $strandy ) This is the code as I have it now: swit

Re: [PHP] Looping through the mysql_field_name function

2003-02-02 Thread Philip Olson
On Sun, 2 Feb 2003, Davy Obdam wrote: > Hi ppl, > > I have a problem that probably very simple, but i cannot figure it out > right now > I need to get the field names of my database. I have a query like select > * from books and now i wanna have both the result and the field name. I > have

Re: [PHP] PHP version of ColdFusion CFParam

2003-02-02 Thread Philip Olson
On Sun, 2 Feb 2003, Lon Lentz wrote: > > Is there a PHP version of the ColdFusion tag ? Go here: http://marc.theaimsgroup.com/?l=php-general&s=cfparam Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP version of ColdFusion CFParam

2003-02-02 Thread Lon Lentz
Is there a PHP version of the ColdFusion tag ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Turn off PHP for certain directories?

2003-02-02 Thread Jason Wong
On Sunday 02 February 2003 21:45, Tom Rogers wrote: > you need the php_flag bit To be explicit it should be php_flag engine Off NB there is no '=' sign. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intr

RE: [PHP] Securing php files on shared servers

2003-02-02 Thread John W. Holmes
> Major security question: > > I manage a shared Linux web server running PHP 4.2.3. Apache must have > read permissions on a php file necessary for a web application. For > example a conf.php file containing a MySQL password that is stored > outside the web directory: > > -rw-r-1 q

RE: [PHP] including files...

2003-02-02 Thread John W. Holmes
> hi was just wondering if there was a way to have a php file with all > constant variables like db mysqluser and password and a few other things > defined in a file of its own and then be able to use the variables in it > for > the project it was built for? > > the last i knew it could be done an

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread John W. Holmes
> The following code loops through a multidimensional array, printing the > subject heading and then the strand: > > foreach( $strandx as $subjectx=>$strandy ) > { > print " ".$subjectx.".\n"; > > > print " \n"; > asort( $strandy ); // sorts the strands > foreach( $strandy as $str ) > > { print

[PHP] Looping through the mysql_field_name function

2003-02-02 Thread Davy Obdam
Hi ppl, I have a problem that probably very simple, but i cannot figure it out right now I need to get the field names of my database. I have a query like select * from books and now i wanna have both the result and the field name. I have been trying with mysql_field_name, but not succesful

Re: [PHP] Loading CSV data into MySQL

2003-02-02 Thread Jason Wong
On Sunday 02 February 2003 23:10, John W. Holmes wrote: > Then don't use LOAD DATA INFILE if it's not working for you. Write a PHP > script to read each line of the file and insert it. Yes, it'll be a > little slower, but then you could also add an auto_increment or > timestamp field that'll keep

Re: [PHP] Sessions and MD5

2003-02-02 Thread Ernest E Vogelsinger
At 17:25 02.02.2003, Chris LeBlanc said: [snip] >Ok, so where is the err in my logic since I know there is one, because after >var3 is set I keep getting "MD5 has changed", or I just don't understand the >proper use of MD5, most likely both :) ---

Re: [PHP] help needed with form and mysql design.

2003-02-02 Thread Jason Wong
On Sunday 02 February 2003 22:57, anders thoresson wrote: > I'm having trouble designing a good html-form/MySQL combination for an > access rights system. [snip] You may want to have a look at this: http://phpgacl.sourceforge.net It seems to provide a very comprehensive system for setting a

Re: [PHP] including files...

2003-02-02 Thread Jason Wong
On Sunday 02 February 2003 23:53, Sunfire wrote: > hi was just wondering if there was a way to have a php file with all > constant variables like db mysqluser and password and a few other things > defined in a file of its own and then be able to use the variables in it > for the project it was buil

Re: [PHP] mailing with SMTP server requiring authentication

2003-02-02 Thread Weston Houghton
For a bit more in depth answer, I would recommend using the Mail class in Pear: http://pear.php.net/manual/en/core.mail.mail.php Should make it very easy. Wes On Sunday, February 2, 2003, at 01:10 PM, Jason Wong wrote: On Monday 03 February 2003 00:32, Johan Köhne wrote: Is it possible and

Re: [PHP] mailing with SMTP server requiring authentication

2003-02-02 Thread Jason Wong
On Monday 03 February 2003 00:32, Johan Köhne wrote: > Is it possible and if so, how to send emails through SMTP servers that > require authentication (logging in)? Yes. Search the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web D

Re: [PHP] index.php

2003-02-02 Thread Florin Dumitrescu
Hi, Add "index.php" to DirectoryIndex section in your httpd.conf file, if you're using Apache... HTH, Florin. On Sun, 2 Feb 2003 17:45:33 -0800 Renato Lopes <[EMAIL PROTECTED]> wrote: > Hi! > > I have called a index.php file in a directory. > > Every time I point my browser to that directory

[PHP] index.php

2003-02-02 Thread Renato Lopes
Hi! I have called a index.php file in a directory. Every time I point my browser to that directory the contents of the directory gets displayed instead of the index.php file. Can anyone help? Thanks in advance Renato -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] Barcodes...

2003-02-02 Thread Chris Knipe
Lo all, Does anyone have some fonts or neat PHP code / classes to generate Code 128-type Barcodes? I'm preferably looking to get the barcode generated in a PNG / GIF type format... -- me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Associative vs normal arrays

2003-02-02 Thread no-spam----me
No functions that I can think of but you can write one like this: $arrayType = 'numeric'; foreach($myArray as $key => $value) { if(!is_numeric($key)) { $arrayType = 'associative'; } } Also remember that an array can be both! Larry > Is there a way to determine if an array

[PHP] selecting from an array based on form content

2003-02-02 Thread Peter Gumbrell
The following code loops through a multidimensional array, printing the subject heading and then the strand: foreach( $strandx as $subjectx=>$strandy ) { print " ".$subjectx.".\n"; print " \n"; asort( $strandy ); // sorts the strands foreach( $strandy as $str ) { print ""; checkbox("fstrand[]",

[PHP] Re: PHP.ini help on Linux

2003-02-02 Thread Michael Mauch
Nicole <[EMAIL PROTECTED]> wrote: > Thank you. Yes, I did chmod my scripts. chmod 754 and tried 755 too. Don't > see why it should be x on the world, though. I would think if the script is > being called by its owner, then x on the owner and group should be enough, > no? The script has to be exec

[PHP] mailing with SMTP server requiring authentication

2003-02-02 Thread Johan Köhne
Is it possible and if so, how to send emails through SMTP servers that require authentication (logging in)? Thanks in advance

[PHP] Sessions and MD5

2003-02-02 Thread Chris LeBlanc
Hey Guys, I am looking for a quick way to do form validation using $_SESSION variables and MD5, but my brain is mush and my logic is all botched. Heres the scoop... I am using 3 $_SESSION variables to test for MD5. 1. $_SESSION["MD5_OLD"] 2. $_SESSION["MD5_NEW"] 3. $_SESSION["MD5_VALID"] $_SESS

[PHP] including files...

2003-02-02 Thread Sunfire
hi was just wondering if there was a way to have a php file with all constant variables like db mysqluser and password and a few other things defined in a file of its own and then be able to use the variables in it for the project it was built for? the last i knew it could be done and all i needed

[PHP] Server Up-time

2003-02-02 Thread OjMyStEr
Hi, As a novelty item on a website I have made a few lines of code for showing how in hours minuts and secoinds since the server was booted up (using C:\php\php.exe -q E:\...\set_boot_time.php value under the Run section in the Windows Registry.). The system by running a script at bootup that sets

[PHP] Securing php files on shared servers

2003-02-02 Thread Quinn Comendant
Major security question: I manage a shared Linux web server running PHP 4.2.3. Apache must have read permissions on a php file necessary for a web application. For example a conf.php file containing a MySQL password that is stored outside the web directory: -rw-r-1 qapache 3

RE: [PHP] Loading CSV data into MySQL

2003-02-02 Thread John W. Holmes
> > Then use an ORDER BY in your query. If you're relying on the database to > > spit out rows in the order they went in, then you're wrong. > > Hey man thanks for pointing that out... I know it's wrong, I didn't > design it but it's what I have to work with and I'm not being paid to > fix it

RE: [PHP] perl regex help

2003-02-02 Thread John W. Holmes
> if > . matches any character except newline (by default) > then > what can i use to match any character INCLUDING newline? Use an 's' modifier. Quote: If this modifier is set, a dot metacharacter in the pattern matches all characters, including newlines. Without it, newlines are excluded. This

Re: [PHP] using tags with php

2003-02-02 Thread Sunfire
sorry already fixed my problems but the original question was what html/php code did i need to do the stuff..all i needed was an example 3 or so line code...i dont need anybody to write my code for me...examples are fine enough to get me through my problems if i have any... btw what is your rates

Re: [PHP] help with script!!!

2003-02-02 Thread Sunfire
?", $array[id], $array[username], $array[password], $array[status], $array[notes]); } and make sure that your array indexes are right they are case sensitive in mysql...so array[id] is different than array[Id] or array[ID]... - Original Message - From: "Karl James" <[EMAIL PROTECTED]> To:

[PHP] help needed with form and mysql design.

2003-02-02 Thread anders thoresson
Hi, I'm having trouble designing a good html-form/MySQL combination for an access rights system. I'm having three tables in MySQL: members (with member information for my site), albums (with information for separate albums with digital photos on my site) and accessrights (which should function

Re: [PHP] MySQL/PHP Associative Array Insert

2003-02-02 Thread Matt
- Original Message - From: "CDitty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 11:26 AM Subject: [PHP] MySQL/PHP Associative Array Insert > A co-worker is teaching me to move to the next level in php. I have > started using associative arrays for my scri

Re[2]: [PHP] Loading CSV data into MySQL

2003-02-02 Thread Tom Rogers
Hi, Monday, February 3, 2003, 12:09:59 AM, you wrote: BVB> On Sat, 2003-02-01 at 20:07, John W. Holmes wrote: >> >> Then use an ORDER BY in your query. If you're relying on the database to >> spit out rows in the order they went in, then you're wrong. BVB> Hey man thanks for pointing that out...

RE: [PHP] Loading CSV data into MySQL

2003-02-02 Thread Brian V Bonini
On Sat, 2003-02-01 at 20:07, John W. Holmes wrote: > > Then use an ORDER BY in your query. If you're relying on the database to > spit out rows in the order they went in, then you're wrong. Hey man thanks for pointing that out... I know it's wrong, I didn't design it but it's what I have to

Re: [PHP] Base64 Encode

2003-02-02 Thread Lowell Allen
> From: "Stephen" <[EMAIL PROTECTED]> > > I have a PHP script that works on older versions of PHP but on 4.3, it > outputs nothing. Here's my code: > > echo ''."\n" > ."\n".'if (document.location == top.location)'."\n" > .' top.location="home.php?goto=' > .base64_encode($_SERVER["REQUEST_URI"])

Re[2]: [PHP] Turn off PHP for certain directories?

2003-02-02 Thread Tom Rogers
Hi, Sunday, February 2, 2003, 11:07:20 PM, you wrote: EEV> At 12:25 02.02.2003, Tom Rogers said: EEV> [snip] >>you could try >> >>php_flag engine = Off EEV> [snip] EEV> I've tried (this works): EEV> In the configurat

Re: [PHP] Base64 Encode

2003-02-02 Thread Stephen
I have register globals off, and am using both $HTTP_GET_VARS['goto'] and $_GET['goto']. The problem is not with receiving it, the problem is sending it. Forexample, a sample URL would look something like this after redirecting: http://whatever.com/index.php?goto= - Original Message - Fr

php-general Digest 2 Feb 2003 13:09:31 -0000 Issue 1859

2003-02-02 Thread php-general-digest-help
php-general Digest 2 Feb 2003 13:09:31 - Issue 1859 Topics (messages 133941 through 133989): Re: Screen Size detect?? 133941 by: Martin Re: using tags with php 133942 by: Philip Olson 133956 by: Sunfire 133967 by: David Freeman 133971 by: David Freem

Re: [PHP] Turn off PHP for certain directories?

2003-02-02 Thread Ernest E Vogelsinger
At 12:25 02.02.2003, Tom Rogers said: [snip] >you could try > >php_flag engine = Off [snip] I've tried (this works): In the configuration for the virtual host: AllowOverride All In .htaccess: AddType text/pla

Re: [PHP] processing form with unknown number of checkboxes, each with a unknown name.

2003-02-02 Thread Tim Ward
howabout making the checkboxes an array i.e. then when processing ... foreach($_REQUEST["checkbox"] as $checkbox) {... } Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: anders thoresson <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, Feb

[PHP] processing form with unknown number of checkboxes, each with a unknown name.

2003-02-02 Thread anders thoresson
Hi, I building a form which will be used to set access rights to different parts of my web album. When editing the settings for each album, like the albums name and wether or not everyone should be allowed to upload pictures to it, I also present a list of checkboxes to the administrators. One

  1   2   >