[PHP] preg_match and regular expression

2003-12-08 Thread fred
Hi I have problems with a regular expression. I have a html file like this: Hello somthing And i want to use preg_match to get a list of all the tags in the file: result: $list[0] = Hello $list[1] = somthing I have tryed this: preg_match('/.*(\.*\<\/div\>).*/', $contents, $list)

[PHP] preg_match and regular expression

2003-12-08 Thread fred
Hi I have problems with a regular expression. I have a html file like this: Hello somthing And i want to use preg_match to get a list of all the tags in the file: result: $list[0] = Hello $list[1] = somthing I have tryed this: preg_match('/.*(\.*\<\/div\>).*/', $contents, $list)

[PHP] post an array into another site

2003-12-08 Thread fred
Hi I have an array in php like this: $arr[0][0] = "Something"; $arr[0][1] = "Hello"; $arr[0][2] = "Hi"; It is possible to post this array to another site in a form? Or how can i do this? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Complicated Form Handling

2001-03-03 Thread Fred
racking my brains trying to figure how to associate the radio button group with the hidden pid, as to create a form that works as pid1 <-- Setting pid2 <-- Setting pid3 <-- Setting so that i could insert them into the datbase the same way, ~Fred -- PHP General Mailing List (http://www.php.n

[PHP] Radio Button Returns (Pleasre Read)

2001-03-16 Thread Fred
this is the code: $page .= ""; this is the html source generated: and this is what $pageid returns: 'on' 2 questions is why? and how do i fix it? thanks to all who take the time to awnser :-) ~Fred -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Help: Logging Into Sites (webgames)

2001-04-30 Thread Fred
I want to log into a game and access a page and parse it. To Log into the game, youd have to use a form, so how do I do this in PHP? If anyone has any ideas, or information, please help. ~Fred [EMAIL PROTECTED] ICQ 19551338 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] Help: Logging Into Sites (webgames)

2001-04-30 Thread Fred
Thank you, ill look into fsocks at php.net. ~Fred "Steve Werby" <[EMAIL PROTECTED]> wrote in message 096501c0d1dd$d324dd40$6501a8c0@workstation7">news:096501c0d1dd$d324dd40$6501a8c0@workstation7... > "Fred" <[EMAIL PROTECTED]> wrote: > > I want

Re: [PHP] PHP Training Course Offered - June 25th

2001-05-03 Thread Fred
*humps ad* Keith Elder <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Do you need to get your staff up to speed on PHP? Are you a PHP programmer, looking for a hands on approach to learning PHP? If you fit any of these conditions or just want to learn more

[PHP] Re: linux help

2001-12-26 Thread Fred
error message on google..this will usually lead to quick results Fred Melih Onvural <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i know this isn't a linux newsgroup or listing, but i've seen configuration > problems in the past

[PHP] Re: problems with urlencoding

2001-12-26 Thread Fred
Why not get rid of the stuff you do not need to send? Just send the client number and then add the Client like%% stuff on the other end. Fred <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I try to send the content of a variable

[PHP] fsockopen nntp stalls

2001-12-26 Thread Fred
problem, please let me know what you did to resolve it. Fred -- 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]

Re: [PHP] fsockopen nntp stalls

2001-12-26 Thread Fred
it may be easier. If you are aware of a good example or tutorial for implementing NNTP with IMAP I would appreciate a link. P.S. Thanks for this wonderful tool. Fred Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Why not

[PHP] Re: installing php with apache rpm???

2001-12-26 Thread Fred
This guy has some great modular php rpms that will do the trick: http://rpms.arvin.dk/php/ Fred Duane Douglas <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hello, > > i have an apache rpm installed. stuff will break if i uninstall

Re: [PHP] Re: Generate Alphabet

2001-12-27 Thread Fred
WARNING This will only work with PHP 4.1.0 or later. Fred Jerry Verhoef <[EMAIL PROTECTED]> wrote in message 1CDA86C6527BD311B91F0008C784121003D551D8@ugbiex1">news:1CDA86C6527BD311B91F0008C784121003D551D8@ugbiex1... > Sorry for the late reply but maybe you should take a loo

[PHP] Re: PHP scripts timeout

2002-01-03 Thread Fred
upsetting your code. Fred Charlesk <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Every once in a while, maybe 10 times a day, scripts timeout. Different scripts, different places in the script, different IP addresses. > I wrote an auto_appe

[PHP] Re: apache authentication

2002-01-14 Thread Fred
securing your pages, but no more insecure than using apache authentication in the first place. Fred Aaron Lake <[EMAIL PROTECTED]> wrote in message H2b900fde0f4.1011030069.cscche.che.jb.traf.com@MHS">news:H2b900fde0f4.1011030069.cscche.che.jb.traf.com@MHS... Hi, I am usin

[PHP] Re: Variable referencing/substitution

2002-01-19 Thread Fred
See the manual on references: http://php.he.net/manual/en/language.references.php $vNames[1] = &$variable Fred Gaylen Fraley <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How can this be done? > > If I have the name of a variable

Re: [PHP] PHP and MYSQL Security`

2002-01-27 Thread Fred
the document root for apache. Of course, this only works if all of your scripts use the same server, user and password. Fred Duky Yuen <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How can I secure my username and password? In 1 of my f

[PHP] php_hostconnect: connect failed

2002-02-12 Thread Fred
compiling from source (rather than installing from rpm) and using the most recent versions, the only differences between my old installation and my new installation is that apache no longer includes ssl support and php is now compiled with--mnogosearch. Any assistance is appreciated. Fred -- PHP

[PHP] Re: php_hostconnect: connect failed

2002-02-12 Thread Fred
ideas? Fred Fred <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I had been developing a script which needs to include the output of a perl > cgi script. > > Using the rpm versions of Apache 1.3.19 and PHP 4.0.6 I had no problem us

[PHP] Re: File Access & Security Issues

2002-02-14 Thread Fred
://www.zend.com/store/products/zend-encoder.php) which allows you to deploy your scripts without revealing the source code. That way, even if someone manages to get access to the scripts, they will not have access to the actual code. Fred Steven Walker <[EMAIL PROTECTED]> wrote in message

[PHP] mail() problem with email

2002-04-29 Thread fred
Hello, I have a pb with mail() function. my script run ok on a linux but not on a nt: "); mail("fred <[EMAIL PROTECTED]>", "the subject", "message"); ?> On my windows nt server I can only run: I have an error as soon as i use eaml like: mail <

[PHP] Max execution time error after script ends

2002-05-14 Thread Fred
This seems very odd to me for two reasons: First, the max_execution_time is set to 0 (no limit). Second, the script has otherwise executed successfully and should simply terminate. Has anyone had similar experiences? Any advice on how to correct this problem? Fred -- PHP General Mailing

[PHP] Re: EXPIRATION PROBLEM; PLEASE HELP ME !!!

2001-11-13 Thread Fred
n.php should check for the username and password variables. If they do not exist just show the login form. If they do exist, check them for validity and if they are valid register the session and print a link to main.php or use javascript to redirect to that page. Fred Gustavo Luis Pereira

[PHP] Including declare statements that contain variables

2001-11-14 Thread Fred
ile after the variables have actually been set to their desired values. Fred -- 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]

Re: [PHP] Including declare statements that contain variables

2001-11-14 Thread Fred
r example: PrintMenu("Students",GetData(StudentsByClass)); will print a menu of student names whereas: PrintAttendance(GetData(StudentsByClass)); would print an attendance report Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: Including declare statements that contain variables

2001-11-15 Thread Fred
particular project I am developing. One thing is certain though, the thing that excites me about programming is the ability to devise clever and abstract ways to accomplish a task. I tend to offset the obtuse nature of my code with a plethora of inline comments, just in case a maintainer (or I) ha

[PHP] Re: Books for PHP and MySQL Class

2001-11-15 Thread Fred
I agree with Chris and Richard, "PHP and MySQL Web Development" by Welling and Thomson, from SAMS. ISBN 0-672-31784-2 is a great book which contains primers for both PHP and MYSQL and then many chapters on how to use them together in real world environments. Chris Lott <[EMAIL PROTECTED]> wrote

[PHP] Re: alzheimers and confused

2001-11-16 Thread Fred
, the logic becomes more complex. Fred Jtjohnston <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > OK kids, I'm not 19 ... my old brain gets tired easily and my wife is > complaining that I stay up too late PHPing :) > Putting the rest

[PHP] Re: wunderground and php

2001-11-16 Thread Fred
Try doing a Google search: http://www.google.com/search?q=weather+php+script There are plenty of PHP weather scripts already out there. Find one that does most of what you want and change it to fit your needs. Scott Atkins <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PR

[PHP] Re: installing php on apache

2001-11-17 Thread Fred
you point Konqueror at that file it is not using Apache to render it, it is just treating it as a text file to view. Check Apache's httpd.conf file to see what the document root is set to and either change it to var/www/html or move your file to the directory that it is set to. Fred Douglas M

[PHP] Re: free online PHP books ?

2001-11-17 Thread Fred
You may not be able to get an entire free book, but Amazon has lots of sample chapters from several PHP books here http://www.amazon.com/exec/obidos/search-handle-form/103-3308426-8753433 Trongduc <[EMAIL PROTECTED]> wrote in message 004d01c16f94$3ddcd490$190b10ac@d">news:004d01c16f94$3ddcd490$

[PHP] Re: How to get mysql-result into a php variable

2001-11-17 Thread Fred
I'm not sure where you found the function mysql_store_result, but it is not a built-in PHP function and that is why you are getting an error. If you just want to return Match if one or more rows in the group match the first name use something like this: function LookupFirstname ($FName, $Group,

[PHP] Re: alzheimers and confused

2001-11-17 Thread Fred
Brilliant. For those of us unfamiliar with the laws of de Morgan: http://www.unc.edu/~rowlett/Math81/notes/DeMorgan.html Fred Jimmy Elab <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > de Morgan and Boole, not Alzheimer nor Confusius > &g

[PHP] Re: What's wrong with this date ?

2001-11-17 Thread Fred
all of the column types includeing date, varchar and char. Good Luck Fred Trongduc <[EMAIL PROTECTED]> wrote in message 000201c16ff6$ff36e470$1b0b10ac@d">news:000201c16ff6$ff36e470$1b0b10ac@d... > hi there, > I try to save a record (in the "date" type in MySQL) from t

php-general@lists.php.net

2001-11-19 Thread Fred
17 should equal 16 1 and 10001 equals 1 My script has no problem generating the expected result here. Perhaps this problem arises from the loosely typed nature of PHP variables, but I do not see how it could. Any pointers would be appreciated. Fred -- PHP General Mailing List (http:

php-general@lists.php.net

2001-11-19 Thread Fred
that they be cast before the expected result can be had. I am not sure if this was intentional, but it certainly is confusing. I think a blurb in the manual would be very helpful. Fred Fred <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >

[PHP] Re: From static to dynamic

2001-11-19 Thread Fred
To answer your first question, some search engines, such as Google, will crawl URLs that contain GET variables. Others will not. There is a way around this by creating links such as index.php?/Men/Shirts/Blue/XLarge and using the $PATH_INFO variable to parse the URL and spit out the needed vari

php-general@lists.php.net

2001-11-19 Thread Fred
assed via GET without the need for casting. That is just not the case with the bitwise operators. Fred -- 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-mai

[PHP] Re: Strange variable.....

2001-11-19 Thread Fred
Look in the Manual under Variable Variables. Fred Gerard Samuel <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey all. Im debugging a script that was written by someone else, and > alot of the variable has 2 '$$' in

[PHP] Re: \|/ $PHP_SELF

2001-11-19 Thread Fred
ven if the variable is set in an included file. The reason is that the included file is included before the variable is evaluated. Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Re: DATE Questions

2001-11-20 Thread Fred
rather advanced database applications. Fred Sjoerd Van Oosten <[EMAIL PROTECTED]> wrote in message C9F89DA57491D511BDAF00E0180C348103BFE5@ESADM01">news:C9F89DA57491D511BDAF00E0180C348103BFE5@ESADM01... > > Hello, > > I'm working on a project planning system and what i w

[PHP] Re: \|/ $PHP_SELF

2001-11-20 Thread Fred
If you just need the filename of the include file you can set it in code by assigning it to a variable at design time. Something like $ThisPage = "include.php". You could also do this for the entire path, but it would need to be changed whenever you put the script in a different pla

Re: [PHP] Re: DATE Questions

2001-11-20 Thread Fred
aRow); PrintDay($Attend,$Credit,$t,$mon,$year); mysql_free_result($Result); } else { echo $t; } echo "";}} }// for -col if (($row + 1) != ($end+1)) echo "\n"; else echo ""; }//

Re: [PHP] Re: DATE Questions

2001-11-20 Thread Fred
Glad to help. I'd be interested to know how it works out. Fred Sjoerd Van Oosten <[EMAIL PROTECTED]> wrote in message C9F89DA57491D511BDAF00E0180C348103BFF1@ESADM01">news:C9F89DA57491D511BDAF00E0180C348103BFF1@ESADM01... > Fred thanks a lot, yo

[PHP] Re: include "http" problem

2001-11-20 Thread Fred
I may be wrong, but I believe that allow_url_fopen needs to be turned on in the config file for this to work. Fred Mike Webby <[EMAIL PROTECTED]> wrote in message 011001c171f6$26da0380$0200a8c0@nay">news:011001c171f6$26da0380$0200a8c0@nay... include ("http://www.somesit

[PHP] Re: Cookies and Variables

2001-11-20 Thread Fred
EGPCS". Setting this to "GP", for example, will cause PHP to completely ignore environment variables, cookies and server variables, and to overwrite any GET method variables with POST-method variables of the same name. Fred Richard S. Crawford <[EMAIL PROTECTED]> wrote in messa

[PHP] Re: Testing for the presence of HTML

2001-11-20 Thread Fred
user will write their own as they fill in a form, even if they do enter other html such as links. Fred Richard S. Crawford <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My database contains a field which may or may not contain HTML code, depen

[PHP] Re: auto form submit

2001-11-20 Thread Fred
I know of no way to do this automatically with PHP. I think you can pull it off with some javascript. Wm <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all, > > if i pass data through a form (post) to a php script(script must be > separate from form) >

[PHP] Re: Doubt in script to upload files to server

2001-11-20 Thread Fred
user you normally login as. If you do not have root access you will need to write a php script to delete the files for you. Since all PHP scripts run as the user Apache is run as, files created using PHP can also be deleted with PHP. Fred Vedha Kannan <[EMAIL PROTECTED]> wrote in m

[PHP] Re: PHP / MYSQL & AUTHORWARE

2001-11-21 Thread Fred
t for WDDX. Fred Geoff <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all > > I've asked the Authorware user group but got no response, and am wondering > whether anyone else has tried this. > > I use mainly PHP (somet

Re: [PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Fred
username before displaying the edit buttons Fred Mark <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... using apache to do the authorization is the cheap and easy way. If you want something more advanced you should use a cookie. There's prob

[PHP] Re: php mysql blob fields

2001-11-21 Thread Fred
If insert works and update does not, I would guess it is because you spelled the table name wrong in the update query. Fred Rodrigo Peres <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have a table in mysql that stores some i

Re: [PHP] Installing PHP with windows

2001-11-21 Thread Fred
want to be able to test their PHP scripts on a windows box, but do not want to have to install all of the software seperately. Find it here: http://www.phpgeek.com/modules.php?op=modload&name=Downloads&file=index&req= viewdownload&cid=1 Fred Rob Bennion <[EMAIL PROTECTED]> w

Re: [PHP] Re: AddType x-httpd-php to Root Dir ...Solution

2001-11-21 Thread Fred
se in auto_prepended files, you can use it with little or no modification on any site you desire. Fred Jeff Hill <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks for the suggestion, but no, it was something else. What else it > was,

Re: [PHP] Re: Authentication Options: Was AddType x-httpd-php ...

2001-11-21 Thread Fred
, I can tell you from experience and common sense that there is no way that autoprepending a simply session script is going to take more system resources than the apache authentication method outlined above. Fred Jeff Hill <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

[PHP] Re: header("Location:...") much faster then http-equiv="refresh"? too fast?

2001-11-21 Thread Fred
. Since I am not familiar with your set up or code, you will need to read the mysql docs to determine if this is in fact the situation you find yourself in. Fred Avi Schwartz <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have a s

[PHP] Re: POP commands

2001-11-22 Thread Fred
Read the RFC for POP3. http://www.hio.hen.nl/cgi-bin/show-gz/rfc/pop/rfc1725.txt.gz Fred Yura <[EMAIL PROTECTED]> wrote in message 3BFD3620.32115.1873696@localhost">news:3BFD3620.32115.1873696@localhost... > Hi, > > does anybogy know pop3 box management commands? I'm

[PHP] Re: What does &var mean ?

2001-11-22 Thread Fred
It indicates that the variable was passed by reference rather than by value. Fred Girish Nath <[EMAIL PROTECTED]> wrote in message 000f01c1736c$714abc30$015b10ac@AERIS">news:000f01c1736c$714abc30$015b10ac@AERIS... > Hi > > I've been looking at some classes an have c

[PHP] Re: Yet Another Mysql Problem

2001-11-22 Thread Fred
Please post a verbatim copy of the error. We have no way of knowing what is happening with such a generic description of the problem. Fred Stephen Phillips <[EMAIL PROTECTED]> wrote in message 000e01c17379$643f6d80$21937ad5@stevephillips">news:000e01c17379$643f6d80$21937ad5@steve

[PHP] Re: Yet Another Mysql Problem

2001-11-22 Thread Fred
factors. Fred Stephen Phillips <[EMAIL PROTECTED]> wrote in message 002001c1737b$6b36a700$21937ad5@stevephillips">news:002001c1737b$6b36a700$21937ad5@stevephillips... lol, ok (sorry I've been staring at a text file looking for bugs for 3 hours) this is the type of error msg phpm

[PHP] Re: Need advide on partnership agreement for a php application...

2001-11-27 Thread Fred
submit the form the results immediately appear in an excel spreadsheet. This situation worked out for both of us because I am in no way responsible for compatibilty or performance issues with other applications and yet they have the ability to use the data in any manner they wish. Fred George

[PHP] Re: Using a file to make an array

2001-11-27 Thread Fred
There is no need to reinvent the wheel here. MySQL has a built in function to do exactlywhat you want to do. Check out LOAD DATA INFILE here: http://www.mysql.com/doc/L/O/LOAD_DATA.html Fred Yoed Anis <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

[PHP] Re: Updating rows in a MySQL database with PHP

2001-11-27 Thread Fred
think they contain. Fred Chris Janes <[EMAIL PROTECTED]> wrote in message 000e01c177c1$79a78620$a25ffea9@d7e5f4">news:000e01c177c1$79a78620$a25ffea9@d7e5f4... > Ok, this may well turn out to be a total newbie question. But it's got me > stumped. > > I'm t

[PHP] Re: php and tables

2001-11-27 Thread Fred
You have already pulled the data into an associative array with the column name as the array key. Use array_keys() to spit out the column names at the top of your table. Fred B <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i have creat

[PHP] Re: fatal error

2001-11-28 Thread Fred
this error the second time it is included. Fred William Sanchez Sanchez <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I got that, Why it could be? Fatal error: Cannot redeclare reporte_llamada() in c:\Inetpub\wwwroot\online\includes\funciones.php

[PHP] Re: fsockopen() prob

2001-11-28 Thread Fred
t;(\r|\n)","",$buffer); 134 return $buffer; 135 } Fred Yura <[EMAIL PROTECTED]> wrote in message 3C054EE3.19234.2726172@localhost">news:3C054EE3.19234.2726172@localhost... > I have a global variable > $socket_open = fsockopen($pop_server, 110, $errno, $er

Re: [PHP] RE: Php connection with mysql?

2001-11-28 Thread Fred
le and it exists on localhost where I have granted privileges. Fred -- 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] Re: include or fread a binary file?

2001-11-28 Thread Fred
Simply echo whatever html you would normally use to embed the animation in an iframe. Fred Bryant Brabson <[EMAIL PROTECTED]> wrote in message 001201c1785f$dd959ac0$648e90d1@bryant">news:001201c1785f$dd959ac0$648e90d1@bryant... I have a flash file that I need to embed in an ifram

[PHP] Re: MySQL to Excel with mutiple sheets

2001-11-28 Thread Fred
heets. Unfortunately these files are binary and are not easily created. As a result it may be impossible to accomplish what you ask. Fred Brian Lee <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a script that searches a MySQL DB and

[PHP] Re: Recommended book on PHP & e-commerce

2001-11-28 Thread Fred
detailed chapter and sample code for building a shopping cart. Fred Martin Wright <[EMAIL PROTECTED]> wrote in message 01c1786d$dde9cce0$5aa3fea9@serv">news:01c1786d$dde9cce0$5aa3fea9@serv... > Can someome recommend such a book to a relative newcomer. I'm looking >

[PHP] Re: Confirm mysql support option with php install

2001-11-28 Thread Fred
if, for instance, you have used some advanced configuration options when installing mysql or have patched the mysql sources. Fred <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, guys. Just want to confirm when I install all the other librar

[PHP] Re: Explanation

2001-11-28 Thread Fred
expression before the ? evaluates to false then the whole expression evaluates to the expression after the : This is a really effective shorthand for if..then...else if you are just going to assign different values to a variable based on the outcome of the if statement. Fred Gerard Samuel <[EM

[PHP] Re: db connect

2001-11-29 Thread Fred
How are you passing the name of the database? Are you replacing 'sample_db' in the line: $link_id = db_connect('sample_db'); in show_more_db.php? If so, then I do not see where there would be a problem. Fred Ian <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

[PHP] Re: CSV output displayed in Excel or similar.

2001-11-29 Thread Fred
treat the fields. Fred Matthew Clark <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a PHP script that outputs several lines of comma separated values.. I > would like to display this output in Excel without having to write the

Re: [PHP] in_array error

2001-11-29 Thread Fred
You will not be able to use this and many other functions on a php3 only machine. For your convenience, all of the function references in the manual state which versions of php support them and which do not. Fred Steve Osborne <[EMAIL PROTECTED]> wrote in message 008401c17916$dd87f200$

[PHP] Re: db connect

2001-11-29 Thread Fred
I'm not sure what that script is supposed to accomplish, it seems a bit obfuscated and useless to me, nevertheless it correctly used the supplied database rather than the default one when I tested it. You may want to make sure that your sample_db actually exists. Fred Ian <[EMAIL P

[PHP] Re: Help with directory !

2001-11-30 Thread Fred
The first one looks like a *nix directory and the second one looks like a windows direcrory. Perhaps it will work if you switch your slashes around. Fred De Necker Henri <[EMAIL PROTECTED]> wrote in message 3A8ED7A62794D311AA7700508B6164EC08DCA3F2@SCPTS01

Re: [PHP] chown/chgrp not working

2001-11-30 Thread Fred
I tackled a similar problem by running a root cron job that does the chown and chgrp every x minutes. Fred Paul Warner <[EMAIL PROTECTED]> wrote in message 023601c179b6$a35bdd80$[EMAIL PROTECTED]">news:023601c179b6$a35bdd80$[EMAIL PROTECTED]... > Ahh, it is not running with ro

[PHP] Re: I'm getting frustrated with this.

2001-11-30 Thread Fred
you have more specific information for this list. Fred Chip Wiegand <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I just want a simple page that pulls the data from a database (got that > working fine, no problem), > and on that

[PHP] Re: file_exists problems

2001-12-01 Thread Fred
file_exists takes a string argument. /images/$filename is not a string. try "images/" . $filename instead. Fred Prolog <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I had a script that was running beautiful that simply called up

[PHP] Re: LOAD DATA INFILE help

2001-12-01 Thread Fred
that is the case then you need to add (passcode) tot he end of your query so that mysql knows that the fields in the text file are to be inserted in the passcode column. mysql will then insert an id and the passcode for each row. Fred Tyler Longren <[EMAIL PROTECTED]> wrote in message 0

[PHP] Re: SAPI

2001-12-01 Thread Fred
What is not working? Are you getting an error message? Fred Obasi Adande George <[EMAIL PROTECTED]> wrote in message 000801c17ab6$5d77bf90$b6d45ed1@tbird">news:000801c17ab6$5d77bf90$b6d45ed1@tbird... I have been trying to get apache2 to load the php4 module for a while

[PHP] Re: Cause of:`T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR'

2001-12-01 Thread Fred
with 2149 lines of code ;) Fred Jason G. <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello all, > > I have ran across this error a number of times, and for those of you who > are or will pulling out your hair, read on. > >

[PHP] Re: Updating parts of files without rewriting them

2001-12-01 Thread Fred
database settings must be in a file is because you obviously cannot access the database without them (unless you use default settings in the php.ini file). Fred Jeff Lewis <[EMAIL PROTECTED]> wrote in message 002801c17ad9$7ec8b820$0100a8c0@cr983033a">news:002801c17ad9$7ec8b820$0100

[PHP] Re: HTTP_SESSION_VARS != Work

2001-12-01 Thread Fred
either the global or session variable was changed in the first part of your example. Fred Andrew Forgue <[EMAIL PROTECTED]> wrote in message 002c01c17af4$a765f390$6701a8c0@ajf">news:002c01c17af4$a765f390$6701a8c0@ajf... Hello, Slight Problem: -- This piece of code: session

[PHP] Re: best way to handle a form with 60 fields !!!

2001-12-02 Thread Fred
d to the other tables. Find a tutorial on the web about database normalization to learn how to best design your databases. This should be the first step in the application design process and all other work should be based on it. Good luck and happy PHPing. Fred Masudi Olivier <[EMAIL PRO

[PHP] Re: PHP Bulletin Boards...how they work.

2001-12-02 Thread Fred
though bulletin boards are not the most complex of applications, they require a knowledge of many many PHP and MySQL basics. Take the time to learn those basics before trying to swallow the whole thing. Good luck. Fred Anthony Ritter <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]&q

[PHP] content disposition and internet exploder

2001-12-02 Thread Fred
is to work correclty on any of them. Has anyone had success in getting IE to use the correct filename when downloading dynamically generated files? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

Re: [PHP] content disposition and internet exploder

2001-12-02 Thread Fred
LOL Of course it worked. Open Source outwits MS yet again. Fred Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You could just trick it with a URL like: > > http://your.domain.com/script.php/query.csv > > IE wil

Re: [PHP] content disposition and internet exploder

2001-12-02 Thread Fred
That works fine in IE but does not work in NS, undoubtedly because it does not conform to the RFC. Fred Jason Murray <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I am attempting to allow users to download csv files that are created &g

[PHP] Re: problems with looping array

2001-12-03 Thread Fred
Strings in your sql query must be quoted. Try this instead: >$result = mysql_query("SELECT * FROM ar >LEFT JOIN company on ar.company_id=company.company_id >LEFT JOIN scale on ar.scale_id=scale.scale_id >WHERE item_number = \"$item[$index]\")";

[PHP] Re: Something wrong with the file() command.

2001-12-03 Thread Fred
When you attempt to print or echo an array the result is simply "array". You have to iterate through the elements of the array to see what each element contains. Read the array chapter in the manual for more information. Fred Jose <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] Re: Extract all fields of a table to vars of same name

2001-12-04 Thread Fred
with these variables: $First, $Second, $Third containing the value of the respective fields. Fred Baloo :0) <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Someone came with a very clever solution to simplify the extraction of > all > fie

[PHP] Re: CURL functions

2001-12-04 Thread Fred
It would be difficult at best to answer your question without first knowing two things: 1. What did you expect it to do? 2. What did it actually do? Fred Stefan Isarie <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey, > > I&#

[PHP] Re: Simple Question: PHP, MySQL, HTML Form and NULL

2001-12-04 Thread Fred
escape sequence for NULL. In the script that inserts the form data just add something like: if ($Date == "") $Date = "/0"; somewhere before the insert. Fred <[EMAIL PROTECTED]> wrote in message BB6D932A42D6D211B4AC0090274EBB1DA0F139@GLOBAL1">news:BB6D932A42D6D211

[PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
he httpd.conf for Apache, although they *might* change it if I know what to ask them... ;-) TIA Fred /* New to Linux (nine months) and PHP (2 weeks) but loving it! */ == Uploaded file name: $File_name\n"); pri

Re: [PHP] Uploading to Apache server from VB

2001-12-05 Thread fred
See my post today about a file upload problem, which includes a complete script to do this (and more). My script works, but times out on very large files, otherwise it is a champ... Fred On Mon, 03 Dec 2001 15:16:09 -0500, Jim wrote: > http://www.php.net/manual/en/features.file-upload.

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
Sorry, no can do, I can't stand SPAM, and I don't need any more email. Just reply to the newsgroup. I can read it there, and it may help others - that is what newsgroups are for!;-) On Wed, 05 Dec 2001 03:57:05 -0500, Mirek Novak wrote: > fix your email to receive answers FIRST! > > M.N.

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
Now that you've "helped" me, go and help someone else...please. And yes, I did read the manual and several books on PHP already. Have you? On Wed, 05 Dec 2001 04:09:00 -0500, Mirek Novak wrote: > so, RTFM > > HTH > > M.N. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

  1   2   >