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
-- From: Kevin Stone [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 thin

[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

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

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

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH> How do you insert a php variable into a javascript function? AH> function redirect() { location = ; } function redirect () { location = ; } or use: function redirect () { location = ; } The short syntax only works with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH> How do you insert a php variable into a javascript function? AH> function redirect() { location = ; } function redirect () { location = ; } or use: function redirect () { location = ; } The short syntax only works with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH> How do you insert a php variable into a javascript function? AH> function redirect() { location = ; } function redirect () { location = ; } or use: function redirect () { location = ; } The short syntax only works with short_open_tag enabled in php.ini or with ini_set(). -Ben -- PHP General

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

[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: 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. http://www.php.net/manual/en/function.rand.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 e

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

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

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

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 th

[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: 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: http://www.php.net/manual/en/language.variables.predef

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

2004-01-19 Thread Ben Ramsey
] Delivered-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED], Jon Bennett <[EMAIL PROTECTED]> Message-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 Thunde

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

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

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 you

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

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

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

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=whatever&dummy=f.csv Olwen - Sal Williams wrote: > Name it for example something.csv > > The in y

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 Gen

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

[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: http://www.virtual-fx.net/tutorials/

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
and Flash 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 u

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
data 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 messag

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

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 c

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

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

[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 (http://us4.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 tag for a newline and will not read a \n as a . So, use instead of \n. Viviane Hu wrot

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

[PHP] Problem making on RHEL v3

2004-09-01 Thread Ben Ramsey
what to try next (plus I need each of these options). Any help would be appreciated. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement.

[PHP] Re: PHP with Access DB without ODBC

2004-09-01 Thread Ben Ramsey
Juan Torres wrote: how can i connect php with an access db. I need to do it without use ODBC. Try using COM: http://us4.php.net/com It works similar to the way it does in ASP. -- Regards, Ben Ramsey http://benramsey.com --- http

Re: [PHP] Problem making on RHEL v3

2004-09-01 Thread Ben Ramsey
ndeclared (first use in this function) /usr/src/php/php_4_3_8/ext/pcre/php_pcre.c:416: `PCRE_INFO_NAMEENTRYSIZE' undeclared (first use in this function) make: *** [ext/pcre/php_pcre.lo] Error 1 Curt Zirzow wrote: * Thus wrote Ben Ramsey: I'm having a problem with PHP 4.3.8 failing to

[PHP] Re: MSSQL, PHP and Linux

2004-09-01 Thread Ben Ramsey
like most things where uncommented. here is the info page... http://mwvre.ht-tech.net/info.php This is something we have to get fixed today. Thanks!! -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community

Re: [PHP] Problem making on RHEL v3

2004-09-01 Thread Ben Ramsey
local after installing pcre 4.5 and everything worked just fine. Ben Ramsey wrote: Still having the same problem with PCRE. Here's the error I get now: -c /usr/src/php/php_4_3_8/ext/pcre/php_pcre.c -o ext/pcre/php_pcre.lo /usr/src/php/php_4_3_8/ext/pcre/php_pcre.c: In function `php_pcre_match'

[PHP] Re: register global off

2004-09-01 Thread Ben Ramsey
egister_globals", FALSE); > but it still doesn't work. > On php.net manual I can find WHAT I have to do and reasons but not HOW. Make an .htaccess file: php_flag register_globals off -- Regards, Ben Ramsey http://benramsey.com --- ht

[PHP] Re: register global off

2004-09-01 Thread Ben Ramsey
Actually, I think I read your message wrong... it should be: php_flag register_globals Off Ben Ramsey wrote: The Master value will remain On since it's On in php.ini and the Local value (the value for the directory in which phpinfo() is run) will be Off since that directory has an .hta

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Ben Ramsey
hp.net/manual/en/ref.dbx.php ---John Holmes... -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. -

[PHP] Re: register global off

2004-09-01 Thread Ben Ramsey
x27;Submit' and $POST['SubmitForm'] is empty. Why's that? Check to make sure you're using $_POST['SubmitForm'] and not $POST['SubmitForm']. -- Regards, Ben Ramsey http://benramsey.com --- http://www.ph

[PHP] Re: xml tags interfere with php tags

2004-09-01 Thread Ben Ramsey
Just do it like this: '; ?> Josh Close wrote: How do I get an xml tag to work with a php script? php is trying to parse that. -Josh -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community V

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Ben Ramsey
again with the -mssql switch but it still doesn't seem to be therethe -mssql isn't on the info page...I don't have a clue... http://mwvre.ht-tech.net/info.php On Wed, 01 Sep 2004 15:08:41 -0400, Ben Ramsey <[EMAIL PROTECTED]> wrote: Like I and others have said, you

[PHP] Re: PHP Linux "locate" to html script?

2004-09-03 Thread Ben Ramsey
Have you taken a look at the passthru() function? http://www.php.net/passthru Boot wrote: Does anyone have a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... -- Regards, Ben R

Re: [PHP] PHP Linux "locate" to html script?

2004-09-03 Thread Ben Ramsey
] Does anyone have a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... [/snip] exec("locate foo"); -- Regards, Ben Ramsey http://benramsey.com

[PHP] Re: creating a folder in php

2004-10-12 Thread Ben Ramsey
r Specifically, read the part about the Content-Disposition header. -- Regards, Ben Ramsey http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] creating a folder in php

2004-10-12 Thread Ben Ramsey
to work on Mac and PC. thx in advance Adil.. What's wrong with: This isn't even PHP. Because the OP is asking for how to have it prompt the user where to save a (assumingly downloaded) file--not how to choose a file to upload. -- Regards, Ben Ramsey http://benramsey.com -- PHP Gener

[PHP] Re: [PHP-DB] folder creation in php

2004-10-12 Thread Ben Ramsey
uations and force the browser to prompt the user to download the file with the correct filename you specify. -- Regards, Ben Ramsey http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] creating a folder in php

2004-10-12 Thread Ben Ramsey
e worms are everywhere. So, let's go fishing! -- Regards, Ben Ramsey http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: validate a tag

2004-10-05 Thread Ben Ramsey
se fill out question field."; display_form(); }//end of if }//end of func function insert_to_question() { display_form(); while(empty($HTTP_POST_VARS['question'])) test_var(); }//end of insert_to_question func insert_to_question(); ?> -- Regards, Ben Ramse

[PHP] Re: validate a tag

2004-10-05 Thread Ben Ramsey
mention that you may want to consider using PEAR::HTML_QuickForm as a way to rapidly develop forms that also provides form validation. http://pear.php.net/package/HTML_QuickForm -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org

Re: [PHP] Intro to PHP question

2007-03-08 Thread Ben Ramsey
and line. Why else does PHP have a CLI? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Intro to PHP question

2007-03-08 Thread Ben Ramsey
was perfect for the job. I can offer a few MBs for everyone that wants to get learning PHP. megabytes? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $35 to the first person who can do this XML-parsing PHP script

2007-03-08 Thread Ben Ramsey
/www.php.net/simplexml_load_file to load XML from a URL. Do I get the $35 anyway for the consultation? ;-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Ben Ramsey
olor in my browser! What craziness! ;-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php rich text editors

2005-04-07 Thread Ben Ramsey
DuSTiN KRySaK wrote: Can anyone refer me to anything that will work with PHP? Just need it for a blog type application. FCKEditor works well, has a PHP version, and is cross-browser: http://www.fckeditor.net/ -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List

[PHP] Re: shared library in php

2005-04-11 Thread Ben Ramsey
lready has the extension you're looking for. If it's a library you created and you want to use it as a PHP extension, take a look at the PHP manual, particularly the section on creating extensions: http://www.php.net/manual/en/zend.creating.php -- Ben Ramsey http://benramsey.com/ --

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
"full" or "modify" permissions to the Web directory. In general, permission settings under Windows suck. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: On Apr 11, 2005 8:28 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote: Ahmed Abdel-Aliem wrote: i have a problem with deleting files, i use windows XP and installed on it apache server & PHP 5.1 i use unlink($file) to delete files but it doesn't work while it w

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
should be: chmod("files/".$this->File_Name, 0777); See here for more info: http://us2.php.net/chmod Like I said, I'm not sure whether this is the cause of the problem, but give it a shot and see what happens. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
John Nichel wrote: b) Paths in the MS world are with the backslash (\) and not the forward slash (/) Windows NT onward (XP, 2003, etc.) should understand both the forward slash and the backslash in a file path. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http

[PHP] Re: Is the syntax correct?

2005-04-12 Thread Ben Ramsey
$order = "ASC" break; } mysql_query(" SELECT * FROM data ORDER BY id $order "); The rest of it looks fine to me. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shared library in php

2005-04-12 Thread Ben Ramsey
t. We don't want to promote illegal activities on this mailing list. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing Parameters to PHP Script

2004-04-20 Thread Ben Ramsey
-- 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] dynamically building insert/update forms from db

2004-05-14 Thread Ben Ramsey
mation about what columns and datatypes a table has (which is what I think you are most interested in). These are really easy-to-use classes, too. Then, I would also suggest checking out the PEAR::HTML_QuickForm class, as it has functions you can use to generate HTML forms. -- Regards, Ben Ramsey

[PHP] How to use pcntl_fork()?

2004-05-18 Thread Ben Ramsey
to be receiving from the socket unless I send. Ultimately, I want to remove all calls to receive() from my main program and let the "listener" take control of that, but I can't even tell if the above code is working, or if I'm even grasping how to make it work.

[PHP] Re: How to use pcntl_fork()?

2004-05-19 Thread Ben Ramsey
Does no one know how to use pcntl_fork(), then? ;-) Ben Ramsey wrote: I'm working with PHP-GTK to create a GUI application. This GUI application opens a socket to a "gaming" server to send/receive data to display to the user. So far, this is working well, but the problem is t

[PHP] Re: mail() problem

2004-06-03 Thread Ben Ramsey
and email from my sever when a new member creates an account, this ive done but my email gets binned straight away? must be the headers? Regards Rick -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Commu

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
o Any thoughts? thank you. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. --- -- PHP General Ma

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
he browser were the source code. LoadModule php4_module modules/libphp4.so Do you have apache v2.0.48 running with php v4.3.6? Any thoughts? -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 9:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] p

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
I also noticed that you're using .php and .phps in your AddType statement. Take out the dot (.) so that it's just php and phps. That may be the cause of the problem. Ben Ramsey wrote: Please reply to the list so that everyone can benefit from the conversation. I am running Apache

[PHP] Re: weird error

2004-06-03 Thread Ben Ramsey
R in . I have register globals on. (was off so i turned them on thinking that might be the problem..didnt work either way) Big thanks. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open

Re: [PHP] php installation verification

2004-06-03 Thread Ben Ramsey
est.php" file on the browser address as: http://localhost/test.php right??? What I was doing before was just going to the browser's File --> Open --> and specified the path to /tmp/php/test.php Please let me know, thank you. -- Regard

Re: [PHP] script location

2004-06-04 Thread Ben Ramsey
wing the functions is half the battle. :-) GI JOE!!! ---John Holmes http://www.ebaumsworld.com/gijoe.html -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more informati

[PHP] Re: shedule a php script

2004-06-05 Thread Ben Ramsey
die($add_member->getMessage()); } $db_object->disconnect(); ?> thanx in advance curlys -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more

Re: [PHP] Re: shedule a php script/ plz help

2004-06-05 Thread Ben Ramsey
1 * * root run-parts /etc/cron.monthly * * * * * root run-parts /etc/cron.d/abc.php am i correct , plz help me ..but it is still not running ? thank u - Original Message - From: "Ben Ramsey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 05,

Re: [PHP] other browsers

2004-06-07 Thread Ben Ramsey
Fatal error: Call to undefined function: is_set() The value of "edit_ip_x" will not be set unless the image is clicked on, so you can be sure that this is reliable, as Oliver mentioned. -- Regards, Ben Ramsey http://benramsey.com ---

Re: [PHP] source code display

2004-06-07 Thread Ben Ramsey
JN> Don't know if it matters or not, but all the 'examples' I've seen JN> have the dot before the extension, ie JN> JN> AddType application/x-httpd-php .php .php3 I've never used the dot (.) before the extension in Apache, and all works well. -- Regar

Re: [PHP] source code display

2004-06-07 Thread Ben Ramsey
pplication/x-httpd-php php3 AddType application/x-httpd-php php4 And so on... Ben Ramsey wrote: JN> Don't know if it matters or not, but all the 'examples' I've seen JN> have the dot before the extension, ie JN> JN> AddType application/x-httpd-php .php .php3 I've

[PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
p.ini). Please see http://www.php.net/ini_get and http://www.php.net/ini_set for more information. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or t

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
MK> I'm pretty sure this is what OP meant. He did not mention php.ini MK> being modified. Huh? Who's OP? And what is it that you're pretty sure he meant? -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommu

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
JN> ini_get() will return the current value for the ini_setting... JN> doesn't matter if it's from the php.ini, ini_set() or a JN> .htaccess file. All right. Clue me in here. How can an .htaccess file set/modify the values of php.ini? I wasn't aware that you could do

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
. Note this only works if PHP is an Apache module. Best regards, Richard Davey -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. -

Re: [PHP] Re: ini_get

2004-06-07 Thread Ben Ramsey
Disregard my incompetence... Chapter 4 does mention it on subsequent pages. Ben Ramsey wrote: That's pretty interesting there, and I'll definitely have to try it out. However, Chapter 4 mentions nothing about being able to set runtime values in an .htaccess file... unless I missed

[PHP] Re: PHP 4.3.5 on Red Hat Linux 9

2004-06-09 Thread Ben Ramsey
) ; return 0; } Can anyone help me to get PHP compiled without any errors. I have read messages on the mailing lists with no luck. Thanks Jerry _ Want to block unwanted pop-ups? Download the free MSN Toolbar n

[PHP] Re: PHP5 RC3 Runnay Processes

2004-06-09 Thread Ben Ramsey
to go about debugging such an issue, and would appreciate any pointers. Thanks, Michael BTW, I am running a Dual Xeon processor, 1 Gig ram, Red Hat 9, Apache 1.31 (I think that's right). -- Regards, Ben Ramsey http://benramsey.com --

  1   2   3   >