php-general Digest 29 Oct 2002 05:55:20 -0000 Issue 1672

2002-10-28 Thread php-general-digest-help
php-general Digest 29 Oct 2002 05:55:20 - Issue 1672 Topics (messages 121753 through 121818): 4.3.0pre2 Mcrypt Compile failure 121753 by: Mitch Vincent ereg_replace??? 121754 by: Shawn McKenzie 121756 by: John W. Holmes 121764 by: Shawn McKenzie Re: Free com

[PHP] Please Help

2002-10-28 Thread Erich Kolb
I would like to offer a free webhosting account to the first 25 people who apply. We are in the process of starting an internet services company and would like to offer these accounts provided that the applicants are willing to provide some feedback on our service. All free accounts include:

Re: [PHP] standardization across apps?

2002-10-28 Thread Peter J. Schoenster
On 29 Oct 2002 at 0:14, taylor wrote: > i might be crazy, but why don't the many CMS, forum, link directory, etc > packages integrate with a unified user manager? is this possible? is > there perhaps an xml standard for contact datatypes that could be used? I'm not sure I understand you but I

Re: [PHP] Regex question...

2002-10-28 Thread Leif K-Brooks
I need to do a few other things that require regex though, like making either an a or an @ match (people love to get around filters by using symbols instead of letters...). @ Edwin wrote: Hello, "Leif K-Brooks" <[EMAIL PROTECTED]> wrote: [snip] But that doesn't work at all. Any ideas on h

RE: [PHP] standardization across apps?

2002-10-28 Thread eNetwizard Developers Team
XML, by definition is an eXtensible Markup Language. That means the markup associated with a document can be whatever that person wants it to be. I think a better question to ask is if there are any projects out there who are working toward a standard XML document type for contact information, an

Re: [PHP] Regex question...

2002-10-28 Thread @ Edwin
Hello, "Leif K-Brooks" <[EMAIL PROTECTED]> wrote: [snip] > But that doesn't work at all. Any ideas on how to do this? [/snip] Would't it be easier (and faster) to use http://www.php.net/manual/en/function.str-replace.php ? - E -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Passing the variables ...

2002-10-28 Thread @ Edwin
Hello, "Mukta Telang" <[EMAIL PROTECTED]> wrote: [snip] > I tried using echo($_GET['$textbox']) instead of printf statement in > hello.php.. [/snip] Try $_POST['textbox'] instead. (You were using "method=post".) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] standardization across apps?

2002-10-28 Thread taylor
i might be crazy, but why don't the many CMS, forum, link directory, etc packages integrate with a unified user manager? is this possible? is there perhaps an xml standard for contact datatypes that could be used? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] Passing the variables ...

2002-10-28 Thread Mukta Telang
I have written followong code in hello.html: enter your name: and following in hello.php: hello %s!",$textbox); ?> This script works fine with php in redhat 7.2 system but does not work in solaris 7 ! I have done the php installation... apache version: 2.0.40 php version: 4.

[PHP] Regex question...

2002-10-28 Thread Leif K-Brooks
In my never-ending battle against swearing on my site, I'm trying to use a regex that changes any word that ends with abc to xyz. I'm using: $tofilter = "This is a string containing the word 123abc."; $tofilter= eregi_replace("[^ ]abc","xyz",$tofilter); But it returns "12xyz". It clearly pick

Re: [PHP] Week numbers

2002-10-28 Thread Justin French
The optional second parameter for date() is a timestamp. So, you convert whatever date you have (eg 29.10.2002) into a unix timestamp (probably using strtotime() or maybe you'll have to rearrange the string first), then supply it to the date() function. Justin on 29/10/02 1:57 AM, Davíð Örn Jó

Re: [PHP] One mail function, multiple recipients

2002-10-28 Thread dwalker
Agreed. Case in point, when I attach more 9 email addresses to one email message via Netzero's servers (1 of 7 different email accounts I have), the delivery fails with a message that reads something like: ' Blah Blah Blah. Too many recipients. Blah Blah Blah.' I could be mistaken about servic

Re: [PHP] Recommend a merchant/store product

2002-10-28 Thread Jason Reid
oscommerce http://oscommerce.com/ supports mysql as the database. i've set it up a few times, never implemented it into production, but its fairly easy to use, and from what i've seen extremly customizable. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message -

Re: [PHP] Making string upper/lowercase with regex?

2002-10-28 Thread Leif K-Brooks
I don't want the entire string upercase, just part of it as defined by a regex. Chris Shiflett wrote: Why must you use ereg_replace? Does your question mean that you, for whatever reason, cannot use strtoupper() instead? Leif K-Brooks wrote: I need a way to make a string be replaced with its

Re: [PHP] Making string upper/lowercase with regex?

2002-10-28 Thread Chris Shiflett
Why must you use ereg_replace? Does your question mean that you, for whatever reason, cannot use strtoupper() instead? Leif K-Brooks wrote: I need a way to make a string be replaced with its uppercase version using ereg_replace. Any ideas? -- PHP General Mailing List (http://www.php.net/)

[PHP] Recommend a merchant/store product

2002-10-28 Thread Support @ Fourthrealm.com
Hey everyone, For years I have used a fantastic merchant ( http://www.ihtmlmerchant.com ), which is feature packed and easy to setup and use. It's written in a competing language called iHTML ( http://www.ihtml.com ). As I am getting considerably proficient at coding PHP, I find that I require

[PHP] Making string upper/lowercase with regex?

2002-10-28 Thread Leif K-Brooks
I need a way to make a string be replaced with its uppercase version using ereg_replace. Any ideas? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.p

Re: [PHP] Plus sign changing to space in html form

2002-10-28 Thread Chris Shiflett
This is true, but the + itself should also be encoded. I did a quick test, and when I post a form variable called test with a value of 1+1=2, the HTTP request looks like this: POST /test.php HTTP/1.1 Host: 127.0.0.1 User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020916 Accept

RE: [PHP] looking for Powerfull Document Management Systems in PHP...

2002-10-28 Thread Peter Houchin
yeah phpnuke, phpnuke.org postnuke, postnuke.com phpwebsite, phpwebsite.appstate.edu there's probably a few more out there too > -Original Message- > From: PHP Beginner [mailto:bphpdev@;icem.cu] > Sent: Tuesday, 29 October 2002 11:14 AM > To: php - List > Subject: [PHP] looking for Powe

[PHP] looking for Powerfull Document Management Systems in PHP...

2002-10-28 Thread PHP Beginner
Hi guys, I wonder if anyone of you know about any PHP system (free or Open Source, etc.) that can offer the features (or similar ones) one can enjoy from Microsoft SharePoint Technologies. tanks in advance, Rub.

[PHP] What causes this?

2002-10-28 Thread Jimmy Brake
Hi, I am getting this error randomly, just stops and starts. Error: Unable to select database: crm :Commands out of sync; You can't run this command now './configure' '--with-oracle=/opt/oracle/product/8.1.6/' '--with-oci8=/opt/oracle/product/8.1.6/' '--enable-sigchild' '--enable-track-vars'

RE: [PHP] Have part not be replaced in regex?

2002-10-28 Thread John W. Holmes
> I'm using some regexes for swear filtering, but I have a problem. I > need to look for ab[ct] and have it replaced by xyz but not replace the > [ct]. I.e. it would be replaced by xyzc or xyzt. Any ideas? $new_string = preg_replace("/ab([ct])/","xyz\\0",$old_string); or $new_string = ereg_re

RE: [PHP] Plus sign changing to space in html form

2002-10-28 Thread John W. Holmes
The plus sign is used to signify a space in some URL encoding. PHP is probably thinking the text is encoded and it's removing the plus sign. Not sure on a solution. ---John Holmes... > -Original Message- > From: Stan [mailto:stann@;pobox.sk] > Sent: Monday, October 28, 2002 6:27 PM > To:

Re: [PHP] Have part not be replaced in regex?

2002-10-28 Thread Leif K-Brooks
I guess it wouldn't be too hard for me to switch to perl reg... Timothy Hitchens wrote: Can you use or know perl reg?? HiTCHO has Spoken! Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] -Original Message- From: Leif K-Brooks [mailto:eurleif@;buyer-brokerage.com] Sent: Tuesday, 29 Oct

Re: [PHP] Add picture in DB

2002-10-28 Thread Frank W.
Have you used a SQL-Statement like: INSERT INTO `tablename` VALUES ('',LOAD_FILE('$file') to insert it with load_file? I used it without problems that way. Christian Ista wrote: Hello, I have a form, with 2 inputs ( a type "file" and a type "text") and a submit. When I submit I receive an e

[PHP] Have part not be replaced in regex?

2002-10-28 Thread Leif K-Brooks
I'm using some regexes for swear filtering, but I have a problem. I need to look for ab[ct] and have it replaced by xyz but not replace the [ct]. I.e. it would be replaced by xyzc or xyzt. Any ideas? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to de

Re: [PHP] Plus sign changing to space in html form

2002-10-28 Thread Tom Woody
I did your little test and couldn't reproduce the problems you are having. as+df gets returned correctly. Test server: Apache 1.3.23-11 w/ PHP 4.1.2-7 (RH7.3 rpms) On Tue, 29 Oct 2002 00:26:39 +0100 "Stan" <[EMAIL PROTECTED]> wrote: > When i post a string containing plus sign with htmp form to a

RE: [PHP] preg_replace (underscore)

2002-10-28 Thread John Meyer
i've just used str_replace for underscores and it's worked wonderfully. -Original Message- From: Shawn McKenzie [mailto:nospam@;mckenzies.net] Sent: Monday, October 28, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: [PHP] preg_replace (underscore) Why does preg_replace("^\W^","",$str); not

[PHP] preg_replace (underscore)

2002-10-28 Thread Shawn McKenzie
Why does preg_replace("^\W^","",$str); not remove undescores _ ? Are they alpha-numeric? I had to do this preg_replace("^\W|_^","",$str); TIA, Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Plus sign changing to space in html form

2002-10-28 Thread Stan
When i post a string containing plus sign with htmp form to a php scritp, the '+' is changed to space. e.g: i enter 'as+df' to a text input but $_POST[] returns 'as df' instead. It must be in php or apache configuration bcause i have this problem only on sytem with FreeBSD. On windows it works as e

Re: [PHP] Array Question

2002-10-28 Thread PHP List
This doesn't seem to work for anything past the first key: echo array_search(0,$myarray); will print 'a'; None of these give me anything: echo array_search(1,$myarray); echo array_search("1",$myarray); echo array_search(1,$myarray,true); echo array_search("1",$myarray,true); so how do I get 'd'?

Re: [PHP] Re: Add picture in DB

2002-10-28 Thread Stephen
Since PWS uses Inetpub, I'm guessing you're using PWS and I would recomend against using it. I use PHPdev 5 which works like a charm. I'd recomend switching. http://www.firepages.com.au/devindex.htm Thanks, Stephen http://www.melchior.us - Original Message - From: "Raymond Lilleodegard"

RE: [PHP] New Error?

2002-10-28 Thread Peter Houchin
instead of using break use exit() where u have ur breaks and will work fine > -Original Message- > From: Marek Kilimajer [mailto:kilimajer@;webglobe.sk] > Sent: Tuesday, 29 October 2002 1:30 AM > To: PHP > Subject: Re: [PHP] New Error? > > > Break an continue are for loops (while,for ...

RE: [PHP] newbie: apache prob...

2002-10-28 Thread Peter Houchin
check your permissions on htdocs etc and also that u haven't blocked ya self outta there in the httpd.conf > -Original Message- > From: John Nichel [mailto:jnichel@;by-tor.com] > Sent: Tuesday, 29 October 2002 8:09 AM > To: Mr. BuNgL3 > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] newbie: ap

Re: [PHP] Array Question

2002-10-28 Thread Rasmus Lerdorf
I think you are looking for array_search() On Mon, 28 Oct 2002, PHP List wrote: > Hi, > Lets say I have a simple array like this: > $myarray = array("a"=>"b","d"=>"c"); > > echo $myarray[0] will return 'b'; > > How can I get the name of the index? so: > > echo $myarray[something] would return 'a'

[PHP] Array Question

2002-10-28 Thread PHP List
Hi, Lets say I have a simple array like this: $myarray = array("a"=>"b","d"=>"c"); echo $myarray[0] will return 'b'; How can I get the name of the index? so: echo $myarray[something] would return 'a'; I know I can do a list($key,$value) but I don't need to loop through the array, I just need t

[PHP] Re: Add picture in DB

2002-10-28 Thread Raymond Lilleodegard
Hi! I'm not sure about your error, but I have heard that it's best to store the filepaths in the database. Best regards Raymond "Christian Ista" <[EMAIL PROTECTED]> wrote in message news:01c27ec2$ad371a60$0200a8c0@;p3portable... > Hello, > > I have a form, with 2 inputs ( a type "file" and a

Re: [PHP] Webserver-Administration

2002-10-28 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is one I just came acrossits even in php. http://webcp.can-host.com/ ~Pauly On Monday 28 October 2002 03:45 pm, Adam Williams wrote: > look up webmin on your favorite search engine. > > Adam > > On Mon, 28 Oct 2002, [ISO

[PHP] Browscap.ini

2002-10-28 Thread Scott Fletcher
Any anyone tell me about this? I know it is about browser detection software or something. What I want to know is is it good for general use? Can it be used on UNIX server for PHP to interface with? Does it require a lot of update or something? I saw on that website that describe about BrowseH

[PHP] fread & EOF

2002-10-28 Thread Martin Adler
Hi, this php-script should read from a server (that i've written in perl) until it receives the EOF signal. My server sends the EOF-signal by print $client "\n\004"; # \004 = EOF to my script but fread wouldn't stop reading and i don't have any ideas why. Is php using an other sign for EOF?

Re: [PHP] newbie: apache prob...

2002-10-28 Thread John Nichel
Even though this should go to an apache list Do you have an "index.html" (or .php or whatever you have it set to reconize in the httpd.conf) file in the document root directory? Mr. BuNgL3 wrote: Hi... I have a little problem... when i do //localhost/ on the browser i don't get nothing it gi

RE: [PHP] forcing .html pages to go through the PHP parser

2002-10-28 Thread Daniel Kushner
AddType application/x-httpd-php .php .html (in the httpd.conf file) Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Monday, October 28, 2002 4

[PHP] forcing .html pages to go through the PHP parser

2002-10-28 Thread John Meyer
how do you configure apache to force all .html pages to go through the php parser? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie: apache prob...

2002-10-28 Thread Jonathan Sharp
Check what user apache is running under (usually nobody) in which case you have to give it world read access (chmod 0755) or make apache run under that user. (second method is perferred). I'm assuming you're running linux. -js Mr. BuNgL3 wrote: Hi... I have a little problem... when i do //loc

Re: [PHP] Webserver-Administration

2002-10-28 Thread Adam Williams
look up webmin on your favorite search engine. Adam On Mon, 28 Oct 2002, [ISO-8859-1] Jochen Kächelin wrote: > How can I use PHP to admin my Apache over the browser? > > How do big providers allow their customers to admin their > subdomains, forwarders, ftp-accounts

[PHP] Add picture in DB

2002-10-28 Thread Christian Ista
Hello, I have a form, with 2 inputs ( a type "file" and a type "text") and a submit. When I submit I receive an error, like this : ':\\Inetpub\\wwwroot\\test\\small2158.jpg)' at line 3 Could you tell me what can I do ? The better solution is save the picture in the database or save the link to

[PHP] Webserver-Administration

2002-10-28 Thread Jochen Kächelin
How can I use PHP to admin my Apache over the browser? How do big providers allow their customers to admin their subdomains, forwarders, ftp-accounts over the webbrowser? Apache should not run under the root account, or?! -- Jochen Kaechelin -- PHP General Mailing List (http://www.php.

RE: [PHP] Apache authentication and adding a user.

2002-10-28 Thread Daniel Kushner
Try this: http://phpclasses.websapp.com/browse.html/package/387.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Monday, October 28, 2002 3

[PHP] Apache authentication and adding a user.

2002-10-28 Thread John Meyer
Hi, is there any way to use PHP to programmatically add a user in terms of Apache user authentication? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] newbie: apache prob...

2002-10-28 Thread Mr. BuNgL3
Hi... I have a little problem... when i do //localhost/ on the browser i don't get nothing it gives me "Forbidden - u don't have permission to access"... but i was the one that installed the apache server!! do u know what's the problem? Thanks -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] How to pass data without headers

2002-10-28 Thread Drew Kime
Chris Shiflett wrote: You can use the explode() function to separate the content part of the response, which is what you're interested in. Here's a similar example that only returns the content: http://shiflett.org/tutorials/php_post.txt Thanks, that's nearly what I need. But it seems there a

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Raymond Lilleodegard
Ok, thanks a lot! Thats what I thougt. Regards Raymond "Tom Woody" <[EMAIL PROTECTED]> wrote in message news:20021028122633.34f2979e.woody@;nfri.com... > While I am not exactly sure of everything you are asking I think I had > a similar problem... > > You need to convert the \r to \n before you p

Re: [PHP] Mail() function

2002-10-28 Thread Rick Emery
I don't know what "Formulário de Cadastro" is, but it doesn't belong as fourth parameter. That parameter is for From, CC, BCC headers - Original Message - From: "Rodrigo de Oliveira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 12:39 PM Subject: [PHP] Mail()

Re: [PHP] Mail() function

2002-10-28 Thread Adam Voigt
Try: mail($Destino,"$Assunto",$Mensagem); Adam Voigt [EMAIL PROTECTED] On Mon, 2002-10-28 at 13:39, Rodrigo de Oliveira wrote: > Hi guys I'm having the following problem: > > I have a mail() function that works by itself, coming from a html form, but when i >tryied to put it inside a more compl

[PHP] Mail() function

2002-10-28 Thread Rodrigo de Oliveira
Hi guys I'm having the following problem: I have a mail() function that works by itself, coming from a html form, but when i tryied to put it inside a more complex script it doesn't work. The script is at the end of the message and it is suposed to receive data from a html form and use it to in

Re: [PHP] ereg_replace???

2002-10-28 Thread Shawn McKenzie
Thanks! Why does preg_replace("^\W^","",$str); not remove undescores _ ? Are they alpha-numeric? I had to do this preg_replace("^\W|_^","",$str); TIA, Shawn "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:000201c27eab$f4ea0500$7c02a8c0@;coconut... > > I need to replace all NON alpha

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread 1LT John W. Holmes
www.php.net/nl2br ---John Holmes... - Original Message - From: "Tom Woody" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 1:26 PM Subject: Re: [PHP] How to get linefeed from textfields registered in mysql? > While I am not exactly sure of everything you are

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Chris Shiflett
Or maybe you are looking for the nl2br() function ... Tom Woody wrote: While I am not exactly sure of everything you are asking I think I had a similar problem... You need to convert the \r to \n before you put it into the DB. On Mon, 28 Oct 2002 19:30:15 +0100 "Raymond Lilleodegard" <[EMAIL

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Tom Woody
While I am not exactly sure of everything you are asking I think I had a similar problem... You need to convert the \r to \n before you put it into the DB. On Mon, 28 Oct 2002 19:30:15 +0100 "Raymond Lilleodegard" <[EMAIL PROTECTED]> wrote: > Hi! > > I have made a guestbook to my website drive

[PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Raymond Lilleodegard
Hi! I have made a guestbook to my website driven by php and mysql. But I don't know how to get the text as it is written in the textfield before it is sent to mysql. So is it possible to save the "hits on enter" in the database? Best regards Raymond -- PHP General Mailing List (http://www.ph

RE: [PHP] for??????

2002-10-28 Thread Davy Obdam
Hi Bsantos, Why not use the following code: for ($i="0";$i".result['$i'].""; } I hope this helps. Should be easier then using $number_of_selected_cols_minus_one because how do u get this one? Probably like this, right? $number_of_selected_cols_minus_one = mysql_num_rows($result)-1; This

RE: [PHP] for??????

2002-10-28 Thread SHEETS,JASON (HP-Boise,ex1)
I believe there is some confusion between columns (fields) and rows. LIMIT is generally used to limit the returned rows, not fields. If you want only specific columns then select only the ones you want "SELECT id,firstname,lastname,login FROM users ORDER BY lastname,firstname". Jason -Origi

RE: [PHP] Get HTML data from an URL

2002-10-28 Thread John W. Holmes
> fopen() works but I'm still having problems. I need to get the text posted > by a Dynamic Page. (ie. http://www.test.com/test.php?newsID=2 ) I'm no genius, but how about fopen('http://www.test.com/test.php?newsID=2','r') How about trying a few things before you post. ---John Holmes...

RE: [PHP] ereg_replace???

2002-10-28 Thread John W. Holmes
> I need to replace all NON alpha-numeric characters in a string. > > Example: >input: "-What's Up Doc?" >output: "WhatsUpDoc" > > I received this in a previous post, but it doesn't work: >$str = ereg_replace("/[^[:alnum:]]/i", '', $str); Use preg_replace() with that string, not ere

[PHP] Re: Free compiler for Win

2002-10-28 Thread Shawn McKenzie
There is a GNU gcc compiler for windows. -Shawn "Marcello Lupo" <[EMAIL PROTECTED]> wrote in message news:0210281543120J.00435@;hunters... > Hi to all, > anyone know a good free complier for win 2000/NT to compile PHP and so on? > thanks, > Bye > MArselo -- PHP General Mailing List (http://ww

[PHP] ereg_replace???

2002-10-28 Thread Shawn McKenzie
I need to replace all NON alpha-numeric characters in a string. Example: input: "-What's Up Doc?" output: "WhatsUpDoc" I received this in a previous post, but it doesn't work: $str = ereg_replace("/[^[:alnum:]]/i", '', $str); Thanks! Shawn -- PHP General Mailing List (http://www.ph

[PHP] 4.3.0pre2 Mcrypt Compile failure

2002-10-28 Thread Mitch Vincent
OS 10.2.1 - Latest libmcrypt. Seems to have something to do with compatibility with older mcrypt libs, but even after some hacking I couldn't get it to work right... gcc -Iext/mcrypt/ -I/Users/mitch/desktop/php-4.3.0pre2/ext/mcrypt/ -DPHP_ATOM_INC -I/Users/mitch/desktop/php-4.3.0pre2/include

Re[2]: [PHP] for??????

2002-10-28 Thread Martin Hudec
Hello John, ohim really tired then...should go home ;)))than that $fields should do the work$fields="id,name,email"; for example.:))) and to count how many fields are u using...i think array should do the trickyou can count it then how many fields

RE: [PHP] for??????

2002-10-28 Thread John W. Holmes
> Now, I've created a funtion which controls how many fields (cols) may be > seen by user. Some like this: > > > function select_query ($fields, $table) { > $result = ("SELECT $fileds FROM $table"); > } > > Well, I hould like to control how many fields my query will use. > > For example: if I c

RE: [PHP] Get HTML data from an URL

2002-10-28 Thread Francisco Vaucher
Hi again, fopen() works but I'm still having problems. I need to get the text posted by a Dynamic Page. (ie. http://www.test.com/test.php?newsID=2 ) This page give some sort of data like Exchange Values and others. So I need a function that can retrieve this info. Any help ?? Regards, f. --

Re: [PHP] for??????

2002-10-28 Thread Martin Hudec
Hello Bsantos, BP> Now, I've created a funtion which controls how many fields (cols) may be BP> seen by user. Some like this: BP> function select_query ($fields, $table) { BP> $result = ("SELECT $fileds FROM $table"); BP> } maybe mistype in SELECT fileds should be fieldsalso try using select

Re: [PHP] Get HTML data from an URL

2002-10-28 Thread Foldenyi Tamas
> I need to know if there is a way to get HTML data from an URL. http://www.php.net/manual/en/function.fopen.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] for??????

2002-10-28 Thread Bsantos PHP
Hi people: Can anybody help me with this? : I've got a query in a table: $result = mysql_query("SELECT username, email FROM users"); which should bring about 300 lines (each for an user). Now, I've created a funtion which controls how many fields (cols) may be seen by user. Some like this: f

[PHP] Get HTML data from an URL

2002-10-28 Thread Francisco Vaucher
Hi people, I need to know if there is a way to get HTML data from an URL. i.e. I need to get to stock values from the page of wall street. So I think that I can use some code to connect to that URL and get the data. It's this possibly ? Regards, and thanks in advance! f.

Re: [PHP] How to pass data without headers

2002-10-28 Thread Chris Shiflett
You can use the explode() function to separate the content part of the response, which is what you're interested in. Here's a similar example that only returns the content: http://shiflett.org/tutorials/php_post.txt Drew Kime wrote: I've used the example function in the 08 Jul 200 user note at

Re: [PHP] Free compiler for Win

2002-10-28 Thread Maxim Maletsky
PHP is ANSI compliant, thus, theoretically, any compiler should be able to build it. Though, MS Visual Studio 6 is the one used for PHP windows version. That's not free. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish

[PHP] How to pass data without headers

2002-10-28 Thread Drew Kime
I've used the example function in the 08 Jul 200 user note at http://www.php.net/manual/en/ref.sockets.php and have a problem with the headers. The '$buf' value includes the headers sent by 'search.php'. When I echo it, the server first sends the headers, then it echos the contents of '$buf' w

Re: [PHP] Re: confirm subscribe to php-general@lists.php.net

2002-10-28 Thread Steve Purkiss
Whoops! Sorry about that. Hello everyone -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: confirm subscribe to php-general@lists.php.net

2002-10-28 Thread Steve Purkiss
On 28 Oct 2002 16:13:29 - [EMAIL PROTECTED] wrote: > Hi! This is the ezmlm program. I'm managing the > [EMAIL PROTECTED] mailing list. > > I'm working for my owner, who can be reached > at [EMAIL PROTECTED] > > To confirm that you would like > >[EMAIL PROTECTED] > > added to the php-ge

Re: [PHP] "Please Wait"

2002-10-28 Thread Chris Shiflett
Here is an example that might help get you started: http://shiflett.org/tutorials/php_flush.txt James Taylor wrote: Just curious if anyone out there knows how to do a "Please wait" type screen while the script is running in the background.. Like say PHP is doing a large select from a database,

Re: [PHP] Failing to Make MySQL Query on Submit

2002-10-28 Thread Martin Hudec
Hello user, ill take a look only into this udi> // UPDATE THE DATABASE udi> $sql = "UPDATE fantasytoo SET o1 = \"$o1\",w1 = \"$w1\",c1 = udi> \"$c1\",o2 = \"$o2\",w2 = \"$w2\",c2 = \"$c2\",en = \"$en\",wc = udi> \"$wc\",ot = \"$ot\" WHERE realname = \"$realname\" "; udi> } well here u

[PHP] Re: Sessions are acting strangely

2002-10-28 Thread Joel Boonstra
> Hi there, > Im looking for ANY help regarding his problem - I find this interesting to > say the least. > > I recently switched to a new hosting company - they are running php 4.1.2 - > register globals is ON. > the sessions automatically expire without closing the window. if you load > index.php

[PHP] Failing to Make MySQL Query on Submit

2002-10-28 Thread user
I'm having a problem getting my PHP script to talk to my database. I'm attempting to use UPDATE with a PHP form to change records already in the database. I'm able to pull the record with no problem and the script is sending the confirmation e-mail without a problem on submit but for some rea

Re: [PHP] Week numbers

2002-10-28 Thread 1LT John W. Holmes
date('W',strtotime('29.10.2002')); ?? Untested... I don't know if strtotime will recognize that format. ---John Holmes... - Original Message - From: "Davíð Örn Jóhannsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 28, 2002 10:57 AM Subject: [PHP] Week numbers Le

Re: [PHP] Week numbers

2002-10-28 Thread Chris Boget
> Lets say I have a date: 29.10.2002 and I want to be able to find out > what week number it is, I know how to find out what the current week > number is: date("W") to day it would result 44, but i need to be able > to do this dynamically ofcourse, any Ideas? date( "W", $yourUnixTimeStampDateV

Re: [PHP] oracle: updating clob causes error 600

2002-10-28 Thread Nick Eby
"Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message news:20021028122405.4F05.MAXIM@;php.net... > What's the Oracle version? 8.1.7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Free compiler for Win

2002-10-28 Thread Marcello Lupo
Hi to all, anyone know a good free complier for win 2000/NT to compile PHP and so on? thanks, Bye MArselo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Week numbers

2002-10-28 Thread Davíð Örn Jóhannsson
Lets say I have a date: 29.10.2002 and I want to be able to find out what week number it is, I know how to find out what the current week number is: date(“W”) to day it would result 44, but i need to be able to do this dynamically ofcourse, any Ideas? thanks, David

[PHP] Re[2]: [PHP-DEV] php4.3.0-pre2 - win32 binaries

2002-10-28 Thread Vendigo2000
Hello Marcus, Monday, October 28, 2002, 6:40:52 PM, you wrote: MB> Could you tell something about compiling php under vc++.net? MB> I tried this but wasn't able to (but did not tried it hard). MB> regards MB> marcus in fact - nothing special about it. haven't seen any terrible bugs. working und

Re: Re[4]: [PHP] Displaying one of three functions.

2002-10-28 Thread @ Edwin
Hello Martin, "Martin Hudec" <[EMAIL PROTECTED]> wrote: > Hello @ Edwin, > > of course you can but let me say something > > if .. else is used when u > need to execute one thing in case that requirement in if is met and > second thing if it is not met... > > in case of if...elsif : command behind

Re: [PHP] Mac OS X EI TEXTAREA Problem

2002-10-28 Thread Brent Baisley
I assume you meant IE and not EI (?). I don't have any problem with text areas that you are showing. Do have a "WRAP" setting in your text area (hard, soft, off)? I don't specify any wrap. I doubt that has anything to do with it, but I'm reaching. Have you tried it on other machines? Perhaps the

[PHP] Re: [PHP-DEV] php4.3.0-pre2 - win32 binaries

2002-10-28 Thread Marcus Börger
Could you tell something about compiling php under vc++.net? I tried this but wasn't able to (but did not tried it hard). regards marcus At 16:13 28.10.2002, [EMAIL PROTECTED] wrote: anyone can download for testing php-4.3.0-pre2 from: http://chat.italma.ru/php/ (compiled with vc++.net) -- P

Re[4]: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
Hello @ Edwin, of course you can but let me say something if .. else is used when u need to execute one thing in case that requirement in if is met and second thing if it is not met... in case of if...elsif : command behind elsif is executed when requirement in if is not metyou can add as ma

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jay Blanchard
[snip] What?!? You're not awake at 4:30 in the morning writing code?!? I think the commitee will have to reconsider your geek club membership. :) [/snip] How do you think that I knew the original post came in at that time? ROFLMAO. Go ahead revoke my Geek Club card, the discounts no longer

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jay Blanchard
[snip] I did a search ... [/snip] My apologies Henry, I had just received a piece of disturbing news along with starting my Monday at 4:30 CST with some database server problems. You just happened to get in the line of fire. Start with the regular expression functions in PHP. Once you have an und

Re: [PHP] passing varibles into PHP script

2002-10-28 Thread @ Edwin
Hello, "wh1sp3r" <[EMAIL PROTECTED]> wrote: > I'm trying to create a script that handles/logs banner click-throughs > from an HTML page passing variable information through the URL. > > example URL: > http://somehost.com/bannerhandler.php?value=1 > > The test script I wrote, however, is not re

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread John Nichel
What?!? You're not awake at 4:30 in the morning writing code?!? I think the commitee will have to reconsider your geek club membership. :) Jay Blanchard wrote: [snip] Thanks Jay, I am still a newbie and I will read the manual, thankyou for the help. Having an OK day in the UK .

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread Henry
I assure you that I am not trying to circumvent google's anything. I'm trying to provide a HTML translation page tool for some of my visitors where they will provide there own URL and a translation of some keywords will be done for them. Thats all. I never actually was going to flaunt googles term

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jon Haworth
Hi Henry, > If it is so simple perhaps you might spend 5 > minutes generating the regular expression to > use that will ignore the contents of tags save > for the contents of quotes within meta tags and > do the replace for an associative array of mappings. http://google.com/search?q=regex+se

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread Henry
I did a search and I remebered that I have previously seen some of your work. In particlar your guide to CMS in evolt.org. Which I think is absolutely wonderful. Thankyou for your help and I hope that I haven't gone to far with my disingenuous comment posting. I hadn't appreciated the time differe

  1   2   >