Re: [PHP] Is there a PHP for Dummies?

2003-03-29 Thread Haseeb Iqbal
if you don't find anything from the php manual or from the php lists then you wont find it from any book.so i say you stick to this list and php manual. Haseeb. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Importing emails

2003-03-29 Thread Jason Wong
On Friday 28 March 2003 00:15, Alexis Antonakis wrote: I am trying to set up a system whereby users can send data, in a pre-determined format, to a specified email address. I would then like to import the contents within each email into a database. The trouble I'm having is not knowing

[PHP] re: jason wong (was: locate)

2003-03-29 Thread Joseph Bannon
You really are taking advantage of people's generosity in answering your OT questions. Why are you such a jerk Jason? I'm trying to install php / mysql and I got some questions regarding error messages I get. An OT question would be me asking something like, whats the best temp for cooking a

Re: [PHP] re: jason wong (was: locate)

2003-03-29 Thread Leif K-Brooks
I have to agree with Jason Wong, this list if for PHP and PHP only. If you want to discuss something else, do it somewhere else. The volume of the list is high enough with legitimate questions... Joseph Bannon wrote: You really are taking advantage of people's generosity in answering your OT

Re: [PHP] locate

2003-03-29 Thread Nikunj Virani
Not a PHP Question. updatedb or locate -u should work on Linux systems. Regards, Nikunj Virani - Original Message - From: Joseph Bannon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:44 PM Subject: [PHP] locate How do you update the locate database?

Re: [PHP] PHP and Web Services (where to start?)

2003-03-29 Thread David Otton
On Fri, 28 Mar 2003 20:12:27 -0800, you wrote: I'm a total newbie to programming, but I picked up PHP last month and redesigned my website (I think it's great). What I want to do now, is create a price comparison engine of online bookstores using PHP and whatever web services the vendors

[PHP] COM

2003-03-29 Thread Kiswa
Server Win2000 +ISS5 +PHP Trying to get access to an access DB through COM but i wont work. there is no results generated. Can anyone help me Here is the code $rownum =0; $conn = ADONewConnection('access'); $conn-PConnect('webdb.mdb'); $result = $conn-Execute('SELECT Produkt, Artikelnr, Pris,

[PHP] ldap_read() and 'No such object'

2003-03-29 Thread Turbo Fredriksson
I'm using ldap_read() to get the namingContexts from the LDAP server. - s n i p - $sr = ldap_read($this-ldap_linkid, '', '(objectClass=*)', array('namingContexts')); if(! $sr) die(Can't find base dn - .ldap_error($this-ldap_linkid)); $entry = ldap_get_entries($this-ldap_linkid, $sr);

[PHP] Help Cookies

2003-03-29 Thread Haseeb Iqbal
hi how can i set the cookies life to non expireable and what action should i take when the user signs out? Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help Cookies

2003-03-29 Thread Daniel Guerrier
http://www.php.net/manual/en/function.setcookie.php You can set the expire date to be far of into the future. --- Haseeb Iqbal [EMAIL PROTECTED] wrote: hi how can i set the cookies life to non expireable and what action should i take when the user signs out? Regards. -- PHP General

[PHP] Re: Who is Tim O'Reilly?

2003-03-29 Thread Lars Tvedt
i think this site suits your question pretty well: http://nutshells.oreilly.com/ :) John Taylor-Johnston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Who is Tim O'Reilly? In a nutshell? http://www.oreilly.com/catalog/opensources/book/tim.html

[PHP] Problems with post data

2003-03-29 Thread Mark Douglas
I'm having problems with my post variables. Here's the page I use to submit data: FORM ACTION=test2.php METHOD=POST / INPUT TYPE=text SIZE=50 MAXLENGTH=50 NAME=new_area /nbsp;nbsp;INPUT TYPE=SUBMIT VALUE=Add New Skill Area /BR /BR / /FORM Here's the test2.php page: ?php print_r($_POST); ?

[PHP] Re: PHP and Web Services (where to start?)

2003-03-29 Thread Alexandru COSTIN
Hello, You will find our open source Krysalis platform interesting for PHP web services. http://www.interakt.ro/products/Krysalis/ We have just released the 2.4beta version with a lot of improvements. You can also read my chapter for the Wrox (it's bancrupcy is a major losss..)

[PHP] Storing a graphic file in a MySQL database

2003-03-29 Thread Phil Schwarzmann
Where can I find some information on storing a graphic file such as a JPG or GIF into a MySQL database. I'm assuming I have to convert it to a binary format and store it that way. Or maybe this isn't possible? Thanks!

RE: [PHP] Storing a graphic file in a MySQL database

2003-03-29 Thread Mark Douglas
Here's a good start: http://www.phpbuilder.com/columns/florian19991014.php3 -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 7:56 AM To: [EMAIL PROTECTED] Subject: [PHP] Storing a graphic file in a MySQL database Where can I find some

[PHP] Re: XML+XSLT or Smarty again??

2003-03-29 Thread rush
Hardik Doshi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] During reading of XML+XSLT and Smarty, i have following two questions. Actually i dont know much about Advantages of XML+XSLT in web based application. What i know is Smarty's advantages. So if you have any idea then

[PHP] Removing a string from one area to another...

2003-03-29 Thread Al
Could use some help on trying to remove mime from an incoming email. The emails (netscape or outlook) seem to clearly define... Netscape boundary=070304040709010903030405 Outlook boundary==_NextPart_000_0015_01C2F52F.777F61A0 Then remove the first occurence to the

[PHP] Image size, (not weight) help

2003-03-29 Thread Webmaster MBT
Hi: I would like to know if there is a way to know the size foan image when uploading it from a form page on PHP. I know the weight can be measured with $file_size but what Im looking for is to be able to validate if an image is more than 220pixels width or of height. Thanks in advance EJB

Re: [PHP] Image size, (not weight) help

2003-03-29 Thread Haseeb Iqbal
here is something for you from php manual The getimagesize() function will determine the size of any GIF, JPG, PNG, SWF, SWC, PSD, TIFF, BMP or IFF image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag. Returns an

[PHP] File Type Validation problem.

2003-03-29 Thread Webmaster MBT
Hi I am wondering if any one can help me please: I'm trying to validate a file when uploading it. I want only to accept .jpg and .gif files so I'm trying to use. If(($file_type = = image/JPEG) || ($file_type = = image/GIF)) But it will not let through even the .jpg or .gif images.

Re: [PHP] File Type Validation problem.

2003-03-29 Thread Haseeb Iqbal
i think the comparision is case sensitive. try strlower for image types and compare with lower cases. also note that for IE image type for jpg is pjpeg so include this to Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 -- PHP General Mailing List

RE: [PHP] Re: PHP and Web Services (where to start?)

2003-03-29 Thread John W. Holmes
Hi Alexandru, I have to sand and paint a rocking chair this afternoon. Can Krysalis help me with that? Apparently it's the answer to almost every question on this list, as I have to delete your advertising several times a day. This may be the best program ever written, but can you lay off the

[PHP] Cliend Side Support

2003-03-29 Thread Sancar Saran
Hello, I see PHP5 news on /. , and noting about client side php support. Does any one had any new news about client side PHP ? (not PHP+GTK) Thanks. -- Sancar Saran Koytur Networks System Administrator -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Problems with post data

2003-03-29 Thread John W. Holmes
I bet the web server that works is not running Apache 2, is it? Either way, it's an Apache2 and PHP bug. It's in the bug tracker somewhere... Use Apache 1.3.27 or whatever the latest is... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today.

RE: [PHP] re: jason wong (was: locate)

2003-03-29 Thread John W. Holmes
You really are taking advantage of people's generosity in answering your OT questions. Why are you such a jerk Jason? I'm trying to install php / mysql and I got some questions regarding error messages I get. Then learn how to ask a question. At least make an effort to relate it to

RE: [PHP] Cliend Side Support

2003-03-29 Thread John W. Holmes
I see PHP5 news on /. , and noting about client side php support. Does any one had any new news about client side PHP ? (not PHP+GTK) This was discussed on the list a while ago, but I think the general consensus was that it's a bad idea. Why would you want to create another client side

Re: [PHP] Can't connect to mysql

2003-03-29 Thread Jim Lucas
if you are on redhat check and make sure you have the php_mysql... rpm installed. Jim - Original Message - From: CDitty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 9:07 PM Subject: [PHP] Can't connect to mysql I just setup my home development server and I am

[PHP] combining multi-dimensional arrays from multiple parse_ini_file results

2003-03-29 Thread Merritt, Dave
All, How do I combine the multi-dimensional arrays returned from the parse_ini_file function on two different ini files? I tried: $my_array = parse_ini_file('some_file', true); $my_array[] = parse_ini_file['another_file', true); Thanks Dave [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] combining multi-dimensional arrays from multiple parse_ini_file results

2003-03-29 Thread Haseeb Iqbal
some information from php manual array_merge() merges the elements of two or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array. If the input arrays have the same string keys, then the later value for that key will overwrite

[PHP] Re: Can't connect to mysql

2003-03-29 Thread Tim Burden
MySql is not compiled into PHP What does phpinfo say? (And not just the configure line) - Original Message - From: Cditty [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Saturday, March 29, 2003 12:07 AM Subject: Can't connect to mysql I just setup my home

Re: [PHP] Session Theft

2003-03-29 Thread Beauford.2002
Aside from SSL (which I wouldn't even know where to begin at this point). Is there not a way to determine what gets sent with the headers or to block the referring address from another site? B. - Original Message - From: Haseeb Iqbal [EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED]

Re: [PHP] mysql ending at start up

2003-03-29 Thread Tim Burden
Wow, Joe! You post to the wrong list, and your problem is sufficiently unusual (you have no err log?) that we can't give quick supportive answers, and then you whine at us. Not too cool. Please use the appropriate list. - Original Message - From: Joseph Bannon [EMAIL PROTECTED]

RE: [PHP] Storing a graphic file in a MySQL database

2003-03-29 Thread Boaz Yahav
Saving Images in MySQL http://www.weberdev.com/index.php3?GoTo=ViewArticle.php3?ArticleID=3 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED] Sent: Saturday, March

[PHP] Re: Is there any easy way to take out the mime of an email...

2003-03-29 Thread Al Nutile
Sorry maybe I used the incorrect terms... When outlook sends and email, even if HTML format is chosen, the source of the email still contains these lines This is a multi-part message in MIME format. --=_NextPart_000_0015_01C2F52F.777F61A0 Content-Type: text/plain; charset=iso-8859-1

php-general Digest 29 Mar 2003 18:30:54 -0000 Issue 1967

2003-03-29 Thread php-general-digest-help
php-general Digest 29 Mar 2003 18:30:54 - Issue 1967 Topics (messages 141557 through 141600): Re: possible? 141557 by: Mike Brum 141559 by: Maciek Ruckgaber Bielecki Re: mysql ending at start up 141558 by: Don Read 141560 by: Joseph Bannon 141562 by:

Re: [PHP] webeditor

2003-03-29 Thread Miles Thompson
http://www.editworkspro.com/index.php I've not used it, and it requires IE - but the demo was impressive. Miles At 11:21 AM 3/28/2003 -0800, Daniel Guerrier wrote: Does anyone know of an open source webeditor that I can use to enter information into a text area field. I have a custom CMS and I

Re: [PHP] Is there a PHP for Dummies?

2003-03-29 Thread -{ Rene Brehmer }-
Sofar I've found everything I needed from the manual, and other than the Install PHP Guide on WebMonkey, I haven't used anything but the manual, and scarsely this list... And I do use the downloadable version of the manual, without the user comments ... But of course, I've programmed since I

[PHP] automatic link execution after form submit

2003-03-29 Thread Fritz
Dear groupmembers. I am stuck on executing automaticaly a URL-string to be sent to a perl-script. Explanation: I have a form with one textfield. After submittung the form I get the variable $indicprop from that field. $indicprop should now be sent automaticaly within a query string of the sort:

[PHP] require/include from a different directory

2003-03-29 Thread Greg Macek
Hi, I'm having a problem hopefully can be easily answered. I'm trying to organize parts of my site into different directories so that they're all not in the main folder so to speak; basically breaking out by what part of the application it is. I also have an include folder for all my main

Re: [PHP] require/include from a different directory

2003-03-29 Thread Greg Macek
It seems I have found my problem. It has to do with the files I'm trying to include. They also include other files and the directories it's trying to include files from aren't working. I've found a workaround for my situation for the time being. It's not pretty, but functional. On Sat,

Re: [PHP] Is there a PHP for Dummies?

2003-03-29 Thread Leif K-Brooks
I've seen some PHP books, and honestly, the only book I might buy would be a printed copy of the PHP manual. It's more in-depth than most books. Exactly what is your problem with it? Beauford.2002 wrote: My comment was that they do not use manuals, they use books written by 3rd parties.

Re: [PHP] Re: PHP and Web Services (where to start?)

2003-03-29 Thread Alexandru COSTIN
Hi, I have to sand and paint a rocking chair this afternoon. Can Krysalis help me with that? Apparently it's the answer to almost every question on this list, as I have to delete your advertising several times a day. I apologize for the high rate of my postings. They can be considered

Re: [PHP] require/include from a different directory

2003-03-29 Thread Greg Macek
I've considered that route, but an issue I have with that is I do most of my development work on a machine that a different directory structure than the production server (currently a Cobalt RaQ4), so the paths are different. Accommodating both would be a time consuming project for me. On Sat,

RE: [PHP] require/include from a different directory

2003-03-29 Thread John W. Holmes
try using an absolute path. I've considered that route, but an issue I have with that is I do most of my development work on a machine that a different directory structure than the production server (currently a Cobalt RaQ4), so the paths are different. Accommodating both would be a time

[PHP] Opening remote files with fopen

2003-03-29 Thread Andreas Breitschopp
Hello together! I've got problems with opening some remote files, but I really don't understand why this doesn't work (with mostly all it works)! This is one of them the fopen-function don't open: $fp = fopen(http://www.cornutopia.charitydays.co.uk/software/arcangel.xml;, r); But is also don't

[PHP] Theme selector?

2003-03-29 Thread Sensazo
Hello, can anyone help me with a php theme selector? I want it like when the seletect a theme ?theme=green that it will go into a directory and load green.php or somthing like that please help. Thankyou - Tim Hoffmeyer

Re: [PHP] Theme selector?

2003-03-29 Thread Liam Gibbs
Hello, can anyone help me with a php theme selector? I want it like when the seletect a theme ?theme=green that it will go into a directory and load green.php or somthing like that please help. Thankyou I'd store your themes in stylesheets instead. -- PHP General Mailing List

Re: [PHP] Looking functions for deal with special characters

2003-03-29 Thread Miles Thompson
Just off the top of my head ... Install Spanish language suport on the Windows machine What CodePage are you using? Check the Microsoft KB. Thinking about it a bit more, a plain ascii file may not handle Spanish because (if I remember correctly) it's single byte and

Re: [PHP] Re: How do i valadate an email address?

2003-03-29 Thread Justin French
http://www.killersoft.com/downloads/pafiledb.php?action=fileid=4 Justin On 03/27/2003 03:44 AM, Philip J. Newman wrote: How would i check that an e-mail has the right parts in it. for example. username @ domain . ext -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] upload question

2003-03-29 Thread Anthony Ritter
Greetings all, Using PHP 4.1.1 / Apache Server / MS Win 98 / IE 5.5 The following script is from Julie Meloni's book PHP Fast and Easy on page 170-174. The first part is an html form in which the user browses and chooses a file to be upoloaded to the server. The script works fine in that when I

RE: [PHP] upload question

2003-03-29 Thread daniel
there is no indication what exactly you want to know , its too ambiguous , but all i can say this book sounds like a dud, terrible explanation on file uploads, check out this pear package, it helped a great deal ,although i had to mod it to also do a check for mimetypes , as say i allowed only

[PHP] preg_replace_callback and brackets

2003-03-29 Thread Joshua Moore-Oliva
I'm kind of confused right now... when I call preg_replace_callback with a regular expression with brackets, sometimes I get an array back with multiple elements like array(3) { [0]= string(19) http://www.aol.com [1]= string(0) [2]= string(19) http://www.aol.com } and I have no

RE: [PHP] Problems with post data

2003-03-29 Thread Mark Douglas
Yes, the webserver that works is running apache2, however it's 2.0.44 instead of 2.0.43... I'm upgrading the broken one now to see if that fixes the problem. -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 10:50 AM To: 'Mark Douglas';

Re: [PHP] upload question

2003-03-29 Thread Hugh Danaher
Sounds like a Windows configuration issue and not a php issue. There's an 'open using' (or some such) option buried in the windows file menu that will let you change this. Hugh - Original Message - From: Anthony Ritter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 29, 2003

Re: [PHP] webeditor

2003-03-29 Thread olinux
Here's another that was posted recently. looks cool. http://www.interactivetools.com/products/htmlarea --- Miles Thompson [EMAIL PROTECTED] wrote: http://www.editworkspro.com/index.php I've not used it, and it requires IE - but the demo was impressive. Miles At 11:21 AM 3/28/2003

[PHP] Adding a URL

2003-03-29 Thread Scott Thompson
Hi, I am using the following code to query a database and build an HTML table. html head titleSQL Connect/title /head body ?php /* Connecting, selecting database */ $link = mysql_connect(localhost, root, ) or die(Could not connect); //print Connected successfully;

[PHP] mysql_field_table problem

2003-03-29 Thread daniel
hi guys this seems to return on the first letter of the table name ?? return @mysql_field_table($this-result,0); what could bne the problem ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] webeditor

2003-03-29 Thread daniel
here is a version i did which is a heavily modified version , http://www.electroteque.org/demo/wysiwyg/ , i think the editworks uses the new mshtml style of the dhtml editor , the buggy ativex versions are now non compliant so i should do some upgrading :D = Original Message From olinux

RE: [PHP] mysql_field_table problem

2003-03-29 Thread daniel
ok i worked out the problem possible bug ?? SELECT f.filmID, f.programID, prg.name FROM films f LEFT JOIN EPG.TblProgram prg ON f.programID=prg.programID WHERE f.alive=1 AND ((NOW()=f.start_date) AND (NOW() = f.end_date)) the mysql_field_table wont show up properly on a join or even when

RE: [PHP] Problems with post data

2003-03-29 Thread Mark Douglas
Just an FYI, 2.0.44 still isn't working on this server, while it does on another... I don't know what to do now, so I'm just going to write code to deal with this bug. -Original Message- From: Mark Douglas [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 10:38 PM To: '[EMAIL

Re: [PHP] Is there a PHP for Dummies?

2003-03-29 Thread Jason Sheets
There is a second edition of MySQL and PHP, the first edition was a very good book but was written before the super globals were introduced. I would recommend going on Amazon and bn.com and reading the reviews. There is a lot you can learn from the PHP Manual but if you are truly a beginner

RE: [PHP] Is there a PHP for Dummies?

2003-03-29 Thread daniel
i can honestly say when i was a newbie , browsing other peoples code , and also especially the pear packages helped me formulate my own style , in particular , the pear packages helped alot to understand the structure and how to build classes properly , and phpdocs helped to understand a

php-general Digest 30 Mar 2003 06:56:16 -0000 Issue 1968

2003-03-29 Thread php-general-digest-help
php-general Digest 30 Mar 2003 06:56:16 - Issue 1968 Topics (messages 141601 through 141627): Re: webeditor 141601 by: Miles Thompson 141620 by: olinux 141623 by: daniel Re: Is there a PHP for Dummies? 141602 by: -{ Rene Brehmer }- 141606 by: Leif

RE: [PHP] Adding a URL

2003-03-29 Thread Don Read
On 30-Mar-2003 Scott Thompson wrote: Hi, I am using the following code to query a database and build an HTML table. snip /* Printing results in HTML */ print table\n; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $line['email'] = 'A HREF=mailto:'