[PHP] exploding values into new variables

2002-10-28 Thread Petre Agenbag
Hi The manual states: $pizza = piece1 piece2 piece3 piece4 piece5 piece6; $pieces = explode( , $pizza); So, if I want to be able to echo piece1 to the screen at a later stage, I would go: echo $pieces[0]; or $first_piece = $pieces[0]; echo $first_piece; Right? Just want to make sure I

[PHP] error connecting to oracle.

2002-10-28 Thread Subodh Gupta
Hi all, I get the following error while trying to connect to oracle. Please help me. Fatal error: Call to undefined function: ora_logon() in c:\program files\apache group\apache\htdocs\one.php on line 5 Subodh Gupta Tata Consultancy Services. -- PHP General Mailing List

[PHP] Re: exploding values into new variables

2002-10-28 Thread Erwin
Petre Agenbag wrote: Hi The manual states: $pizza = piece1 piece2 piece3 piece4 piece5 piece6; $pieces = explode( , $pizza); So, if I want to be able to echo piece1 to the screen at a later stage, I would go: echo $pieces[0]; or $first_piece = $pieces[0]; echo $first_piece;

RE: [PHP] general

2002-10-28 Thread Jon Haworth
Hi Shaun, How do you refresh a php page , from within your code. a href=?=$PHP_SELF?click here to refresh/a :-) You can't directly refresh a page with PHP (you can use Javascript though, or a meta refresh tag). How do i test if a browser supports cookies or not? You asked this a couple of

RE: [PHP] A newbie on Board!

2002-10-28 Thread Faisal Abdullah
You should probably check whether you environment variables are all set. try phpinfo(), and see under Environment Variables. Check for: ORACLE_SID ORACLE_HOME LD_LIBRARY_PATH ORACLE_TERM ORA_NLS33 If they aren't there, you should set them up. Regards, Faisal -Original Message- From:

[PHP] RE: newbie: php/mysql

2002-10-28 Thread Tim Ward
the best way to do password validation is using one way encryption (e.g. MySQL PASSWORD() function). That way you check the encrypted user entered password against the database ... ... WHERE pass = PASSWORD('{$_POST[password]}') Tim Ward www.chessish.com -Original Message- From: Mr.

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Faisal Abdullah
undefined function means PHP doesn't know where to get the function from. You probably didn't configure oci_8 libraries correctly. Try phpinfo(), and see under the configuration. Check whether oci8 is available. Regards Faisal -Original Message- From: Subodh Gupta

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Subodh Gupta
I checked up phpinfo(). It does not have oracle listed. What do I need to do now? Subodh Gupta Tata Consultancy Services. Faisal

Re: [PHP] ldap_add problem

2002-10-28 Thread Gerald Roehrbein/Pctdmn
Hello, it's possible that attribute that have to use during an add do not exist. For example from core.schema a programmer can retrieve information of the attribute that must exist for a objectclass and the attributes that can given for a class like person. As an example of an entry of the

Re: [PHP] ldap_add problem

2002-10-28 Thread Krzysztof Dziekiewicz
I get the following error: Warning: LDAP: add operation could not be completed. in /var/www/html/user/adduser_p.php on line 65 Where in my log files can I go to look for more detailed info on that error, I don't know if I have logging enabled for slapd. 1. after ldap_add print ldap_error

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Faisal Abdullah
Where was it listed? In the 'configure command' section? Or the 'configuration' section? If its available in the 'configure command' ONLY, doesn't mean that its working properly. Also, check the following: 1.Copy d:\php\php4ts.dll to c:\winnt\system32 // depends on where your dll file is 2.

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Gerald Roehrbein/Pctdmn
Hello, at Solaris and Windows NT it's first necessary to install the Oracle Client software and then to configure PHP properly the way it is documented! I've done until know only three PHP installations with Oracle support but all three installations where very simple! Remember you have to

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Faisal Abdullah
Heh..i just noticed something on your error: Call to undefined function: ora_logon() in c:\program files\apache group\apache\htdocs\one.php on line 5 If you've configured OCI8, use: ocilogon(scott,tiger,$db); instead of ora_logon(); Regards, Faisal -Original Message- From:

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Subodh Gupta
There is no entry of oracle in any section. The rest of things which you have pointed out are already in place. How do I go aheadnow? Subodh Gupta Faisal

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Faisal Abdullah
If its not there, than I only see these possibilities: 1. You have not placed the correct dll's in the correct location. 2. You have not edited php.ini to in the extension section for oci8 3. You have not restarted apache after performing item [2] above Regards, Faisal -Original

FW: [PHP] error connecting to oracle.

2002-10-28 Thread Faisal Abdullah
-Original Message- From: Gerald Roehrbein/Pctdmn [mailto:groehrbein;bigfoot.com] Sent: Monday, October 28, 2002 10:50 AM To: Subodh Gupta Cc: [EMAIL PROTECTED] Subject: RE: [PHP] error connecting to oracle. Hello, at Solaris and Windows NT it's first necessary

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Subodh Gupta
I have checked that all my dll's are in c:\winnt\system32 directory. Further I have un-commented the requisite lines from php.ini and as you said, restarted my apache server after doing all this. Still the problem persists. Subodh Gupta

[PHP] Parsing HTML

2002-10-28 Thread Henry
Hi All, I would like to be able to do a serach and replace in a HTML document. For a list of words; for example: hello become buongiorno yes becomes si size become grossezza The problem is that if I change the word size without considering html tags and html comments in the case of inline

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

2002-10-28 Thread Juhan Kundla
Hei! Ühel ilusal päeval [27-10-2002 21:27] kirjutas Nick Eby: I'm running oracle 8.1.7 w/ php 4.2. I use the oci8 functions to update clob columns, and maybe 1 out of every 15 or 20 times, updating a clob column causes the mysterious ora-600, internal error code. Anybody out there

[PHP] preg_replace and eval

2002-10-28 Thread Daniel Pupius
Hey there, We have a class that sets up a tree structure that represents an e-learning object made up of nested components. We have a function getPropertyValue($name) which returns the property $name for the current component. Now, we want to allow the user to use something like

RE: [PHP] A newbie on Board!

2002-10-28 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:justin;indent.com.au] Sent: 28 October 2002 07:27 Please start by looking in the manual... I simply typed http://php.net/oracle into my browser, which resulted in this page: http://www.php.net/manual/en/ref.oracle.php Seems to

Re: [PHP] error connecting to oracle.

2002-10-28 Thread Maxim Maletsky
Enable oci8 extension -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 Subodh Gupta [EMAIL PROTECTED] wrote... : I checked

RE: [PHP] error connecting to oracle.

2002-10-28 Thread Ford, Mike [LSS]
-Original Message- From: Faisal Abdullah [mailto:faisal;magnifix.com.my] Sent: 28 October 2002 09:51 To: Subodh Gupta; [EMAIL PROTECTED] Subject: RE: [PHP] error connecting to oracle. -Original Message- From: Subodh Gupta [mailto:Subodh.Gupta;seepz.tcs.co.in] Sent:

Re: [PHP] error connecting to oracle.

2002-10-28 Thread Maxim Maletsky
When one uncomments oci8 extension in PHP.INI, then restarts apache, you get an error on Apache's start-up which will mean your dll is not forund, or there are no oci.h lib (wrong $ORACLE_HOME dir, or there is no client at all... whichever) but, if no errors on Apache start were given to you, just

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

2002-10-28 Thread Maxim Maletsky
What's the Oracle version? OCIServerVersion($stmt); -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 Juhan Kundla [EMAIL

Re: [PHP] A newbie on Board!

2002-10-28 Thread Maxim Maletsky
Actually, one should try always go for OCI8 functions even with lowere versions. Sometiumes, though, these might not work well for v7. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! )

Re: [PHP] preg_replace and eval

2002-10-28 Thread Maxim Maletsky
try splitting it first to get several strings into one array, then loop the array and replace its each element concatenating the strings. This is how my mind can process it so far :) -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home

Re: [PHP] error connecting to oracle.

2002-10-28 Thread Maxim Maletsky
Ford, Mike [LSS] [EMAIL PROTECTED] wrote... : Look out! You've got your Oracle libraries in a twist. The oci8 library supports the OCI* functions; the oracle library supports the ora_* functions. OCI is generally considered to be a better interface, and should probably be

[PHP] Re: preg_replace and eval

2002-10-28 Thread Erwin
The following line sort of works: $retVal = preg_replace(/(.*){parent.(.*)}(.*)/e,'\\1'.\$this-parentNode- getProper tyValue('\\2').'\\3',$retVal); However, if there are more than one string to replace it only works on the last one. So: caption = the parent's coordinates are

Re: [PHP] Html Change

2002-10-28 Thread Maxim Maletsky
Read about regular expressions. php.net/pcre -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 Rodrigo de Oliveira [EMAIL

Re: [PHP] A couple of questions..

2002-10-28 Thread Marek Kilimajer
I'm sure there are some web based file manegers, check out www.hotscripts.com For your second problem, check first if you appache is sending the right response. Connect, using telnet, to localhost:80, and write: GET /mp3 HTTP/1.0 (two times enter). Apache should send you 301 Moved Permanently

[PHP] dbase verify

2002-10-28 Thread Plamen Slavov
Does anyone know if there is a way to tell if a given file is a valid dbase file, using PHP functions ?

Re: [PHP] newbie: php/mysql

2002-10-28 Thread Marek Kilimajer
The usual way of doing logins with encrypted/hashed passwords is adding new user into the table: INSERT users SET username='$_POST[username]', password=MD5('$_POST[pwd]'); checking if username/password match: SELECT * FROM users WHERE username='$_POST[username]' AND password=MD5('$_POST[pwd]');

Re: [PHP] dbase verify

2002-10-28 Thread Marek Kilimajer
Filetypes are usualy recognized by first 4 bytes (or so), so you need to find out what these bytes should be for dbase files Plamen Slavov wrote: Does anyone know if there is a way to tell if a given file is a valid dbase file, using PHP functions ? -- PHP General Mailing List

RE: [PHP] extract($_POST)

2002-10-28 Thread Jay Blanchard
[snip] Lets say you have a statement like: $query = SELECT * FROM mytable WHERE firstname=$firstname; And if $firstname is set to: xyz; DELETE FROM mytable Then this is executed as: SELECT* FROM mytable WHERE firstname=xyz;DELETE FROM mytable This can wipe out your table...a bad thing...

[PHP] Displaying one of three functions.

2002-10-28 Thread Steve Jackson
I have three functions written which work and I want to only display one of them depending on user input. What is the correct way to code this? I can display all three functions but not one. this is my code: ? include ('products_sc_fns.php'); // The shopping cart needs sessions, so start

[PHP] Group by YEAR in date

2002-10-28 Thread Faisal Abdullah
Hi people, I have a table (postgres), with a date field (-mm-dd). How do I group by year? 'select sum(profit) from loan group by apply_date' would group by the DAY, not year. Thanks. Regards, Faisal __ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
Hello Steve, I hope I understand your questions...so first we will check value of country (if it is other than finland)...then if the first if requirement is not met we will continue to second part (checking express)...and so on if {$country!=finland){

Re: [PHP] Group by YEAR in date

2002-10-28 Thread Marek Kilimajer
In mysql, I would need to select an extra column SELECT SUM(profit), YEAR(apply_date) AS year FROM loan GROUP BY year Faisal Abdullah wrote: Hi people, I have a table (postgres), with a date field (-mm-dd). How do I group by year? 'select sum(profit) from loan group by apply_date' would

Re: [PHP] Group by YEAR in date

2002-10-28 Thread 1LT John W. Holmes
I have a table (postgres), with a date field (-mm-dd). How do I group by year? 'select sum(profit) from loan group by apply_date' would group by the DAY, not year. SELECT SUM(profit) FROM load GROUP BY YEAR(apply_date) ---John Holmes... -- PHP General Mailing List

[PHP] New Error?

2002-10-28 Thread Steve Jackson
I get this error from my code. Fatal error: Cannot break/continue 1 levels in /www/u1255/shop/purchase.php on line 22 I think I need to end the functions if a condition is met so is there a way to do it without breaking? Where do I go from here? ? include ('products_sc_fns.php'); // The

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

2002-10-28 Thread Martin Hudec
Hello Steve, oh my fault...i apologize...this should worki shouldn't use break ;) if {$country!=finland){ display_shipping(calculate_nonfinland_cost($country)); } elsif ($country==finland $express==no) { display_shipping(calculate_shipping_cost($weight)); } elseif ($country==finland

Re: [PHP] New Error?

2002-10-28 Thread Marek Kilimajer
Break an continue are for loops (while,for ...), if you want to get out of a function, use return Steve Jackson wrote: I get this error from my code. Fatal error: Cannot break/continue 1 levels in /www/u1255/shop/purchase.php on line 22 I think I need to end the functions if a condition is met

[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

[PHP] ANN: Security Data S.A. releases PHPGrid under GPL license

2002-10-28 Thread José León Serna
Security Data S.A is proud to announce the inmediate availability of PHPGrid under GPL license. PHPGrid is a PHP object that allows to browse/add/edit/search/delete records in a database table. Is based on ADOdb and incorporates features not found on similar products, for exaple, manage unlimited

[PHP] IP addresses

2002-10-28 Thread Bret L Conard
Hi all, I've been away for a while but I'm back and have a question about IP addresses. How do I retrieve / capture a users IP? I need to have it to process electronic payments. Thanks. Bret

[PHP] List archive

2002-10-28 Thread Chris Boget
Besides Google, is there any other site that archives this list? I checked PHP Builder but I can't seem to find a thread (or message) dated after April... thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List archive

2002-10-28 Thread @ Edwin
Hello, Looking for this? http://marc.theaimsgroup.com/?l=php-general - E Chris Boget [EMAIL PROTECTED] wrote: Besides Google, is there any other site that archives this list? I checked PHP Builder but I can't seem to find a thread (or message) dated after April... ...[snip]... -- PHP

[PHP] Re: IP addresses

2002-10-28 Thread Jome
I've been away for a while but I'm back and have a question about IP addresses. How do I retrieve / capture a users IP? I need to have it to process electronic payments. $_SERVER['REMOTE_ADDR'] Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] IP addresses

2002-10-28 Thread Martin Hudec
Hello Bret, use $REMOTE_ADDR like this: ? echo $REMOTE_ADDR; ? -- Best regards, Martinmailto:corwin;corwin.sk Monday, October 28, 2002, 3:46:04 PM, you wrote: BLC Hi all, BLC I've been away for a while but I'm back and have a question about IP addresses. BLC How

Re: [PHP] IP addresses

2002-10-28 Thread PHP
$_SERVER['REMOTE_ADDR'] - Original Message - From: Bret L Conard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 4:46 PM Subject: [PHP] IP addresses Hi all, I've been away for a while but I'm back and have a question about IP addresses. How do I retrieve / capture

Re: [PHP] Findng a pattern

2002-10-28 Thread Henry
Hi Again, sorry it's taken so long. Thankyou for your help. I have since reappraised my thoughts on this subject and would like to thank all of you (and inparticular Rasmus Lerdorf) for your time in replying to my question. I will not be using anthing that was provided in reply to circumvent

[PHP] Re: Parsing HTML

2002-10-28 Thread Henry
What; nobody has anything to say about parsing HTML and doing search and replaces!! Is there another news group that might be better suited? I do want to do it PHP if I hadn't made that clear. Somebody, anybody, please help. Henry [EMAIL PROTECTED] wrote in message

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jay Blanchard
[snip] What; nobody has anything to say about parsing HTML and doing search and replaces!! Is there another news group that might be better suited? I do want to do it PHP if I hadn't made that clear. Somebody, anybody, please help. [/snip] What? No one wants to help someone who didn't search the

[PHP] passing varibles into PHP script

2002-10-28 Thread wh1sp3r
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 recieving the variable information. Any ideas of what I

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread Henry
Thanks Jay, I am still a newbie and I will read the manual, thankyou for the help. Having an OK day in the UK . Henry Jay Blanchard [EMAIL PROTECTED] wrote in message news:003f01c27e93$87bc1da0$8102a8c0;000347D72515... [snip] What; nobody has anything to say about parsing HTML

Re: [PHP] Re: Parsing HTML

2002-10-28 Thread John Nichel
The tools for you to execute the regular expression are there for you in the manual. The actual regular expression that you're looking for is not a php issue. And I can't say that I'm totally convinced that you're still not trying to circumvent google's TOS. Henry wrote: What; nobody has

Re: [PHP] passing varibles into PHP script

2002-10-28 Thread John Nichel
wh1sp3r 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 recieving the variable information. Any

RE: [PHP] Re: Parsing HTML

2002-10-28 Thread Jay Blanchard
[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 . [/snip] Henry your questions will get answered more quickly and accurately when you provide a. A clear explanation of the problem at hand 2. Proof that you have

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

2002-10-28 Thread @ Edwin
Hello, Martin Hudec [EMAIL PROTECTED] wrote: or (from my point of view is this better) if {$country!=finland) : display_shipping(calculate_nonfinland_cost($country)); elsif ($country==finland $express==no) : display_shipping(calculate_shipping_cost($weight)); elseif

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

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.

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

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] 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 recieving

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

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[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

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

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 elsif is

[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] 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

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

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, $yourUnixTimeStampDateVar );

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 Lets

[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

[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 and

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 use first $sql..i cant

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,

[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-general

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

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

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

[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.

[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:

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

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

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 call

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

[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

[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

[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

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 ereg_replace().

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] 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

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

2002-10-28 Thread Davy Obdam
Hi Bsantos, Why not use the following code: for ($i=0;$imysql_num_rows($result);$i++) { echo td.result['$i']./td; } 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?

[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

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 driven by

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 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 asking

  1   2   >