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

[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
I'm running PHP 5.0b3, so I'm not sure whether this is an issue with the version of PHP I'm running. I've got a select field in a form that is allowing multiple selects: select name=modules size=10 multiple=multiple id=modules style=height: 150px; option value=2 selected=selectedBanner

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

2004-02-11 Thread Ben Ramsey
Ah-ha! I missed that, and I always do. Let's hope I don't anymore. While we're on the subject, why is PHP set up this way? Why can't it just add the elements to the array automatically, since adding the square brackets to one's HTML form name is not a standard practice? Richard Davey wrote:

[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
According to the PHP manual, the mnoGoSearch extension is not available on the Windows platform. I had considered installing mnoGoSearch on our Windows box running PHP (even though I will have to pay for the Windows version of mnoGoSearch). However, now that I've seen this in the manual, I

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

2004-02-07 Thread Ben Ramsey
If you're on Windows, you should see a file by the name of php_exif.dll in your PHP\extensions directory. It should've come with the distribution. Depending on the way your php.ini file is set up, you may either leave this file in its current location, or you may need to copy it to your

[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
I assume number is a column name in your table. If so, I'm also guessing that it's probably of a varchar (or some other character type) datatype. Here's why: if it's a character, then ORDER BY will sort alphabetically. The way it sorts number alphabetically is rather odd, but it makes sense

[PHP] Re: recursive direcotry listing

2004-02-04 Thread Ben Ramsey
I don't know if there's a built-in function, but I had written this function, which does what you're trying to do, I think. You can modify it to store the values in an array, if you like. I just have it echoing the files (with their full paths). Here's the function: function readDir

[PHP] Script timeout?

2004-01-27 Thread Ben Ramsey
I'm trying to run a query against a database with a PHP script that cycles through each record (about 4,000+) and sends and e-mail to them if they have an e-mail address present. The problem is that everytime I do this, it processes about 430 records and stops. There is no error message

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
Why do you need to remove the delimeters? If you remove them, then it makes it quite difficult to get the data you need. If you want to display the date and race type without the square brackets around them, then use $matches[0][1] and $matches[1][1] instead of $matches[0][0] or

[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
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Copyright and trademark are two wholly separate things. The Kimberly-Clark Corporation has a registered trademark on the name and logo for Kleenex. Thus, no one else has a right to use the word Kleenex to describe their product. That, however,

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
As far as I can tell, there isn't a common coding practice among PHP developers. What I mean is: there is no standard as in ANSI Standard C++. However, I believe that there beginning to be a move toward a more standardized way of coding, and I would greatly support and like to be involved in

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
John W. Holmes wrote: From what I've seen on here, the only workaround is to pass an extra variable in the URL that ends in .csv, even though you don't need to use that variable. file.php?var=whateverdummy=f.csv Olwen - Sal Williams wrote: Name it for example something.csv The in your

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
Sounds to me like you have everything pretty much figured out now, but no one has yet mentioned the ODBC functions built into PHP, so I thought I'd throw that out as a way to actually connect to and retrieve data from a MS Access database. Just set up a DSN and connect to it. The ODBC

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
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. Here's a tutorial about reading text files into Flash:

[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
with GET or POST, but I'm looking for a socket connections of following reasons: 1) I want a fast connection 2) I'm looking at this as a challenge, because it doesn't seem like anyone else has done this before Eric Ben Ramsey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What I mean

[PHP] Re: Variables not working!

2004-01-19 Thread Ben Ramsey
Try using $_POST['fname'] instead of $fname. This just means that register_globals is probably set to off in php.ini, which is the recommended setting. Take a look at the section on predefined variables in the PHP manual for more on this:

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

2004-01-19 Thread Ben Ramsey
-ID: [EMAIL PROTECTED] Date: Fri, 16 Jan 2004 10:38:49 -0500 From: Ben Ramsey [EMAIL PROTECTED] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 References: [EMAIL PROTECTED] In-Reply-To: [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
Radwan Aladdin wrote: Oh sorry.. I didn't notice that.. anyway.. I want to know.. what to add to this code to make it also check the serial between the database (That users' row) and the GET variable before it echos anything.. so the UserName, Password and Serial must be the same for that user..

[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

Re: [PHP] Is this code right?

2004-01-19 Thread Ben Ramsey
Radwan Aladdin wrote: Do you mean this is the right code : The code overall looks right, but you set $Serial twice... first you do: $Serial = $_GET['Serial']; Then you do: $Serial = htmlspecialchars($row[0]); Then you set $UserSerial to $row[1] (the same as the Password column). So, when

[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

[PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
Alright. You've all given some great suggestions, and I'm going to track them down. But, for now, I'm settling for creating a CSV file. My next question: How do I get the file to download without the .php extension on the end? It's downloading it as filename.csv.php. The code to right my

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
An excellent resource for all these questions is the documentation found at http://www.php.net/docs.php. Below, I've provided some links to the specfic docs for each question. 1- MD5 with PHP values. http://www.php.net/md5 2- Random values in PHP.

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

2004-01-16 Thread Ben Ramsey
How to compare between two values You may also use strcmp() to compare string values: if (strcmp($string1, $string2) == 0) { //do stuff } I know that in ASP (*gasp*... he uses a MS technology!) the StrComp function has an increased performance difference over comparing the strings with an

[PHP] Re: Schedule an Event with PHP

2004-01-16 Thread Ben Ramsey
Besides using CRON to hit that particular event table, is there any other method I am not thinking of that can be used with PHP? I want to check that event table every 5 minutes. If this is on a Web site, can you not just check the database everytime a user hits a page in the site rather than

[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
//now, I want that array sorted by the clinic_name, and then doc_name. Can someone who has more currently active brain cells than me figure out what the array_multisort function call should look like? In the documentation, I've found plenty of examples to do a multi-dimensional sort on one

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

2004-01-16 Thread Ben Ramsey
BK PHP page causes the whole httpd to stop responding momentarily; BK no sites will load, those that are loading stop in the middle. BK But after say 30-45 seconds it continues just fine BR First of all, make sure that display_errors in your php.ini BR file is set to On. I believe that the

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

2004-01-16 Thread Ben Ramsey
How to retrieve data from a PHP file? (The value that will be retrieved of course it is echoed in the PHP file, and it will be shown in a TextBox in my VB program.. so I want to retrieve it to my EXE VB program that will put it inside a TextBox or something like that..) From within a PHP

[PHP] Re: Installing PHP on IIS6 Windows 2003

2004-01-15 Thread Ben Ramsey
I'm suffering from installing PHP on IIS 6.0, Windows 2003 Web Edition Server. Any how-to ? or anyone how can write the instructions how to do it exactly ? I found a helpful guide to installing PHP on IIS 6.0 (Win2003). Browse to http://www.php.net/manual/en/installation.php . Look in the

[PHP] Re: create_function() and anonymous methods

2004-01-15 Thread Ben Ramsey
Is it possible to use create_function() to define anonymous methods (like in Java) ? I'm not exactly sure what an anonymous method is, but I do know that PHP 5.0 Beta 3 offers a new object model that includes abstract classes and methods, which may be something you will want to take a look at.

[PHP] Junk Mail from this List?

2004-01-15 Thread Ben Ramsey
I'm using Mozilla Thunderbird 0.7 to view and post to this news group, so I don't know if that has anything to do with this, but, after just posting a few messages to the list, I've received a bunch of what I consider spam to my e-mail address. The spam doesn't consist of advertisements but

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

[PHP] Re: server hanging on php site

2004-01-15 Thread Ben Ramsey
I don't see any errors or an increased cpu/memory load. First of all, make sure that display_errors in your php.ini file is set to On. I believe that the distribution file that comes with PHP has it set to Off by default. Once it's set to On, see if you can get it to generate an error and

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

RE: [PHP] ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØ

2002-07-09 Thread Ben Ramsey
I've just joined this mailing list this afternoon. Does this kind of thing happen often? If so, I'm going to leave the list. Ben -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] Ben

2002-07-09 Thread Ben Ramsey
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 4:20 PM To: Ben Ramsey; [EMAIL PROTECTED] Subject: Re: [PHP] Ben First time Ben don't worry about it. This list is actually very adult much more so than others I've belonged to. But you just can't prevent things like this on an unmoderated list

<    1   2   3