[PHP] Re: Testing Pear install

2004-03-03 Thread Ben Ramsey
PEAR without having to install it. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP! printing Arrays

2004-03-03 Thread Ben Ramsey
I know that others have already helped you learn out to print out an array, but you can also use print_r($array); to print out the array. It's not useful for the end-user of your application, but it can help you out as you're programming. -- Regards, Ben Ramsey http://benramsey.com http

[PHP] Re: server side redirects

2004-03-03 Thread Ben Ramsey
things on the server-side is always best and more secure; end-users are less likely to be able to screw things up. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: numeric characters

2004-03-02 Thread Ben Ramsey
Anokre wrote: Is there a way with php to force the user to put only numeric character in a text field ? thanks -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: strstr

2004-02-27 Thread Ben Ramsey
(/^(.*)\@(.*)$/, $email, $matches)) { // $matches[0] contains the original $email $user = $matches[1]; $domain = $matches[2]; } echo $user . br / . $domain; Check out the manual for more info on preg_match(): http://www.php.net/manual/en/function.preg-match.php -- Regards, Ben Ramsey http

[PHP] Re: values from string query

2004-02-26 Thread Ben Ramsey
haven't already done so. If the values aren't showing up in the variable, then you definitely need to include the curly braces. If they are showing up, then perhaps MySQL needs the single quotation marks. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People

[PHP] Re: Obtaing the URL of current page

2004-02-26 Thread Ben Ramsey
Take a look here, you may find this documentation useful: http://www.php.net/manual/en/language.variables.predefined.php Shaun wrote: Hi, How can i obtain the URL of the current page including any $_GET variables? Thanks for your help -- Regards, Ben Ramsey http://benramsey.com http

[PHP] Re: values from string query

2004-02-26 Thread Ben Ramsey
thanx yes i was echoing them and it worked!! Angelo Please remember to include the list on messages. Does this mean that your code now works? Or it still doesn't work but the values are being properly echoed? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki

[PHP] Re: PEAR file??

2004-02-25 Thread Ben Ramsey
/buildingbymatt/public_html/clients/security.php on line 4 -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR file??

2004-02-25 Thread Ben Ramsey
. If I use it in this way, there would be files in my application that would need to include it using .. :) -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Finding position of New line in string

2004-02-25 Thread Ben Edwards (lists)
I am trying to find the position of the first occurrence on new line in a string that comes from a database. I tried $pos = strpos( $list_text, /n ); But it never returns anything. Any help would be much appreciated. Ben -- Ben EdwardsTel +44 (0)1179 553 551 ICQ 42000477

[PHP] Re: PHP5: Directory DirectoryIterator

2004-02-25 Thread Ben Ramsey
using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice methods like: Where did you see these classes? Is it a PEAR package? I haven't seen these in the PHP manual. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General

[PHP] Re: PHP5: Directory DirectoryIterator

2004-02-25 Thread Ben Ramsey
That's some pretty helpful information there. I didn't know about that. Thanks! -Ben Vivian Steller wrote: Ben Ramsey wrote: using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice methods like: Where did you see these classes? Is it a PEAR package? I haven't seen

[PHP] Re: PHP5: Directory DirectoryIterator

2004-02-25 Thread Ben Ramsey
on directoryIterator, and I didn't see it when I used your function on beta 3 (which is what I'm running at present). So, it must be brand new. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Ben Ramsey
web site the m$ sql server web site and your local bookstore on online resource. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: hello

2004-02-23 Thread Ben Ramsey
I would advise against sending attachments to the list with the message read it immediately. Chances are, it won't be opened or looked at. Please include a description of the problem you are facing, as well as the code you are using in your message body--not in an attachment. [EMAIL

[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. http://www.php.net/manual/en/function.urlencode.php Piet From South Africa wrote: i have the following problem. when i href like this a href=nextpage.php?name=$name and the name contains a sign, it does not post it to the next page. if the name is bedbreakfast

[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. http://www.php.net/manual/en/function.urlencode.php Piet From South Africa wrote: i have the following problem. when i href like this a href=nextpage.php?name=$name and the name contains a sign, it does not post it to the next page. if the name is bedbreakfast

[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. http://www.php.net/manual/en/function.urlencode.php Piet From South Africa wrote: i have the following problem. when i href like this a href=nextpage.php?name=$name and the name contains a sign, it does not post it to the next page. if the name is bedbreakfast

[PHP] Re: Delayed mail()... ?

2004-02-20 Thread Ben Ramsey
Probably the best way to do this is the use cron to schedule a script to run at a specified time. The way I'd do it is to create a PHP script that compares the current date with the date they registered (you'd save that date to the database, of course). If the current date is greater than 3

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Ben Ramsey
... i've never heard ofit ;-) (I'll come out from under my rock now) Cheers everyone Ben Ramsey [EMAIL PROTECTED] 20/02/2004 13:36 To [EMAIL PROTECTED], Tristan Pretty [EMAIL PROTECTED] cc Subject [PHP] Re: Delayed mail()... ? Probably the best way to do this is the use cron to schedule

[PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
You might be able to create some function that uses a combination of array_keys(), array_values(), and array_combine() to do what you want. Check the manual at http://www.php.net/array for more information on these functions. Gerard Samuel wrote: Im looking for the fastest way to modify array

Re: [PHP] Re: Ideas on modifying array keys

2004-02-18 Thread Ben Ramsey
you want them to have? Gerard Samuel wrote: On Wednesday 18 February 2004 12:03 pm, Ben Ramsey wrote: You might be able to create some function that uses a combination of array_keys(), array_values(), and array_combine() to do what you want. Check the manual at http://www.php.net/array for more

Re: [PHP] How to calculate my local time?

2004-02-17 Thread Dr Ben Guofu Wu
Shouldn't you use javascript to get the local time of the HTTP client, and use PHP to get the time of the server? Ben On Tuesday 17 February 2004 11:47, Hamid Hossain wrote: [EMAIL PROTECTED] -- Dr Ben Guofu Wu Programming Director Tel: 01743-340034 Fax: 01743-368214 Icom Innovations, http

[PHP] Re: regular expressions

2004-02-17 Thread Ben Ramsey
I've always found the PHP manual to be very helpful: http://www.php.net/manual/en/pcre.pattern.syntax.php Pete M wrote: Getting completely confused how this stuff works !!! Anyone recommend a book for a regex newbie ? pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: regular expressions

2004-02-17 Thread Ben Ramsey
Ben Ramsey wrote: I've always found the PHP manual to be very helpful: http://www.php.net/manual/en/pcre.pattern.syntax.php Pete M wrote: Getting completely confused how this stuff works !!! Anyone recommend a book for a regex newbie ? pete -- PHP General Mailing List (http://www.php.net

[PHP] Re: destroy session

2004-02-17 Thread Ben Ramsey
Take a look at the manual. There is a session_destroy() function: http://www.php.net/session Natalia Sensini wrote: I want to destroy a session when you click in a sing out link, something like this a href= link onClick=session_destroy() Is ti possible? how? -- PHP General Mailing List

[PHP] Re: PHP License question

2004-02-13 Thread Ben Ramsey
, in this case, I chose to use the following wording, and the folks at FSF told me this was fine: snip In addition, as a special exception, Ben Ramsey gives permission to link the code of this program with those files in the PEAR library that are licensed under the PHP License (or with modified

Re: [PHP] Re: PHP License question

2004-02-13 Thread Ben Ramsey
Yup. I believe that's what you have to do in order to satisfy the restrictions in the GPL. Gerard Samuel wrote: So to clarify. If I have a piece of code that utilises PEAR's Tar class (which uses a PHP License). In order for me to distribute my piece of code (under the GPL) along with the Tar

[PHP] PHP License question

2004-02-12 Thread Ben Ramsey
I currently developing a project that I wish to release under a, preferably, open-source and copy-left license. So, I'm taking a close look at the GNU GPL for this, and it seems to serve this purpose, well. However, I am aware that the PHP license conflicts with the GNU GPL, and, thus,

[PHP] Re: sql query question

2004-02-12 Thread Ben Ramsey
This is a SQL question, rather than a PHP question, so I would suggest doing a google search on SQL tutorials, but I think what you are trying to do would work like this: SELECT * FROM table WHERE descript LIKE '%new%' OR descript LIKE '%car%' Tony wrote: hi if i have new car and i want

[PHP] mutliple select form not passing multiple values

2004-02-11 Thread Ben Ramsey
: print_r($_POST); The only thing that is being saved to $_POST['modules'] is the last value (15). When I count($_POST['modules']), I only get 1, so I know that it's not passing back an array of numbers like it should. Am I doing something wrong? -Ben -- PHP General Mailing List (http

Re: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Ben Ramsey
: Hello Ben, Wednesday, February 11, 2004, 9:22:33 PM, you wrote: BR Am I doing something wrong? Yup :) It needs to be: select name=modules[] ... Note the change in name from modules to modules[] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: ODBC connection..

2004-02-10 Thread Ben Ramsey
I don't know about a user DSN, but I do know it's possible to create an ODBC connection, using the ODBC functions. Check out the manual: http://us4.php.net/manual/en/ref.odbc.php Andrew Kwiczola wrote: Heya, I was wondering if its possible to create a odbc connection with php, using a User

[PHP] Re: Simple PHP Encoder

2004-02-10 Thread Ben Ramsey
There's the Zend Encoder, which is fairly expensive. However, I suppose you could use the base64_encode function to do what you want: http://us2.php.net/manual/en/function.base64-encode.php. My idea is that you could create a script that would read in your PHP scripts using the filesystem

[PHP] Re: DLL in PHP?

2004-02-09 Thread Ben Ramsey
I assume you would just register the COM object on the server and call it with PHP's COM functions (like in ASP). Check out the COM functions in the manual: http://www.php.net/manual/en/ref.com.php Radwan Aladdin wrote: Hi All, Just would like to know if you can call DLL from PHP the same

[PHP] Re: DLL in PHP?

2004-02-09 Thread Ben Ramsey
I mean register the DLL and treat it like a COM object. :) -Ben Ben Ramsey wrote: I assume you would just register the COM object on the server and call it with PHP's COM functions (like in ASP). Check out the COM functions in the manual: http://www.php.net/manual/en/ref.com.php Radwan

[PHP] mnoGoSearch on Windows?

2004-02-09 Thread Ben Ramsey
. I would also like the ability to access the engine through PHP, if possible. Any suggestions or favorites out there? I would prefer not to write one on my own. Thanks. -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: function only available if PHP4 compiled using --enable-exif

2004-02-07 Thread Ben Ramsey
. The extension should now work, and you didn't have to recompile anything. -Ben Paul Furman wrote: Does this mean I need to recompile from source code? (seems an extreme measure to me but what do I know) Is that difficult to do on a windows machine? I see it in some phpinfo's out there like this: http

[PHP] Re: Need a way to automate user logout

2004-02-05 Thread Ben Ramsey
Write the script in perl and chmod it to 755. Then use cron to schedule it. Here's a tutorial to show you how: http://www.unixgeeks.org/security/newbie/unix/cron-1.html Christian Calloway wrote: Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I

[PHP] Re: newbie pls help

2004-02-04 Thread Ben Ramsey
RedHat 8 should already have apache and PHP installed on it. You may just need to start the httpd service to get apache working. -Ben Mrs. Geeta Thanu wrote: Hi all, I want to install apache and php in a redhat box version 8 and want apache to load php. So how i shld proceed. Just downloading

[PHP] Re: MySQL: Order by

2004-02-04 Thread Ben Ramsey
fine. Hope that answers your question, and, yes, this is more of a MySQL question. ;-) -Ben John Taylor-Johnston wrote: This is probably a MySQL question, and maybe an easy question, but I'm here to learn |:) When I order by number, it echoes 1,2,3,4,5,6,7,8,9,10 and hten jumps to 100...199

[PHP] Re: recursive direcotry listing

2004-02-04 Thread Ben Ramsey
(is_file($dirPath/$fentry)) { echo $dirPath/$fentry; } } closedir($fstream); return true; } else { return false; } } Hope this helps! -Ben Binay wrote: Hi all, is there function which scans a particual directory recurisly

[PHP] Script timeout?

2004-01-27 Thread Ben Ramsey
generated. Could this be due to a script timeout? If so, how do I raise the timeout value? -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script timeout?

2004-01-27 Thread Ben Ramsey
Ah... I was trying to lookup the word timeout, which was giving me nothing. Thanks! Also, shouldn't I be receiving an error message if the script is, in fact, timing out? I have checked display_errors and it is turned on. [EMAIL PROTECTED] wrote: Hello Ben, On 27 Jan 2004 at 9:27, Ben

Re: [PHP] Googlebot

2004-01-27 Thread Ben Ramsey
Perhaps this link will help: http://www.google.com/webmasters/ Frank Tudor wrote: That's not very helpful. I am also curious about this. Anyone have a more thought provoking answer? Frank --- Raditha Dissanayake [EMAIL PROTECTED] wrote: If you read the pages on google you will know the

Re: [PHP] Script timeout?

2004-01-27 Thread Ben Ramsey
for future use and then do as someone said and save all the e-mail addresses to an array (and perhaps even free the result set) before sending. Thanks! -Ben Marek Kilimajer wrote: You should. I know I did in older version of php, now I don't. Ben Ramsey wrote: Ah... I was trying to lookup

Re: [PHP] Re: Regex Help

2004-01-27 Thread Ben Ramsey
][0]. Karthikeyan.Balasubramanian wrote: Hi Ben, Your code works but If i remove the delimter [] which I gave so that you could capture the data which needs to be picked it doesnt work?. Any help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: question PHP - HTML

2004-01-26 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you View Source in IE, you'll see it printed in the expected way. The browser, though, will not show it as you expect it. This is because the browser needs a br tag for a newline and will not read a \n as a br. So, use br instead of \n. Viviane Hu

[PHP] Re: send a POST to a URL from within PHP code

2004-01-26 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I answered a question similar to this yesterday. There is a user-submitted function listed in the PHP manual under HTTP functions that will POST to another page from within a PHP script and return the value of the POST back to the PHP script without

[PHP] Re: Regex Help

2004-01-26 Thread Ben Ramsey
Check the PHP manual for preg_match() (http://us3.php.net/manual/en/function.preg-match.php). I did play around with it a little bit, and I think I've got a starting point for you to work with. Try out this code and then play around with it to get the results you need. $matches[2][0] will

[PHP] Re: PHP integration with ASP

2004-01-25 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Since the action of your form is the ASP script, it will always take your user to the ASP script and not return results to the PHP application, which I think it what you want to do, if I am not mistaken. I found a link in the manual

[PHP] Access Violation at 77FCC61F?

2004-01-23 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone know what this error means: PHP has encountered an Access Violation at 77FCC61F I'm running PHP 5.0 beta 3 on IIS 5.0 on a Win2K machine. I received the above error message multiple times after changing addslashes($value) to str_replace(',

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Ben Ramsey
recognition. Other brands that have this same level of recognition include Coke, Tylenol, Tupperware, etc. - -Ben Tim Thorburn wrote: | Well there's also the small fact that under US copyright law if a | company doesn't enforce its rights over said copyright, they lose the | right to use it exclusively

Re: [PHP] Why we love Microsoft (0t) - JELLO

2004-01-23 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As a humorous sidenote, I meant to say: let's hope that Windows (a registered trademark brand of Microsoft) doesn't get to the level of name recognition where the consumer refers to all graphical desktops as Windows. ;-) Roger Spears wrote: | Another

Re: [PHP] PHP 5 Book

2004-01-22 Thread Ben Ramsey
VIEWs are those nice things that PostgreSQL includes that MySQL doesn't yet. ;P Jay Blanchard wrote: [snip] Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I can't find that in any of the new features logs. Anyone know about this? It'd be a great feature to have. Unless,

Re: [PHP] MSSQL connection

2004-01-22 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If your Web server is running on a machine that is separate from your database server, then you'll also need to copy the file ntwdblib.dll from the database server to your C:\WINDOWS\system32 folder. PHP needs that DLL for the mssql functions to work

[PHP] Re: PHP FuseBox

2004-01-21 Thread Ben Ramsey
in helping create this standard. Nonetheless, some good coding practices for PHP are in the PEAR manual (as this is the standard way that PEAR developers request that you code PEAR packages). These standards may be found at: http://pear.php.net/manual/en/standards.php -Ben Alex Pilson wrote

Re: [PHP] PHP 5 Book

2004-01-21 Thread Ben Ramsey
Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I can't find that in any of the new features logs. Anyone know about this? It'd be a great feature to have. Unless, of course, anyone knows how to do this without a CREATE VIEW statement. -Ben [EMAIL PROTECTED] wrote: (cant

Re: [PHP] PHP FuseBox

2004-01-21 Thread Ben Ramsey
If you checked out the PHP Community site announcement on the php.net site, you'd notice that the site may involve some coding standards creation. I find this very interesting and perhaps exciting. http://shiflett.org/archive/19 [EMAIL PROTECTED] wrote: I've developed my own methodology and

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Ben Ramsey
Firebird 0.7 prior to that. Since the client uses IE rather than Mozilla, then I won't worry about it for now. However, it still would be a good idea to find a way to resolve it. Any other ideas? Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Ben Ramsey
[EMAIL PROTECTED] wrote: or download the file without the php-script and analyse the http-headers with a network-sniffer There is no way to download the file without the PHP script. It is being generated by the PHP script from data in a database. The file does not actually exist. -Ben

Re: [PHP] $_SESSION

2004-01-20 Thread Ben Ramsey
Alex Hogan wrote: I got back an error that read; Warning: session_start(): Cannot send session cookie - headers already sent by Warning: session_start(): Cannot send session cache limiter - headers already sent. You need to use session_start() before any headers are written. -Ben -- PHP

[PHP] Re: connecting PHP to MS Access

2004-01-20 Thread Ben Ramsey
function reference is at: http://us3.php.net/manual/en/ref.odbc.php -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
/html/loadtextfile.htm Also, from what I understand, Flash now has a great XML parser, so you could use PHP to generate XML and Flash could read in the XML as variables. You might want to look into that, but I think it's only available in the newest version. -Ben Eric Bolikowski wrote: Hi

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
can read that in just fine without needing to connect via a socket. -Ben Ben Ramsey wrote: Flash has the ability to read in text files, so you could use PHP to output data in the correct format and use Flash to read the PHP script like it reads a text file. We did this in ASP once upon a time

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
at Macromedia.com may be the best place to ask. Then again, I could be absolutely wrong. ;-) -Ben Eric Bolikowski wrote: Hey Ben I know it may sound nuts, but I really want to make a socket connection between a Flash and a PHP file. Normally I would simply read in a text file/read XML/send data

[PHP] Re: Variables not working!

2004-01-19 Thread Ben Ramsey
/language.variables.predefined.php -Ben Kaushan wrote: Hi, I am new to PHP scripting and struggling with the following problem. I have two files, an HTML file and a PHP file. HTML file contains a form with one text field and a submit button. When a user pressed the submit button, it calls the php file (form action

[PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-19 Thread Ben Ramsey
What the heck does this mean? I've been receiving a ton of these even though I haven't sent many messages to the list. -Ben ---BeginMessage--- This report relates to your message: Subject: [PHP] Re: dynamic array creation from form elements, Message-ID: [EMAIL PROTECTED

[PHP] Re: libphp_common430 is in conflit with php-4.3.1-11mdk

2004-01-19 Thread Ben Ramsey
What's the error? Luiz Gustavo Sarubi Macchi wrote: Please, I´m trying to compile PHP so it´s reporting an error: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this code right?

2004-01-19 Thread Ben Ramsey
.. It already looks like you're doing that with the code: if($UserSerial == $Serial){ Is that not working? -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Server Map Path

2004-01-19 Thread Ben Ramsey
Is there an equivalent to Server.MapPath(MyDir\MyLocation) in php? I've looked in the docs and don't seem to find it. I did find a reference to; I believe what you're looking for is: realpath('./') That should do the same trick as Server.MapPath(). -Ben -- PHP General Mailing List (http

Re: [PHP] Is this code right?

2004-01-19 Thread Ben Ramsey
: $Serial = $_GET['Serial']; $UserSerial = $row[0]; if ($Serial == $UserSerial) Then, that should at least compare the serial field from the database with the serial variable in $_GET. -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Generating an Excel file?

2004-01-19 Thread Ben Ramsey
I'm pretty sure I know how to use header() create a CSV file for a client to download data from a database, but I think it would really impress this client if I could generate a Microsoft Excel file instead of a CSV file. Anyone know how to do this? -Ben -- PHP General Mailing List (http

[PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
headers is: header(Content-Type: text/comma-separated-values); header(Content-Disposition: attachment; filename=$name.csv); Do I need to add another header? -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
Adding any of those headers still does not remove the .php from the end of the file when I am prompted for the download. I have a client that will be downloading this file, and I do not wish to instruct them to first remove the .php extension before they can view it. -Ben [EMAIL PROTECTED

[PHP] Re: Please help me with these questions..

2004-01-16 Thread Ben Ramsey
://www.php.net/manual/en/language.variables.external.php Hope that helps! -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to compare between two values?

2004-01-16 Thread Ben Ramsey
with an equals sign. I do not know whether this is also the case in PHP. But, nonetheless, it's just another way of doing things. Again, check the documentation. This one can be found at: http://www.php.net/manual/en/function.strcmp.php -Ben -- PHP General Mailing List (http://www.php.net

[PHP] Re: Schedule an Event with PHP

2004-01-16 Thread Ben Ramsey
on the date. -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: dynamic array creation from form elements

2004-01-16 Thread Ben Ramsey
Try using $_POST[listItem$i] instead of $_POST[listItem . $i] or do something like this: $post_var_name = 'listItem' . $i; this do $_POST[$post_var_name]; I don't think you can do any evaluation within the brackets. Thus, you couldn't use the concatenating dot. -Ben -- PHP General Mailing

[PHP] Re: dynamic array creation from form elements

2004-01-16 Thread Ben Ramsey
I don't think you can do any evaluation within the brackets. Thus, you couldn't use the concatenating dot. Nevermind... I am wrong on this. But, I also completely missed that the code you have posted doesn't set $iListItems as Richard suggested. So, go with his suggestion. :) -Ben -- PHP

[PHP] Re: sorting multi-dimensional arrays

2004-01-16 Thread Ben Ramsey
. -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: server hanging on php site

2004-01-16 Thread Ben Ramsey
really no leads (that I can see) to give us a clue as to where the problem is. Your best bet is to check the Apache error logs and see if an error is being generated and saved there. Perhaps someone else could offer some better suggestions than I? -Ben -- PHP General Mailing List (http

[PHP] Re: Please help me retrieving data from a PHP file!!???

2004-01-16 Thread Ben Ramsey
mailing list, since they may be able to help you better. If your PHP script just echos something, then you'll need to find out what VB function there is to execute the PHP script and grab the value that is echoed. -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Installing PHP on IIS6 Windows 2003

2004-01-15 Thread Ben Ramsey
and it worked just fine. You'll need to download the zip package on the downloads page to follow these steps -- http://www.php.net/downloads.php -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: create_function() and anonymous methods

2004-01-15 Thread Ben Ramsey
at. You may read up on this at http://www.php.net/zend-engine-2.php -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Junk Mail from this List?

2004-01-15 Thread Ben Ramsey
it to sign up for anything else (I just created the address, actually). So, I assume that these messages are some sort of bouncebacks from my posts. Has anyone else experienced a similar problem, and is there a way to stop this other than marking these as spam in Thunderbird? -Ben -- PHP

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: server hanging on php site

2004-01-15 Thread Ben Ramsey
and post it. You may also use ini_set() to set display_errors to 1 to turn them on for a particular page only. -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: filtering filename.ext on file-upload.

2004-01-15 Thread Ben Ramsey
How can you filter the extension for files being uploaded on a system via form. Use pathinfo() ... check it out at http://www.php.net/manual/en/function.pathinfo.php -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Script Needed

2004-01-14 Thread Ben Ramsey
The script should be easy enough to create on your own. Just check the documentation on the mail() function at php.net. -Ben Eric Belardo wrote: Good evening all, I am designing a website were different users will be posting their portfolios and I am seeking a PHP Contact form script

[PHP] Evaluating Variables at the correct time

2003-12-30 Thread Ben Wrigley
Ben Wrigley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] preg_replace help

2003-12-19 Thread Ben
I am trying to build a pattern to do the following: - Find all occurences of HREF= and SRC= except those that include the HTTP:// in their path - Insert my own domain string (e.g.: http://www.my_domain.com) So has an example the input string would be : $val = ' A

[PHP] preg_replace help

2003-12-19 Thread Ben
I am trying to build a pattern to do the following: - Find all occurences of HREF= and SRC= except those that include the HTTP:// in their path - Insert my own domain string (e.g.: http://www.my_domain.com) So has an example the input string would be : $val = 'A

[PHP] PHP LDAP query - need to add Exchange fields

2003-12-17 Thread Ben Crothers
]*)); ...but so far it's not working. I *know* there's data in the 'office' field -- any ideas as to what I'm missing? Thanks a lot in advance, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP LDAP query - need to add Exchange fields

2003-12-17 Thread Ben Crothers
]*)); ...but so far it's not working. I *know* there's data in the 'office' field -- any ideas as to what I'm missing? Thanks a lot in advance, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regular expression help

2003-11-25 Thread Ben
I need someone to tell me exactly what this regular-expression means: if(ereg([^ \t\n],$val)) { // do the job here } I'm looking for an intermittent bug, and I need to understand this to make sure I have found the bug. Thanks -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Regular expression help

2003-11-25 Thread Ben
Thanks Bronislav for your answer but this can't be it as the following test code passes validation: ?Php $val = \t test \n; if(ereg([^ \t\n],$val)) { echo 'In here!!'; } echo 'BR' . nl2br($val); ? Anyone has an idea? Bronislav kluèka [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

<    2   3   4   5   6   7   8   9   10   11   >