[PHP] Parse Error in Last Line of PHP Script

2002-08-16 Thread Thomas Meinke
Hello! My problem is a Parse Error in the last line of the script. I checked all the brackets { and semicolons ; but I did`nt find any error. Perhaps you can help me. Cu Thomas Here is the Code: ?php $_custom_enable_custom_auth = true; $_custom_db_name = 'horde'; $_custom_db_host =

Re: [PHP] Parse Error in Last Line of PHP Script

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 14:13, Thomas Meinke wrote: Hello! My problem is a Parse Error in the last line of the script. I checked all the brackets { and semicolons ; but I did`nt find any error. Perhaps you can help me. Try matching up your '' and . -- Jason Wong - Gremlins Associates -

[PHP] error message when run /usr/share/pear

2002-08-16 Thread Ryan
What's wrong ? I am using RH7.3. I manually compile the php and install it before. But later I install using the rpm. Thx for reply ! Content-type: text/html PHP Warning: imap: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=0 PHPcompiled with

[PHP] sessions don't work

2002-08-16 Thread Félix García Renedo
Hello, I have a problem with php sessions. I have a php file like: ? session_start(); session_register('pagina'); ? html head ... /head body ? include('file'); ? ... /html I have done diferent proofs and I have seen that the problem is that when I put include don't work sessions and

Re: [PHP] error message when run /usr/share/pear

2002-08-16 Thread Adam Williams
when running the ./configure for PHP did you use --with-mysql Adam On Fri, 16 Aug 2002, Ryan wrote: What's wrong ? I am using RH7.3. I manually compile the php and install it before. But later I install using the rpm. Thx for reply ! Content-type: text/html PHP

[PHP] Re: i some more help on the whole ereg thingy please

2002-08-16 Thread lallous
preg_match('!div class=Section1[^]+(.*)/div!Uis',$str,$regs[1]); $everything_between_divs = $regs[1]; when calling preg_match just pass $regs as param and not $regs[1] Elias [EMAIL PROTECTED] wrote in message 000101c244c9$08401d50$86a96518@jumpy">news:000101c244c9$08401d50$86a96518@jumpy...

[PHP] Re: Getting PHP to submit a form to google

2002-08-16 Thread lallous
by simple ways, you can do that: $query = urlencode(your query string) $result_string = join('', file(http://www.google.com/search?q=$query)); Elias Henry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all I would like to be able to get the result of a

[PHP] Re: How retrieve database data from email?

2002-08-16 Thread lallous
How and where can I add an alias and associate PHP with that alias? Elias Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You can set up php to run from console if it doesn't already, and add an alias to your mail server (stocks) which would

Re: [PHP] error message when run /usr/share/pear

2002-08-16 Thread Ryan
Yes, I do use --with-mysql now i am using the rpm version of php. Adam Williams wrote: when running the ./configure for PHP did you use --with-mysql Adam On Fri, 16 Aug 2002, Ryan wrote: What's wrong ? I am using RH7.3. I manually compile the php and install it

[PHP] Re: How do I customize the User-Agent when opening a remote file?

2002-08-16 Thread lallous
one of the solutions is not using fopen() instead use another class that is able to post to pages and retrieve them. check phpclasses.org Dallas Thunder [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How do I customize the User-Agent when using fopen() or

Re: [PHP] help with making appropriate indexes.

2002-08-16 Thread lallous
Thanks Miles. But i'm not satisfied with your answer. I instinctly created indexes on every field that I'm using w/ conditions. But I feel that my script can be rewritten more efficiently using JOINTs or other things. Any site with reading material regarding how to index and make complex

[PHP] date problem

2002-08-16 Thread Kae Verens
when I place date(h:i a) in a page on my server, and view it in a browser, I am returned: 02:51 pm. According to the server itself, though (logged in through ssh), using date, it is 3:51. gmdate(h:i a) returns the same 2:51 time. They are both one hour off from the server time. Any ideas of

[PHP] PHP, MySQL and Transaction

2002-08-16 Thread Christian Ista
Hello, In an MySQL table, I insert some records. Before each insert (just before), I do a Select max() ... and I increment the result by one, to give a number (unique), and I have an auto_incremente field too. I'd like to know if there is a mechanism in PHP, if several person do the same thing

Re: [PHP] help with making appropriate indexes.

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 18:05, lallous wrote: But i'm not satisfied with your answer. This is not the appropriate list for your question in the first place. I instinctly created indexes on every field that I'm using w/ conditions. But I feel that my script can be rewritten more

Re: [PHP] PHP, MySQL and Transaction

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 17:37, Christian Ista wrote: Hello, In an MySQL table, I insert some records. Before each insert (just before), I do a Select max() ... and I increment the result by one, to give a number (unique), and I have an auto_incremente field too. Not sure why you would

[PHP] Checkbox question

2002-08-16 Thread José Jeria
I have a page with a checkbox, when i submit to the next page the variable $whatever (the checkboxes name.) will be On if its checked, and it will be undefined if its not checked. Shouldn't it be a empty string? and not undefined? /José -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] date problem

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 17:24, Kae Verens wrote: when I place date(h:i a) in a page on my server, and view it in a browser, I am returned: 02:51 pm. According to the server itself, though (logged in through ssh), using date, it is 3:51. gmdate(h:i a) returns the same 2:51 time. They are both

Re: [PHP] Checkbox question

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 17:54, José Jeria wrote: I have a page with a checkbox, when i submit to the next page the variable $whatever (the checkboxes name.) will be On if its checked, and it will be undefined if its not checked. Shouldn't it be a empty string? and not undefined? That is

[PHP] Fw: Java and php domainname validation

2002-08-16 Thread Manu Verhaegen
Hi, I have write a domain control function in php, the php function will working fine. I have create a simpel form with 2 textboxes and 1 button, i will put in this fields a domainname and the extention like yahoo com if i click on the button, then we want to validate the domainname and

Re: [PHP] Checkbox question

2002-08-16 Thread José Jeria
Hmmm, then the book Beginning PHP from Wrox is wrong... /J Jason Wong wrote: On Friday 16 August 2002 17:54, José Jeria wrote: I have a page with a checkbox, when i submit to the next page the variable $whatever (the checkboxes name.) will be On if its checked, and it will be undefined if

[PHP] Java and php domainname validation

2002-08-16 Thread Manu Verhaegen
Hi, I have write a domain control function in php, the php function will working fine. I have create a simpel form with 2 textboxes and 1 button, i will put in this fields a domainname and the extention like yahoo com if i click on the button, then we want to validate the domainname and

[PHP] RE: sessions don't work

2002-08-16 Thread Tim Ward
why do you think the session isn't working? If there is a run time error in 'file' then an error would be reported and the output terminated. If you have error reporting off then you would expect to get eactly what you see. Sounds like a problem inside 'file'. Tim Ward St Ives

[PHP] Re: sessions don't work

2002-08-16 Thread Ryan
May be the session is diable in the php.ini Félix garcía renedo wrote: Hello, I have a problem with php sessions. I have a php file like: ? session_start(); session_register('pagina'); ? html head ... /head body ? include('file'); ? ... /html I have done diferent

[PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread lallous
? $fn = 'test.gif'; echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn); ? This script will output 'testa.gif' now how can i make it produce 'test1.gif' ? if i replace the: '\1a\2' with '\11\2' it will understand to replace with occurence number 11 ! How can i escape the 2nd '1' so it is

[PHP] Re: tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread B.C. Lance
probably this will be faster? $fn = str_replace(.gif, 1.gif, $fn); Lallous wrote: ? $fn = 'test.gif'; echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn); ? This script will output 'testa.gif' now how can i make it produce 'test1.gif' ? if i replace the: '\1a\2' with '\11\2' it

Re: [PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 19:49, lallous wrote: ? $fn = 'test.gif'; echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn); ? This script will output 'testa.gif' now how can i make it produce 'test1.gif' ? if i replace the: '\1a\2' with '\11\2' it will understand to replace with occurence

[PHP] Array query - finding the key for a value

2002-08-16 Thread Tim Fountain
This may be a silly question, but I'm used to being able to find PHP functions to do whatever I want, but I can't find one to do this! If I have an array like this: [0] - 'apple'; [1] - 'pear'; [2] - 'orange'; [3] - 'apricot'; I know I can use in_array() to check whether, say, 'orange' is in

Re: [PHP] Array query - finding the key for a value

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 19:50, Tim Fountain wrote: This may be a silly question, but I'm used to being able to find PHP functions to do whatever I want, but I can't find one to do this! If I have an array like this: [0] - 'apple'; [1] - 'pear'; [2] - 'orange'; [3] - 'apricot'; I know

RE: [PHP] Array query - finding the key for a value

2002-08-16 Thread Matt Schroebel
From: Tim Fountain [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 7:51 AM Subject: [PHP] Array query - finding the key for a value This may be a silly question, but I'm used to being able to find PHP functions to do whatever I want, but I can't find one to do this! If I have

[PHP] Drop down reload

2002-08-16 Thread Christian Ista
Hello, Could you tell me if it possible to reload the current page when I select a value in a drop down ? On a page, I have 2 drop down, the content on the first one come from the database. The content of the second one too (from database) but depend of the first drop down value. An idea to do

Re: [PHP] Drop down reload

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 19:53, Christian Ista wrote: Hello, Could you tell me if it possible to reload the current page when I select a value in a drop down ? On a page, I have 2 drop down, the content on the first one come from the database. The content of the second one too (from

[PHP] Re: Drop down reload

2002-08-16 Thread Julio Nobrega
http://www.zend.com/zend/tut/drop-down.php -- Julio Nobrega Me empurraram pra chegar lá mais rápido! http://www.inerciasensorial.com.br Christian Ista [EMAIL PROTECTED] wrote in message 000201c2451b$94fe4300$c000a8c0@p3portable">news:000201c2451b$94fe4300$c000a8c0@p3portable... Hello, Could

Re: [PHP] Drop down reload

2002-08-16 Thread Scott Houseman
Hi there. You would need to use JavaScript for this, specifically an onChange( ) event for the select field(s). Your JavaScript should basically reload the page once an option has been selected from the first select field, passing through a variable containing the value of the option which has

RE: [PHP] Conditional Popup Menus with PHP/mySQL and Java?

2002-08-16 Thread robert mischke
This is a javascript thing. Try comp.lang.javascript... the only thing u really need to know is that you have to send ALL the data to the page with javascript, then effectively, it's a static HTML page. Justin French There is an ariticle on Zend out there:

[PHP] Can I use iframes as if I was using a new thread in Java?

2002-08-16 Thread Serdar Sokmen
Hi; Here is a brief description of my problem: There is a file called index.php in some directory. The guy who wrote this file didn't bother creating another file where the functions are defined. More precisely, there is a big switch statement in the file. Depending on the outcome of the switch

Re: [PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread lallous
James, Actually the interpreter will evaluate the '\1'. '1' . '\2' into one string before passing it to preg_replace So it will yield up as I originally wrote it, and it won't work. Elias Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 16

[PHP] Re: tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread lallous
Oh well, I could have solved it w/ too many other methods, but how can I escape the \{occurence} as in my case? Elias B.C. Lance [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... and if you are gonna append '1' for all extension, try this: echo

RE: [PHP] Re: Getting PHP to submit a form to google

2002-08-16 Thread Michael Geier
a more OO approach might be to use the Snoopy PHP class (http://snoopy.sourceforge.net) This will allow you to do GET/POST method requests on URLS with query variables, ie: POST $snoopy = new Snoopy; $submit_vars[q] = [ form variables ]; $submit_url =

[PHP] progress bar for uploading files

2002-08-16 Thread electroteque
hi guys i was wondering if there was anyway to have a progress bar for uploading images ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [Session-objects] Call to a member function on a non-object

2002-08-16 Thread Tim Stoop
Hi people, As I understand it, object are unserialized into their former Class, if that Class is in memory. That's right, right? Well, consider the following code: include_once(../config.inc.php); include_once($WORKDIR.obj/foto.obj.php); if($type == 1) {

[PHP] Re: Array query - finding the key for a value

2002-08-16 Thread lallous
can do this: $array = array('apple', 'pear', 'orange', 'apricot'); $array = array_flip($array); $keyword = 'orange'; echo found '$orange' @ index: . $array[$keyword]; Don't use this method though! It makes your program slow! Elias Tim Fountain [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] OO code and private functions

2002-08-16 Thread Richard Black
Can I make a function private in PHP, so that it can only be called from within an object of that class??? Just discovering the wonders of OO PHP... :-) == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435

Re: [PHP] OO code and private functions

2002-08-16 Thread Rasmus Lerdorf
Nope On Fri, 16 Aug 2002, Richard Black wrote: Can I make a function private in PHP, so that it can only be called from within an object of that class??? Just discovering the wonders of OO PHP... :-) == Richard Black Systems Programmer,

Re: [PHP] OO code and private functions

2002-08-16 Thread Scott Houseman
Hi there. Not at the moment, but I think this is a feature of the new Zend engine 2, currently in development. Cheers Scott - Original Message - From: Richard Black [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Friday, August 16, 2002 4:24 PM Subject: [PHP] OO code and

Re: [PHP] OO code and private functions

2002-08-16 Thread Joseph W. Goff
Not currently, but this will be added in the Zend2 engine. You can find out about this on the Zend website. - Original Message - From: Richard Black [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Friday, August 16, 2002 9:24 AM Subject: [PHP] OO code and private functions

[PHP] session lost when back button hit?

2002-08-16 Thread Jean-Christian Imbeault
I have two pages, page one links to page two via a form button. The browser does not accept cookies. On page two I create a session variable with: $_SESSION[id] = 1; But if I hit the back button to go back to page one $_SESSION[id] is not set. If I hit the reload button on page one it is

[PHP] using PHP on forms submitted to other sites - HELP

2002-08-16 Thread Dan McCullough
We have a client that has a form that submits to a payment processor to handle the cc processing. The visitor gets what he wants and then comes to a verification page on our clients site. He wants to buy it so he clicks the submit button and hes gone, to the payment processors site. We want

RE: [PHP] OO code and private functions

2002-08-16 Thread Cal Evans
not yet (Zend engine 2.0 I believe has this) Currently the convention is to name private functions _* (variables the same) This denotes to other coders that you intended this to be a private function. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message-

[PHP] SQL Injection/Data Balidation

2002-08-16 Thread Dennis Gearon
Please CC me as I'm on digest: -- Are there any libraries for data validation available? If one reads papers like these: http://www.nextgenss.com/papers/advanced_sql_injection.pdf http://www.nextgenss.com/papers/more_advanced_sql_injection.pdf It

RE: [PHP] session lost when back button hit?

2002-08-16 Thread Daniel Masson
HI make ser youre using session_start() before performing any action on sessions, also make sure you´re registering properly the variables. -Mensaje original- De: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 16 de agosto de 2002 9:43 Para: [EMAIL PROTECTED]

[PHP] sessions: what to do when browser won't accept cookies?

2002-08-16 Thread Jean-Christian Imbeault
I'm finding myself in a strange situation. I am trying to build a a web site that will use sessions and work even if a user decides not to accept cookies. So far the site design is working fine by using the trans-sid functionality of PHP. But I have this on case where things break down. 1-

Re: [PHP] session lost when back button hit?

2002-08-16 Thread Jean-Christian Imbeault
Daniel Masson wrote: make ser youre using session_start() before performing any action on sessions, also make sure you´re registering properly the variables. Did you see my PS at the end of my question? PS I have session.auto_start ON and enabled trans-sid I don't need seesion_start() and

[PHP] Re: How retrieve database data from email?

2002-08-16 Thread Bogdan Stancescu
I'm not very proficient with e-mail configuration, so if someone finds I'm saying something wrong, don't think twice before correcting it. AFAIK, you can create an alias typically in /etc/aliases - or /etc/sendmail/aliases, as I've heard for newer versions of sendmail. In any case, the file

[PHP] Re: using PHP on forms submitted to other sites - HELP

2002-08-16 Thread Kondwani Spike Mkandawire
Dan McCullough [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... We have a client that has a form that submits to a payment processor to handle the cc processing. The visitor gets what he wants and then comes to a verification page on our clients site. He wants

[PHP] Re: How retrieve database data from email?

2002-08-16 Thread Bogdan Stancescu
Bogdan Stancescu wrote: Add a line reading stocks: | /usr/bin/php /path/to/your/script.php Sorry, it should be stocks: | /usr/bin/php /path/to/your/script.php Also, first make sure php works from command line and check its location. Bogdan -- PHP General Mailing List (http://www.php.net/)

[PHP] HTML-based mail with PHP

2002-08-16 Thread Liam Gibbs
Now, this may be more of an e-mail question than a PHP question. For that, I apologize. I'm having trouble with some HTML-based mail with PHP. It's not the regular thing where I can't get it to use the tags instead of just printing them. That part's fine; it comes out HTML-based. My problem is

[PHP] Re: progress bar for uploading files

2002-08-16 Thread Philip Hallstrom
You're best bet would be to make an animated gif that looks like a progres bar (or twirling icon or whatever). Then when the users hits submit, turn it on... in the same way you do image rollovers, etc... Then it will spin until the form is submitted... On Fri, 16 Aug 2002, electroteque wrote:

[PHP] PHP Java Extension

2002-08-16 Thread Girish Nath
Hi I wanted to learn some new stuff and experiment with the PHP Java extension, what are the possibilities, what's cool about it, what are you guys using it for and where can i find some tutorials for it ? Had a look at php.net but can't find much info suitable for a newbie to this particular

Re: [PHP] Session variable in query

2002-08-16 Thread Justin French
not entirely sure what you mean, but perhaps this is what you're after??? $sql = SELECT * FROM tablename WHERE username='{$_SESSION['userid']}'; Justin French on 17/08/02 2:08 AM, Christian Ista ([EMAIL PROTECTED]) wrote: Hello, Is it possible to use a session variable in a query

Re: [PHP] Variable

2002-08-16 Thread Analysis Solutions
On Wed, Aug 14, 2002 at 08:23:18AM +, Remon Redika wrote: input type=text name=namasa size=40 input type=text name=namadu size=40 input type=text name=namati size=40 $Namak = $namasa; $Namak = $Namak.$namadu; $Namak = $Namak.$namati; Is that REALLY what you want

[PHP] Re: sessions: what to do when browser won't accept cookies?

2002-08-16 Thread Jerry
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jean-Christian Imbeault) wrote: How can I get around the problem of not having the SID in the URL of the first page to my site the user comes to? It kind of a chicken-or-the-egg problem ... I kind of hate it when sites do this, but you could

RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Brian V Bonini
Bet this would be perfect for combining Flash and PHP. -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:57 AM To: electroteque Cc: [EMAIL PROTECTED] Subject: [PHP] Re: progress bar for uploading files You're best bet would be

Re: [PHP] Credit Card Transactions and Micropayment

2002-08-16 Thread Analysis Solutions
Sascha: On Wed, Aug 14, 2002 at 04:06:39PM +0200, Sascha Braun wrote: Are there some ways of using a micropayment system together with PHP? What do you mean by micropayment? Paying for small fees? How small are you talking about? Maybe something where Customers can see the Amount of

[PHP] Session variable in query

2002-08-16 Thread Christian Ista
Hello, Is it possible to use a session variable in a query (mysql_query) without passé by an temp variable ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Jay Blanchard
I had a rather weird thought, but it is Friday after all :^] How about setting a small IFRAME in the upload diaog box? Then you could do a couple of things; a.) Place a small animated GIF in the IFRAME that moves left to right or from side to side until the upload completes. 2.) Use the GD

Re: [PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 22:12, lallous wrote: Actually the interpreter will evaluate the '\1'. '1' . '\2' into one string before passing it to preg_replace So it will yield up as I originally wrote it, and it won't work. Hmm, you're right. The interpreter is smarter than I thought :-/ --

[PHP] Moving Files - Stupid Error

2002-08-16 Thread Steve Keller
Hey all, I need a little help with moving a file on the server after an upload. Our company site is hosted, so I don't have full access to the configuration files, but I can do a PHP_info dump if you need more clarification. Using 4.0.1pl2. What I'm doing is uploading a file from a form, and

Re: [PHP] progress bar for uploading files

2002-08-16 Thread Peter J. Schoenster
On 16 Aug 2002 at 23:40, electroteque wrote: hi guys i was wondering if there was anyway to have a progress bar for uploading images ? TMTOWDI, but here is a way I did something similar. I was spidering remote sites and to get user's data and store in a database and the user could not

RE: [PHP] Re: sessions: what to do when browser won't accept cookies?

2002-08-16 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Good idea but remember some people turn off javascript and cookies :) Make your site as accessible as you can, using Jerry's suggestion is a good idea and then accept some people will be bent on not being able to use your site by disabling as much functionality in their browsers as they can or

RE: [PHP] session lost when back button hit?

2002-08-16 Thread Alok K. Dhir
By any chance, is page one the entrance page to your application? I.e. is there a session id in either the query string of the page URL or was there one passed to it via a POST? Without cookies enabled, there is no way to allow users to use the back button to go back to the entrance page while

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Edwin @
Yeah, I'm scared... Please excuse me but may I say that it seems like you've sent some wrong info to the wrong mailing list? I use PHP NOT ASP, I use MySQL or PostgreSQL or Oracle but NOT M$ SQL Server. And IIS? Of course, some people use it (perhaps) because of some unavoidable

[PHP] Re: Invoking sendmail with PHP

2002-08-16 Thread Gui Guy
On a unix box, you can supply the arguments to the sendmail command in php.ini file, when you specify the sendmail path. Daren Cotter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... To recap, my problem is: I need some mailings sent immediately (confirmation

Re: [PHP] Keyword exact phrase search

2002-08-16 Thread Jason Wong
On Thursday 15 August 2002 23:50, David Buerer wrote: Because to my knowledge the limitation of a TEXT field is 64K. I need to store entire documents in the database which far exceed the 64K limitation. Given that criteria, the only option is to use blob fields which have an upper limit of

[PHP] Apache2

2002-08-16 Thread Björn Hilliges
Upgraded to Apache2, and now most of my php scripts won't work. No error msg att all, just that nothing happens. Guess I missed some standard security setting, got any clues to this newbie? Thanks Björn Hilliges, Sweden. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: php and classes

2002-08-16 Thread Pafo
the problem is that i dont have access to php.ini :/ on a shared webhotel :( regards patrick Jason Wong [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 16 August 2002 11:40, Pafo wrote: nm, now it works,, forgot the silly () Always set error

[PHP] array and a class

2002-08-16 Thread Pafo
i got my nice looking class like this: ?php class Relic { var $RelicName; var $RelicType; var $RelicRealm; var $RelicOwner; function PrintInfo() { print $this-RelicName : $this-RelicType : $this-RelicRealm : $this-RelicOwnerbr; } function CheckForPrint() { if

Re: [PHP] Apache2

2002-08-16 Thread Rasmus Lerdorf
It will be a while before Apache 2 is properly supported. Switch back to Apache 1.3.x for now. We are working on it and PHP 4.3 should be significantly better with Apache 2. -Rasmus On Fri, 16 Aug 2002, Björn Hilliges wrote: Upgraded to Apache2, and now most of my php scripts won't work. No

Re: [PHP] Apache2

2002-08-16 Thread Bob Lockie
Upgraded to Apache2, and now most of my php scripts won't work. No error msg att all, just that nothing happens. Guess I missed some standard security setting, got any clues to this newbie? What does phpinfo() say? What does httpd -l say? -- PHP General Mailing List (http://www.php.net/)

[PHP] test

2002-08-16 Thread Dan McCullough
test = Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP General Mailing List

[PHP] Protocol on handling empty checkbox values

2002-08-16 Thread David Yee
Hi all. For a universal form script I'm writing I want to store a 'Y' in a table field if a checkbox is checked and an 'N' if it's not. The problem is that when the form is posted if the checkbox is not checked the checkbox variable is not passed. E.g. form method=POST action=submit.php input

[PHP] Re: tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread B.C. Lance
hm... this should work, notice the double quotes echo preg_replace('/(.+?)(\..+?)/e', '\1.1.\2', $fn); Lallous wrote: Oh well, I could have solved it w/ too many other methods, but how can I escape the \{occurence} as in my case? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Protocol on handling empty checkbox values

2002-08-16 Thread James Green
On Fri, 2002-08-16 at 19:24, David Yee wrote: Hi all. For a universal form script I'm writing I want to store a 'Y' in a table field if a checkbox is checked and an 'N' if it's not. The problem is that when the form is posted if the checkbox is not checked the checkbox variable is not

[PHP] Extending PHP 4.0

2002-08-16 Thread MET
Does anyone know how to build the first_module example shown at Zend (http://www.zend.com/apidoc/) ? I'd like to start coding extensions (preferably not directly into the PHP binary because of my hosting situation) but I just don't understand the explanation of compiling them. Any one know how?

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Randy Johnson
I didn't see that, what a waste of paper Randy - Original Message - From: Edwin @ [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 16, 2002 1:14 PM Subject: Re: [PHP] SQL Injection/Data Balidation Yeah, I'm scared... Please excuse me but may I

[PHP] AllTheWeb.com design contest

2002-08-16 Thread Andrei Zmievski
I wanted to pass along the details of a contest that I thought you might find interesting. AlltheWeb is the public search engine of Fast Search Transfer and currently it is one of the largest search engines in the industry with over 2.1 billion pages in the web index. Recently, AlltheWeb.com

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Edwin @
Actually, I DID read the articles before I replied. If you read it again, the basic problem is not about any extended SQLServer functionality--it's about how ASP works AND how the database server was configured AND how Window$ works. Sorry, but the attacks mentioned CANNOT be done on any of

[PHP] Re: progress bar for uploading files

2002-08-16 Thread Philip Hallstrom
This wouldn't work for uploading files however since the long part of the process is the act of uploading the file and until that completes your save.php (or whatever) isn't called. So in regards to file uploading it has to be done with Javascript. What you do below is great for scripts that

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Edwin @
Oops! Sorry! I meant to say apostrophe and not single quotes... And sorry 'bout this additional post... Regards, - E Actually, I DID read the articles before I replied. If you read it again, the basic problem is not about any extended SQLServer functionality--it's about how ASP works AND

[PHP] question about executing a bash shell script...

2002-08-16 Thread Kelly Meeks
Hi folks, I'm learning shell scripting via linux, and have written a script that creates the core files necessary for a users website from a master set of files. Works from the shell just fine (bash makethesite.sh username pathtoputfiles pathtogetfiles) Trying to execute this via php, and

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
Kelly Meeks wrote: Hi folks, I'm learning shell scripting via linux, and have written a script that creates the core files necessary for a users website from a master set of files. Works from the shell just fine (bash makethesite.sh username pathtoputfiles pathtogetfiles) Trying to

RE: [PHP] question about executing a bash shell script...

2002-08-16 Thread James E Hicks III
try something like: $bashoutput=shell_exec('/usr/bin/bash makethesite.sh username pathtoputfiles pathtogetfiles'); if that doesn't work can you use the system() function instead? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Kelly Meeks
Hi Robert, Thanks so much for the prompt reply. Actually, I'm not trying to execute a php script, I'm trying to execute a shell (bash) script. This works at the command line: bash makethesite.sh param1 param2 param3 This doesn't work via php $bashresult=shell_exec('bash makethesite.sh param1

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
Kelly Meeks wrote: Hi Robert, Thanks so much for the prompt reply. Actually, I'm not trying to execute a php script, I'm trying to execute a shell (bash) script. This works at the command line: bash makethesite.sh param1 param2 param3 This doesn't work via php

[PHP] secure files acess

2002-08-16 Thread David Buerer
I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question, is how can I allow the user to download or view only one file on my computer without allowthem to just enter the URL into

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
David Buerer wrote: I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question, is how can I allow the user to download or view only one file on my computer without allowthem to

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
Robert Cummings wrote: David Buerer wrote: I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question, is how can I allow the user to download or view only one file on my

RE: [PHP] secure files acess

2002-08-16 Thread Daniel Masson
Hi there !!! I had the same problem once ... This will save you !! http://www.zend.com/zend/trick/tricks-august-2001.php I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question,

RE: [PHP] secure files acess

2002-08-16 Thread David Buerer
Thankyou Robert, THat is a great and easy way to do it. What if I need to initiate a download to the user? -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:06 PM To: David Buerer Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] secure files

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
David Buerer wrote: Thankyou Robert, THat is a great and easy way to do it. What if I need to initiate a download to the user? If you set the mime type properly the browser will automatically make it a download versus displaying it. Cheers, Rob. -- .-. | Robert Cummings |

Re: [PHP] problem with mail()

2002-08-16 Thread Analysis Solutions
On Wed, Aug 14, 2002 at 10:04:46AM -0700, Gui Guy wrote: ...: SYSERR(nobody): Can't create transcript file ./xfg7E9Jlr03988: Permission denied : SYSERR(nobody): Cannot create ./dfg7E9Jlr03988: Permission denied Does it mean that php is trying to send mail from user nobody? Good

  1   2   >