[PHP] Phpmyadmin password

2008-12-16 Thread It flance
Hi, I lost phpmyadmin password. Is there anyway to recover it? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Holocoste against palestinians

2009-01-07 Thread It flance
The message is to webhosting companies, Israel is killing palestinian children. Some sites are are showing the fotos of israel's holocoste against palestinians. Now here is a link that shows to israelis how to fight that too: http://www.jpost.com/servlet/Satellite?cid=1231167272840&pagename=JPos

[PHP] Email configuration

2009-02-05 Thread It flance
Hi all, I've installed php and mysql in fedora. Now i am able to create php programs. But when I am unable to use email in my programs. I am wondering what is the easiest way to use email in my php programs. Can i send email from my personal computer. I am a regular person connected to internet

Re: [PHP] Email configuration

2009-02-05 Thread It flance
ts.php.net > Date: Thursday, February 5, 2009, 3:19 PM > 2009/2/5 Thodoris : > > > > I think that the OP mentioned the word fedora > somewhere above... > > > > Oh sorry, I'm so stupid... Anyways, if you want to send > mail to large > providers you'll need

Re: [PHP] regular expressions question

2008-03-05 Thread It Maq
Hi, I am using that right now and i have don't know how to include blank fields. For example if a user does not fill a field in a form i want to accept it. I tried the code you posted, for now it is blocking blank fields. Thank you - Original Message From: Richard Lynch &l

[PHP] Error handling

2008-03-11 Thread It Maq
Hi, I need help with a simple script that i made for handling errors. The problem is that the script displays the same message several times while i want it displayed just one time. He is the code: "; echo $errno. ""; } } set_error_handler(error_handler, E_S

Re: [PHP] Error handling (skip this message my mistake)

2008-03-11 Thread It Maq
Sorry, i found the error. it was my mistake - Original Message From: It Maq <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Tuesday, March 11, 2008 11:38:10 AM Subject: [PHP] Error handling Hi, I need help with a simple script that i made for handling errors. The probl

[PHP] best practices in error handling in PHP

2008-03-12 Thread It Maq
Hi, I want to know what is the best solution for handling errors. After reading some documents dealing with the subject, i have three options: * Using a class for error handling * Using PEAR error object * Using try and catch exceptions The error handling i want to implement will be done in a bi

Re: [PHP] best practices in error handling in PHP

2008-03-12 Thread It Maq
Yes you are right i can use trigger_error that will use the function that handles errors from my class. Thanks - Original Message From: Christoph Boget <[EMAIL PROTECTED]> To: It Maq <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Wednesday, March 12, 2008 10:31:0

Re: [PHP] best practices in error handling in PHP

2008-03-12 Thread It Maq
I mean using calling trigger_error from the catch{} Yes you are right i can use trigger_error that will use the function that handles errors from my class. Thanks - Original Message From: Christoph Boget <[EMAIL PROTECTED]> To: It Maq <[EMAIL

[PHP] Intercepting errors

2008-03-13 Thread It Maq
Hi, Now i know how to create errors with trigger_error, but i am wondering how can I make my error handling class intercept any kind of error although i'm not aware about it and i don't know if it will happen. Is this possible?

Re: [PHP] Intercepting errors

2008-03-13 Thread It Maq
: Richard Heyes <[EMAIL PROTECTED]> To: It Maq <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Thursday, March 13, 2008 10:36:20 AM Subject: Re: [PHP] Intercepting errors > Now i know how to create errors with trigger_error, but i am > wondering how can I make my error handl

Re: [PHP] Intercepting errors

2008-03-13 Thread It Maq
I already read th page of the manual, but i still don't understand a lot of things. Below you will find a simple code that i ade for understanding more about this. In the code i'm triggering an error of type "E_USER_ERROR", so now i'm wondering why it is not cons

Re: [PHP] Intercepting errors (skip)

2008-03-13 Thread It Maq
sorry i just forgot to print the results. It 's my mistake - Original Message From: It Maq <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Thursday, March 13, 2008 11:22:36 AM Subject: Re: [PHP] Intercepting errors I already read th page of the manual, but i

[PHP] How to get error context

2008-03-13 Thread It Maq
); //trigger_error("The string for testing the error", E_USER_WARNING); $ourFileName = "testFile.txt"; $fh = fopen($ourFileName, 'X');// or die("Can't open file"); fclose($fh); ?> ____

Re: [PHP] How to get error context

2008-03-14 Thread It Maq
Hi, I maid the modifications you suggested. For the error context when i display it, it gives a lot of information, but not easy to understand how the array is structured. If somebody knows about a site explaining how to access the context it would be great. I also modified the error reporting to

Re: [PHP] How to get error context

2008-03-14 Thread It Maq
For example "mysql_connect" reprted automatically the error but in the manual http://us3.php.net/manual/en/function.mysql-connect.php all they give as information is the return: "Returns a MySQL link identifier on success, or FALSE on failure.", where can i see if it throws an

Re: [PHP] How to get error context

2008-03-14 Thread It Maq
14, péntek keltezéssel 07.40-kor It Maq > ezt írta: > > For example "mysql_connect" reprted automatically > the > > error but in the manual > > > http://us3.php.net/manual/en/function.mysql-connect.php > > all they give as information is the return: &g

[PHP] algorithm of pages beaking

2008-03-19 Thread It Maq
Hi, I am working in page breaking (dividing the result of a select query in multiple pages). Now my problem is not with the php code, but with the algorithm that organize the links to the pages. I want to do something like google, the pages numbers at the bottom of the page must not exceed a maxi

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread It Maq
Hi, did you try mysql_num_rows ? --- Andrew Ballard <[EMAIL PROTECTED]> wrote: > On Wed, Mar 19, 2008 at 1:04 PM, TG > <[EMAIL PROTECTED]> wrote: > > > > It seems that count(*) pulls all the data from > the row then performs a count > > increment

[PHP] convert associative array to ordinary array

2008-03-28 Thread It Maq
Hi, i have an associative array and i want to use it as an ordinary array, is that possible? what i mean is instead of $arr['fruit'] i want to call it by its position in the array $arr[

Re: [PHP] convert associative array to ordinary array

2008-03-28 Thread It Maq
thank you, it works! --- Casey <[EMAIL PROTECTED]> wrote: > On Fri, Mar 28, 2008 at 10:33 AM, Daniel Brown > <[EMAIL PROTECTED]> wrote: > > On Fri, Mar 28, 2008 at 2:27 PM, It Maq > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > &g

[PHP] How to write simpleXML object to a file

2008-04-04 Thread It Maq
Hi, I am reading an xml file. After that i modify one node. IN the xml object that i'm handling it is modified but not in the original file. Can you tell me how i can make the modification to an xml file or how to write an xml object to a file? Than

[PHP] XHTML Validation problem

2008-05-02 Thread It Maq
miter but occurred as data." I'm wondering if there is a way to avoid this error. The page itself is valid and fails just in the case the user enters the & character. Thank you ________ Be a better friend,

[PHP] adding the results of mysql_query

2008-05-06 Thread It Maq
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] usort inside a class

2008-05-09 Thread It Maq
Hi, i'm trying to build a class that sorts a multidimensional array. I'm using the php function "usort". I declared the comparision function as a method of my class but i'm unable to give it as argument to the function usort. this "usort($this->arr, $this-

Re: [PHP] usort inside a class

2008-05-09 Thread It flance
It works thanks a lot! --- On Fri, 5/9/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > From: Richard Heyes <[EMAIL PROTECTED]> > Subject: Re: [PHP] usort inside a class > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Date: Friday, May 9, 2008, 8:47 PM >

[PHP] convert query result to array

2008-05-12 Thread It flance
me name as the fields names of table tablename. Thank you Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

[PHP] problem with htmlspecialchars in version5.2.5

2008-05-16 Thread It flance
Hi, this statement: echo nl2br(htmlspecialchars($row['jobdescription'], ENT_QUOTES, 'UTF-8')); works for php4.3.10 but not for php5.2.5 I am wondering if i am missing something. Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Creating XML files

2008-07-04 Thread It flance
Hi all, Some months ago i worked with XML. And i remember that i was able to create xml files quite easily. Now i don`t have the book i used by the time. I made many searches in google and i don't find something interesting. So i'm wondering if somebody can give a good link with examples. If i

[PHP] Creating zip files

2008-07-08 Thread It flance
I am using the same code in my PC, it is working but not in the real server. What i am able to do in my pc is writing the archive to the disc. Do you know if there is a way to create the archive just in memory and let the user download it without having to store it in the server? Thank yo

Re: [PHP] push data directlly to the client(was Creating zip files)

2008-07-08 Thread It flance
Hi, Thank you for your answer. Now i figured out how to build the zip archive. I am using a class that returns the compressed data: $zipedresult = $zipfile->zipped_file(); This data, i can write it to a file. but i would like to make it downloadable without having to store it in the server.

[PHP] PHP editor for linux

2008-08-14 Thread It flance
Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php installation

2008-08-29 Thread It flance
Hi all, I'm using Fedora 8. I installed php, mysql and apache. Now i can run a script connecting to a database from terminal but not from browser. Any suggestion? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Don't understand what is this $arr['N']['#']

2008-09-24 Thread It flance
Hi, I am working on the code of a former employee and I don't understand what this $arr['N']['#'] refers to. I know it is a multidimensional associative array but the # i don't what this means. Thank you -- PHP General Mailing List (http://www.p

Re: [PHP] Don't understand what is this $arr['N']['#']

2008-09-24 Thread It flance
, 2008 at 1:00 PM, Richard Lynch > <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > > I am working on the code of a former employee and > I don't understand > > > what this $arr['N']['#'] refers > to. > >

[PHP] Remove an element from associative array

2008-09-26 Thread It flance
Hi, is there any predefined function in php that allows to remove an element from an associative array? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] extract column from multidimentional array

2008-09-29 Thread It flance
Hi, below you will find the code for a small script where i'm able to extract a row but not a column. So the question is how can I do that. Here is the code: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP installation on RedHat

2003-06-14 Thread Info Best-IT
Anyone know where I can get a better step by step how to for installation of PHP with DOM, XSLT, and XPATh support on Red Hat? PHP.NET is not so hot... /T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Garbage collection and strange session behaviour

2006-06-04 Thread BNR - IT Department
but probably this self-confidence could lead us to some troubles later. Is there a workaround? Without going to the file system to check if the file still exists? A smart and elegant PHP session way, without any if-file-exists-checking functions? P.S. (To the administrators/moderators/whatever of

[PHP] array_multisort?

2002-01-02 Thread Sebastiaan Timmers - Bean IT
Hi List, I'm having a problem sorting the following array: $product = array($id, $title, $price); $shop[] = $product; I want the array 'shop' to be sorted by the 'title' in array 'product'. I tried the function 'array_multisort()', but that did not do the trick. Does anyone know how to fix t

[PHP] Writing IPTC tags

2002-06-03 Thread Dirk Bonenkamp - Bean IT
Hi all, Just wanted to know if it's possible to write iptc tags with php, and, if so, how? I can read them trough getimagesize(). TIA, Dirk Bean IT T: +31 (0)23 - 5422299 F: +31 (0)23 - 5422728 W: http://www.bean-it.nl -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Problem installing in Win2003 Server SP1

2005-07-11 Thread Grosz, Steve (IPG IT)
I have been trying for several days to get PHP 4.x installed on my Win2003 SP1 server. I am doing the manual (isapi) install. I modified my php.ini file, I think correctly. And added the extension into IIS6, pointing to the \php directory and the php4isapi.dll file. When I try to view a php

[PHP] Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
Can someone tell me where I can find some detailed instructions on how to install PHP on a Win2003 Server? I've tried to install it using the PHP instructions, but it doesn't seem to be working, think I'm missing something. Thanks.

[PHP] Re: Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
No, this is on a IIS6 install, not Apache -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 12:27 PM To: Grosz, Steve (IPG IT); php-general@lists.php.net Subject: RE: [PHP] Help installing on Win2003 server? [snip] Can someone tell me where I

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
Yes, I have looked at that info, but am still having a problem. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 12:39 PM To: Grosz, Steve (IPG IT); php-general@lists.php.net Subject: RE: [PHP] Help installing on Win2003 server? [snip] No

RE: [PHP] Help installing on Win2003 server?

2005-07-11 Thread Grosz, Steve (IPG IT)
I get a message in the browser saying it can't find the file, will find standard .htm or .cfm files, but when I try to browse to a .php file, nothing. -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 1:39 PM To: php-general@lists.ph

RE: [PHP] Problem installing in Win2003 Server SP1

2005-07-12 Thread Grosz, Steve (IPG IT)
I can see the .htm/.html file just fine. So, what settings should I be looking at for the problems with PHP? Steve -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 12, 2005 12:12 AM To: Grosz, Steve (IPG IT) Subject: Re: [PHP] Problem installing in

[PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
Ok, I thought I had installed PHP correctly on my Win2003 server, using ISAPI. I added the extension, and mapped it to the php4isapi.dll file, added a path to my /php folder in Win2003, edited my php.ini file which I copied to my /windows/system32 folder. In IIS, I made sure that the

RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
. in local disk? 2005/7/14, Grosz, Steve (IPG IT) <[EMAIL PROTECTED]>: > > Ok, I thought I had installed PHP correctly on my Win2003 server, > using ISAPI. I added the extension, and mapped it to the php4isapi.dll > file, added a path to my /php folder in Win2003, edited

RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
, you wrote: GSII> Ok, I thought I had installed PHP correctly on my Win2003 server, GSII> using ISAPI. I added the extension, and mapped it to the GSII> php4isapi.dll file, added a path to my /php folder in Win2003, GSII> edited my php.ini file which I copied to my /windows/sys

RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
I guess I'm not sure how to tell if its loading correctly. Can you tell me how to confirm that it is? I'm using PHP 4.x as well. Steve -Original Message- From: glumtail [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 11:00 AM To: php-general@lists.php.net Subject

RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
gt; ISAPI 2005/7/14, Grosz, Steve (IPG IT) <[EMAIL PROTECTED]>: > > I guess I'm not sure how to tell if its loading correctly. Can you > tell me how to confirm that it is? > > I'm using PHP 4.x as well. > > Steve > > -Original Message- > Fro

RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
Ok, I don't think it is loaded. I manually added it, restarted w3svc, and the status still shows as *unknown* -Original Message- From: glumtail [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 11:10 AM To: php-general@lists.php.net Subject: Re: [PHP] 404 error

RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
Ok, now it appears the ISAPI is loaded, I get the green up arrow, but the priority always shows as 'unknown'. Still get the 404 errors when trying to view .php pages Steve -Original Message- From: glumtail [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 11:10

RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
ubject: Re: [PHP] 404 error - why???!! Hello, it seems that your ISAPI is ok. 1. with full permission? e.g: execute,write and so on... 2. how about asp file? 2005/7/14, Grosz, Steve (IPG IT) <[EMAIL PROTECTED]>: > > Ok, now it appears the ISAPI is loaded, I get the green up arro

RE: [PHP] 404 error - why???!!

2005-07-13 Thread Grosz, Steve (IPG IT)
I appreciate the try, but no, I still get a 404 error. :) This is killing me!! -Original Message- From: Joseph [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 12:34 PM To: Grosz, Steve (IPG IT) Cc: php-general@lists.php.net Subject: Re: [PHP] 404 error - why???!! Steve, I

[PHP] 404 error - DLL files needed ??

2005-07-13 Thread Grosz, Steve (IPG IT)
In installing PHP4 on Win2003/IIS 6, I have noticed that only 1 dll file is used on the ISAPI install. What is the php4ts.dll file used for? And do I need to add it into my ISAPI area within IIS or just use the php4isapi.dll file... Steve

RE: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Grosz, Steve (IPG IT)
I'm afraid it didn't help. I know the php4ts.dll need to be in the path, and the instructions say that if that file is in the /php directory, and there is a Path to that directory, all should be fine. I'm curious if within IIS I use php4isapi.dll for my extension a

RE: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Grosz, Steve (IPG IT)
│ php.ini-dist │ php.ini-recommended │ php4embed.lib │ php4isapi.dll │ php4ts.dll │ php4ts.lib │ ├─dlls │ ├─extensions │ ├─mibs │ ├─openssl │ ├─pdf-related │ └─sapi 2005/7/14, Grosz, Steve (IPG IT) <[EMAIL PROTECTED]>: > > I'm afraid it didn't help. I know the php4ts.dll nee

[PHP] Install directions for Win2003 SP1??

2005-07-13 Thread Grosz, Steve (IPG IT)
Does anyone have a step by step, screenshots would be great, of how to install PHP 4.x on a Win2003 SP1 server? I've tried going through the install instructions on PHP.net's site for windows, but its still not working, so I think I'm missing something somewhere along the way. Thanks! Steve

RE: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Grosz, Steve (IPG IT)
Tjoekbezoer, I can tell you that it is there, because I manually added it, and it is set to 'allowed'. Steve -Original Message- From: Tjoekbezoer van Damme [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 3:52 PM To: php-general@lists.php.net Subject: Re: [PHP] 404 e

RE: [PHP] 404 error - DLL files needed ??

2005-07-14 Thread Grosz, Steve (IPG IT)
I pretty sure that it isn't checked, but I'll double check againanything else? I can't imagine that it should be this difficult to get PHP running. Steve -Original Message- From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 14, 2005 7:09 AM

[PHP] Win2000 easier than Win2003 ??

2005-07-14 Thread Grosz, Steve (IPG IT)
Is setting up PHP easier on Windows 2000 server rather than Win2003? I'm having nothing but problems getting PHP files to show up in IE on the Win2003 server, I get nothing but 404 - file not found errors.

[PHP] php: mpeg / avi / mov

2002-01-25 Thread Edward van Bilderbeek - Bean IT
Hi, I want to know the dimensions (width, height) of an mpeg / avi / mov file... does anyone know how I can arrange that with PHP or possibly via a UNIX command string? Greets, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] a quick question..

2002-01-27 Thread Edward van Bilderbeek - Bean IT
ssing about, seeding the randomizer, etc., but you get the idea. > > Miles Thompson > > > On Sunday 27 January 2002 03:00 pm, Tauntz wrote: > > If I have n variables: > > $nr1 = "some text"; > > $nr2 = "some other text" > > $nr3 > >

Re: [PHP] Back button to Query Pages

2002-01-28 Thread Edward van Bilderbeek - Bean IT
9:57 AM Subject: Re: [PHP] Back button to Query Pages > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then phantom blurted > > Page 1 is a list of people's names (queried by State). > > > > Page 2 is each person's profile. > > >

Re: [PHP] Back button to Query Pages

2002-01-28 Thread Edward van Bilderbeek - Bean IT
the moment I hit the send button I realised it myself too :-) but this is a pretty good alternative... Edward - Original Message - From: "Nick Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 10:15 AM Subject: Re: [PHP] Back

[PHP] Mpeg

2002-01-28 Thread Edward van Bilderbeek - Bean IT
Hi, I've asked this question before, but no answer... so here it is again: does anyone now how I can get the dimensions (width, height) of an mpeg file? maybe via a unix command... (because in the PHP manual, I can't find anything about it, and I'm not that much of a unix-guru

Re: [PHP] Sending Form Arrays

2002-01-28 Thread Edward van Bilderbeek - Bean IT
try something like this: check 1 check 2 check 3 check 4 check 5 that should do it... Edward - Original Message - From: "Scott Saraniero" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 3:17 PM Subject: [PHP] Sending Form Array

Re: [PHP] HTML lists & PHP

2002-01-28 Thread Edward van Bilderbeek - Bean IT
maybe you can try something like this... $r1 = "game1" $r2 = "game16"; echo ""; echo "$teams[$r1]"; echo "$teams[$r2]"; echo ""; Greets, Edward > I keep getting parse error with this code: > ($teams[] is a big array that I got by using mysql_fetch_array) > > >$r = "game"; >

Re: [PHP] is create_function slow?

2002-01-29 Thread Edward van Bilderbeek - Bean IT
including a file is nothing more then placing the text of the include file at the place you called "include()" so I think there's no reason why it should be quicker or slower... Edward Hi, is create function slow? Or has it a very significant slowdown compared to an include

Re: [PHP] Attachments with mail() function

2002-01-30 Thread Edward van Bilderbeek - Bean IT
I recommend sending yourself a mail with an attachment and check the sourcecode of the received mail... together with base64encode() you should be able to do the job... Edward - Original Message - From: "Rafael Perazzo B Mota" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday,

Re: [PHP] A real simple question...

2002-01-30 Thread Edward van Bilderbeek - Bean IT
and if you want to write it to a file directly then do something like: exec('ftpusers > filename.txt'); Greets, Edward > Take a look at > > exec() > passthru() > system() > > Keep in mind that the webserver usally runs as User nobody or an equivilant &

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Edward van Bilderbeek - Bean IT
to reverse the procedure, else it wouldn't be safe... Greets, Edward "Jose" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > I'm making a proyect in php, and I have some doubts about the md5. > I encript a password with it, but

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Edward van Bilderbeek - Bean IT
huh? well, use md5()... if you want a password that can be decrypted too, I'm afraid you have to write you're own encryption / decryption algoritm... maybe you can use base64encode() (don't know for sure)... but in both cases, if someone guesses your used encoding algoritm, you have a problem...

Re: [PHP] Tables Loading Slow

2002-01-30 Thread Edward van Bilderbeek - Bean IT
uot;>news:[EMAIL PROTECTED]... > from the PHP manual > [flush()] > ...Even the browser may buffer its input before displaying it. Netscape, for > example, buffers text until it receives an end-of-line or the beginning of a > tag, and it won't render tables until the tag of th

[PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
hi, is there a simple way to replace an occurence of a string, into another, maintaing capital positions... Like: $str = "This equals this equals tHis"; and I wanna replace all occurences of "this" in "that", that the result will be: $str = "That equals that equals That"; Edward -- PHP Ge

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
that is not what I meant... I want the cases to remain... - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'Edward van Bilderbeek - Bean IT'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
Oh, that was a typo... sorry... it should be: "This equals this equals tHis" -> "That equals that equals tHat" Edward - Original Message - From: "Jeff Sheltren" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROT

Re: [PHP] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT
hmm, that's not what i wanted to hear :-))) e.g. try doing that for the word: transparancy looots of different possibilities then... Edward - Original Message - From: "Jeff Sheltren" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean IT&quo

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Edward van Bilderbeek - Bean IT
Maybe I better ask my question different... what i want to do is, to highlight certain text in a string... for example: "This equals this equals tHis..." has to become: "This equals this equals tHis"... so dispite the case, the 's should be put around it... does that m

Re: [PHP] ereg et all - new question..

2002-01-31 Thread Edward van Bilderbeek - Bean IT
Wow, thanks a lot... although it should be \\0 here... didn't see anything in the manual about the \\ maybe gotta look for it again :-) Thanks, Edward - Original Message - From: "Richard Crawford" <[EMAIL PROTECTED]> To: "Edward van Bilderbeek - Bean

Re: [PHP] Re: Email Attachment

2002-02-01 Thread Edward van Bilderbeek - Bean IT
From: "Mike Eheler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 10:01 PM Subject: [PHP] Re: Email Attachment > That's because it's not a specific feature of mail sending/php's mail > features. > > Instead you should look

Re: [PHP] Adding 6 digits to a str?

2002-02-02 Thread Edward van Bilderbeek - Bean IT
2002 6:41 PM Subject: Re: [PHP] Adding 6 digits to a str? > Why is it that you want to represent an int with leading 0's? Is it just > to print it out that way? If that is the case, then you can use the printf > function for formatted printing. > > > Jeff > > At 1

Re: [PHP] date problems

2002-02-04 Thread Edward van Bilderbeek - Bean IT
i think it is the strtotime() function that gives the trouble... why don't you try mktime() ? > sounds like it might have something to do with leap year. > > Jim Lucas > - Original Message - > From: "toni baker" <[EMAIL PROTECTED]> > To: <[EMA

Re: [PHP] uksort wisdom

2002-02-04 Thread Edward van Bilderbeek - Bean IT
shouldn't it be: uksort($array_array,"cmp"); Greets, Edward - Original Message - From: "Sondra Russell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 5:52 AM Subject: [PHP] uksort wisdom > Hi Guys! > >

Re: [PHP] Tricky array question

2002-02-05 Thread Edward van Bilderbeek - Bean IT
array variable called glacier. Now I am > checking for the content > of this array. Because there are more of those arrays, I am getting all the > names out of a db. > > How is it possible to get the value and keep the name of the array dynamic? > > e.g: > Array na

Re: [PHP] Change of Language

2002-02-05 Thread Edward van Bilderbeek - Bean IT
check out: setlocale() Greets, Edward - Original Message - From: "Nicolas Llamosas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 4:13 PM Subject: [PHP] Change of Language > How can in change the language in my site? (spanish) > for example using the fun

Re: [PHP] Create Mysql Records From a Comma separated Values String

2002-02-06 Thread Edward van Bilderbeek - Bean IT
$array_foo = explode(",", $foo); for ($i=0; $i To: <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2002 1:54 PM Subject: [PHP] Create Mysql Records From a Comma separated Values String > > Hi to everyone > > i have the following problem > > i have a string $foo which contains (n variable) co

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
I don't know if this is the best way but: $str = "This is or was a test for short words"; while (ereg(" [a-z]{1,3} ", $str)) { $str = eregi_replace(" [a-z]{1,3} ", " ", $str); } print $str; this replaces all occurences of a space followed by 1,2 or 3 alphabetic characters followed by a space.

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
})[a-z']{1,3}([ ]{1}|[,]{1}|[.]{1} |[:]{1})", "\\2", $str); } Greets, Edward print $str; - Original Message - From: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Michael Kimsal" <[EMAIL PRO

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
after some puzzling I came to this: $str = "One as a start. This is or was a test for short words, although an, should be deleted to."; $str = preg_replace(array("/\b[A-Za-z']{1,3}\b/", "/[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/"), array("", "\\1"), $str); print $str; which means: first: replac

Re: [PHP] Syntax ???

2002-02-08 Thread Edward van Bilderbeek - Bean IT
day, February 08, 2002 7:38 PM Subject: [PHP] Syntax ??? > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello all again, > > Here is my line in my script: > $ynumber = mysql_query("SELECT COUNT(*) FROM responses WHERE > response=y"); > > But it returns a blank or

Re: [PHP] One more quickie

2002-02-09 Thread Edward van Bilderbeek - Bean IT
or: SELECT LEFT(date, 7) as YearAndMonth FROM table; Edward - Original Message - From: "val petruchek" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Saturday, February 09, 2002 2:28 PM Subject: Re: [PHP] One more quickie > > Don?t really want to bother you with these quick

Re: [PHP] Age

2002-02-09 Thread Edward van Bilderbeek - Bean IT
don't know if there is some "date_diff" -like function, but you can do it this way: $now = getdate(); $nw_year = $now["year"]; $nw_month = $now["mon"]; $nw_day = $now["mday"]; $chk_date = "09/02/1977"; list ($chk_day, $chk_month, $chk

Re: [PHP] possible bug in date() function

2002-02-10 Thread Edward van Bilderbeek - Bean IT
it was last week though... guesss you mean 29th? Edward "LaserJetter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Using the code below: > > $buffer['Last_access'] = 1013336429; > $date = date("H:

Re: [PHP] printing files

2002-02-13 Thread Edward van Bilderbeek - Bean IT
just put the lines in an array, each array element contains a line... and then just print the specified array elements... Edward - Original Message - From: "John Gurley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 12:55 PM Subject: [PHP] printing files

Re: [PHP] Tricky variable question! Impossible??

2002-02-16 Thread Edward van Bilderbeek - Bean IT
another variable with an array which value is set > inside the function. > > How can I pass this html thing and ensure that the variable is gonna be set? > Take a look at the code underneath. > Like that it is just printing out $picture_id[$i] > > $icon_1 = "onclick=\

Re: [PHP] regular expressions

2002-02-21 Thread Edward van Bilderbeek - Bean IT
ink that may be the escape > of | character. > > Note: I'm looking for a | in the string. Then i need escape the | > > Any idea for fix it? > > > > Thanks > German Castro > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscri

  1   2   >