[PHP] password in the mysql table 'auth'

2004-10-07 Thread 22
Concerning Auth How to set username and password in the mysql table 'auth'. Nothing has resulted from direct entry into the table. Vlad Alivanov

Re: [PHP] Re: code not working...help?

2004-10-07 Thread Matthew Sims
> i just realized that the dates in the database are saved as > varchar (althought they are numbers) is there anyway to compare the > $lastmonth value (which returns as a 14 digit number) to that because > the > way i have it now with >> post_date <= '$lastmonth' > wont work because post_date is

RE: [PHP] code not working...help?

2004-10-07 Thread Dennis Gearon
"Graham Cossey" <[EMAIL PROTECTED]> wrote: [snip] $lastmonth = date("YmdHis", mktime(date("H"), date("i"), date("s"), date("m")-1, date("d"), date("Y"))); $countResult = db_query("SELECT count(*) AS msgCount FROM messages WHERE uid = '". $userID ."' AND fid = '". $fid ."' AND post_date <= '". $l

[PHP] Re: code not working...help?

2004-10-07 Thread Matthew Kiehne
i just realized that the dates in the database are saved as varchar (althought they are numbers) is there anyway to compare the $lastmonth value (which returns as a 14 digit number) to that because the way i have it now with > post_date <= '$lastmonth' wont work because post_date is varchar and $

Re: [PHP] PHP or Apache problem?

2004-10-07 Thread Curt Zirzow
* Thus wrote william van der wee: > Hi all, > > I'am using SuSe 9.1 with Apache and PHP. In order to > get access to MS SQL server I installed freeTDS ODBC > driver. Everything ok, except I can't get it in a PHP > webpage. I use in my PHP scripts odbc_connect. > ISGL is working. When I look in

Re: [PHP] crypt() source

2004-10-07 Thread Curt Zirzow
heh.. I thought java had *everything*... * Thus wrote Brent Clements: > This question was completely off-topic, but here is a site that has code for > java that may help you > > http://locutus.kingwoodcable.com/jfd/crypt.html > > Also, repeat after me...GOOGLE is your FRIEND! > > -Brent > > --

Re: [PHP] code not working...help? Found problem =(

2004-10-07 Thread Matthew Kiehne
Thanks these all helped me get some things working again... except one problem now... i just realized that the dates in the database are saved as varchar (althought they are numbers) is there anyway to compare the $lastmonth value (which returns as a 14 digit number) to that? -- Advanced Forums, F

Re: [PHP] performance: large includes vs small includes with lots of reads

2004-10-07 Thread Curt Zirzow
* Thus wrote Hans H. Anderson: > I'm trying to tweak my server a bit and wonder if it is better to have a large > include file, say 20-40 kb with 15 user-defined functions, of which maybe 3 or 4 This is all a 'depends' situation. Of those 15 functions how many of them are actually executed accross

Re: [PHP] Is there any blog code available for php5?

2004-10-07 Thread John Coggeshall
www.s9y.org I am pretty sure it can support multi-user, although i don't know if there is an admin interface yet for that. John On Thu, 2004-10-07 at 19:32, Teng Wang wrote: > I tried some but all got failures. > I prefer the blog with calendar and multi-users > > Thanks a lot! > > >

Re: [PHP] Re: performance: large includes vs small includes with lots of reads

2004-10-07 Thread Curt Zirzow
* Thus wrote Luis Bernardo: > You may find this useful: http://www.hudzilla.org/php/18_1_0.php paragraphs 2 & 3 should be deleted. telling someone that optimal code is acceptable is like saying storing the year in a 2 char field is perfectly fine. Curt -- The above comments may offend you. flam

[PHP] PHP or Apache problem?

2004-10-07 Thread william van der wee
Hi all, I'am using SuSe 9.1 with Apache and PHP. In order to get access to MS SQL server I installed freeTDS ODBC driver. Everything ok, except I can't get it in a PHP webpage. I use in my PHP scripts odbc_connect. ISGL is working. When I look in apache error_log it say: /usr/sbin/httpd2-pre

Re: [PHP] Determining the length (in an audio sense) of an MP3

2004-10-07 Thread John Nichel
John Nichel wrote: I've used this before, and it will give you the length of the song... http://leknor.com/code/php/view/class.id3.php.txt I haven't used this one, but it claims to do mp3 as well as other file formats... http://getid3.sourceforge.net/ -- By-Tor.com It's all about the Rush http://

Re: [PHP] Determining the length (in an audio sense) of an MP3

2004-10-07 Thread John Nichel
Paul Reinheimer wrote: Hi, I am trying to determine the length (in terms of seconds) of an MP3 file. I have seen the ID3 pear project, but I didn't see anything there to tell me how long the song was. There is a fileinfo pecl project, but it doesn't mention MP3s and I couldn't find any good documen

[PHP] Re: performance: large includes vs small includes with lots of reads

2004-10-07 Thread Luis Bernardo
You may find this useful: http://www.hudzilla.org/php/18_1_0.php "Hans H. Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to tweak my server a bit and wonder if it is better to have a large > include file, say 20-40 kb with 15 user-defined functions, of which may

Re: [PHP] crypt() source

2004-10-07 Thread zareef ahmed
--- Matt <[EMAIL PROTECTED]> wrote: > Hi i am new to php, and i am writing a small user > authentication script. In > the manual i read about using the crypt() function > to generate a hash, and > how you can validate the password using a salt. eg > if (crypt($userinput, $hash) == $hash) > > T

Re: [PHP] crypt() source

2004-10-07 Thread Brent Clements
This question was completely off-topic, but here is a site that has code for java that may help you http://locutus.kingwoodcable.com/jfd/crypt.html Also, repeat after me...GOOGLE is your FRIEND! -Brent - Original Message - From: "Matt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

[PHP] crypt() source

2004-10-07 Thread Matt
Hi i am new to php, and i am writing a small user authentication script. In the manual i read about using the crypt() function to generate a hash, and how you can validate the password using a salt. eg if (crypt($userinput, $hash) == $hash) The code works perfectly, however i am writing an appli

Re: [PHP] sending mail

2004-10-07 Thread Matthew Weier O'Phinney
* Greg Donald <[EMAIL PROTECTED]>: > On Thu, 7 Oct 2004 17:42:09 -0400, Josh Howe <[EMAIL PROTECTED]> wrote: > > Do I need to have sendmail configured on my linux box to send mail via PHP? > > Thanks! > > That or a sendmail wrapper script. Or use PEAR::Mail, which let's you use an SMTP server. --

[PHP] crypt() source

2004-10-07 Thread Matt
Hi i am new to php, and i am writing a small user authentication script. In the manual i read about using the crypt() function to generate a hash, and how you can validate the password using a salt. eg if (crypt($userinput, $hash) == $hash) The code works perfectly, however i am writing an appli

Re: [PHP] xpath and SimpleXML

2004-10-07 Thread Dave
Hi I can see your logic.. however the input for my xpath query is an object (I can do a sprintf on the input $var1, which I may need also). $result = $anything->xpath("//ROW[$var1 > $var2]"); I've tried to ereg_replace the quotation marks out of the object... but no go. So the question is how

Re: [PHP] Re: Determining the length (in an audio sense) of an MP3

2004-10-07 Thread Curt Zirzow
* Thus wrote atppp: > this would be hard if you are working with VBR mp3 files, in which case you > have to scan the whole file, or you may scan the first few frames to get a > reasonable estimation. Or you can read the TLEN from the id3v2 tag, if set correctly of course. Curt -- The above co

[PHP] Re: Determining the length (in an audio sense) of an MP3

2004-10-07 Thread atppp
this would be hard if you are working with VBR mp3 files, in which case you have to scan the whole file, or you may scan the first few frames to get a reasonable estimation. For CBR mp3 files, I think Warren's reply is correct. "Paul Reinheimer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

Re: [PHP] session_save_path

2004-10-07 Thread Jordi Canals
You have to set the session_save_path("some_where") in all pages where you call to session_start(). And you should do it *before* calling session_start. On the manual: session_save_path() returns the path of the current directory used to save session data. If path is specified, the path to which

[PHP] Is there any blog code available for php5?

2004-10-07 Thread Teng Wang
I tried some but all got failures. I prefer the blog with calendar and multi-users Thanks a lot! eruisi 10/07/2004 19:31:22 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

RE: [PHP] Determining the length (in an audio sense) of an MP3

2004-10-07 Thread Vail, Warren
Haven't looked specifically at mp3 but with most sound formats the "sample rate" divided into the number of characters in the file should produce the time length (i.e. 22000 samples per second divided into a 44 byte data length results in 20 seconds of sound). Seems to me that with most format

RE: [PHP] code not working...help?

2004-10-07 Thread Graham Cossey
[snip] > > $lastmonth = date("YmdHis", mktime(date("H"), date("i"), date("s"), > date("m")-1, date("d"), date("Y"))); > $countResult = db_query("SELECT count(*) AS msgCount FROM messages WHERE > uid = '". $userID ."' AND fid = '". $fid ."' AND post_date <= '". > $lastmonth > ."'"); > $countRow =

[PHP] Determining the length (in an audio sense) of an MP3

2004-10-07 Thread Paul Reinheimer
Hi, I am trying to determine the length (in terms of seconds) of an MP3 file. I have seen the ID3 pear project, but I didn't see anything there to tell me how long the song was. There is a fileinfo pecl project, but it doesn't mention MP3s and I couldn't find any good documentation for it (looking

RE: [PHP] sending mail

2004-10-07 Thread Matthew Sims
> > I'm sorry, I don't know what and MTA is. Can I configure PHP to use any > smtp > server? > MTA = Mail Transfer Agent http://us4.php.net/manual/en/ref.mail.php For unix/linux, PHP ignores the smtp settings in php.ini which means you'll need to setup sendmail for outside SMTP. -- --Matthew S

RE: [PHP] sending mail

2004-10-07 Thread Josh Howe
I'm sorry, I don't know what and MTA is. Can I configure PHP to use any smtp server? -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 5:58 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] sending mail > > > Do I need to have sendmail configur

Re: [PHP] sending mail

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 17:42:09 -0400, Josh Howe <[EMAIL PROTECTED]> wrote: > Do I need to have sendmail configured on my linux box to send mail via PHP? > Thanks! That or a sendmail wrapper script. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP Gener

RE: [PHP] sending mail

2004-10-07 Thread Jay Blanchard
[snip] Do I need to have sendmail configured on my linux box to send mail via PHP? Thanks! [/snip] http://us2.php.net/mail 1st paragraph called, strangley enough, "Requirements" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sending mail

2004-10-07 Thread Matthew Sims
> > > Do I need to have sendmail configured on my linux box to send mail via > PHP? > Thanks! Sendmail or any MTA will do. So yes, you need to have a working mail server. -- --Matthew Sims -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] code not working...help?

2004-10-07 Thread Matthew Sims
> Hi guys im pretty new at this and cant seem to get this going I want > the > code to query the database for the number of messages posted within the > last > month this is the code i have but its not working... I might even have > it > all wrong, can someone point me in the right direction? >

[PHP] sending mail

2004-10-07 Thread Josh Howe
Do I need to have sendmail configured on my linux box to send mail via PHP? Thanks!

Re: [PHP] code not working...help?

2004-10-07 Thread Andrew Kreps
On Thu, 7 Oct 2004 14:14:10 -0400, Matthew <[EMAIL PROTECTED]> wrote: > Hi guys im pretty new at this and cant seem to get this going I want the > code to query the database for the number of messages posted within the last > month this is the code i have but its not working... I might even hav

Re: [PHP] xpath and SimpleXML

2004-10-07 Thread Matthew Sims
> So, using xpath, I have constructed the following function. The problem is > the quotes "" around the number. xpath is treating it as a string, I > believe. Would sprintf() work for this? Something like: $num = sprintf("%d", $xpathNum); I haven't tested this. -- --Matthew Sims --

Re: [PHP] Page cannot be displayed after form submission

2004-10-07 Thread Andrew Kreps
On Thu, 07 Oct 2004 08:48:01 -0500, Philip Thompson <[EMAIL PROTECTED]> wrote: > > However, I get `Page cannot be displayed` error if the page calls > itself and has to reload some data but only in IE for Windows. If I > hit the `Refresh` button, the page shows up and all the appropriate > fie

[PHP] xpath and SimpleXML

2004-10-07 Thread Dave
Hi I'm using PHP5.0.2 and SimpleXML to build a systems monitoring application. I'm pulling data from Win server perfmon logs, using MS Log Parser to output into XML, then a PHP command line script (run every x minutes) using SimpleXML to parse, and then to make decisions. The issue I am having

[PHP] Re: general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Weier O'Phinney
* Lists <[EMAIL PROTECTED]>: > My boss recently called PHP "good for hobbyists" but REAL sites have to > be done with Microsoft technologies. He wants to use Sharepoint for a > wiki type site because of versioning. > > Can anyone point me to resources about versioning and inherent > strengths a

Re: [PHP] general research question(thanks!)

2004-10-07 Thread Matthew Sims
> Thanks for all the great replies. I will have fun preparing this > particular report. > -dg > It can be difficult to show support for Open Source software when up against proprietary software when proprietary has the backing of money to offer assistance. With Open Source, when something goes wr

Re: [PHP] Problem with a while loop

2004-10-07 Thread Janet Valade
Richard Kurth wrote: I am having a problem with a while loop if I put in a number with 0's in front of it it converts the number two the first whole number. such as 1 would be 1 02200 would be 2200. Then it starts the count down starting with that number. How can I make it not remove the 0's in

[PHP] Re: [PEAR] $HTTP_POST_VARS

2004-10-07 Thread Robert Cummings
On Thu, 2004-10-07 at 15:50, Justin Patrin wrote: > Sorry, that question doesn't make any sense. The POST vars only change > during a script run if your script changes them. Also, you should be > using the $_POST superglobal unstead of $HTTP_POST_VARS. Please try to > rephrase your question. Just

Re: [PHP] general research question(thanks!)

2004-10-07 Thread lists
Thanks for all the great replies. I will have fun preparing this particular report. -dg On Oct 7, 2004, at 1:00 PM, Matthew Sims wrote: Hi List, My boss recently called PHP "good for hobbyists" but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki ty

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
> Hi List, > > My boss recently called PHP "good for hobbyists" but REAL sites have to > be done with Microsoft technologies. He wants to use Sharepoint for a > wiki type site because of versioning. > > Can anyone point me to resources about versioning and inherent > strengths and reliability of P

[PHP] Re: [PEAR] $HTTP_POST_VARS

2004-10-07 Thread Justin Patrin
On Thu, 7 Oct 2004 11:19:23 -0700 (PDT), Pahlevanzadeh Mohsen <[EMAIL PROTECTED]> wrote: > Dears,I need to my program is waitting while > $HTTP_POST_VARS change > Please guide me.. > Sorry, that question doesn't make any sense. The POST vars only change during a script run if your script

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread John Nichel
Greg Donald wrote: On Thu, 07 Oct 2004 15:16:51 -0400, John Nichel <[EMAIL PROTECTED]> wrote: Insight now uses CF. It was a political change, not one agreed on by the techies. I don't know much about CF at all. Was it because of the shopping cart capabilities of CF? I read somewhere that was a

RE: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Vail, Warren
Once heard someone say the same about wiki sites. 8-) Warren Vail -Original Message- From: lists [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] general research question (maybe a little OT, sorry) Hi List, My boss recently cal

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Jennifer Goodie
-- Original message from "Matthew Sims" : -- > > www.thewb.com (uses PHP for the interactive areas such as message > boards, polls, etc.) > Up until September 2003 I was the developer for PHP applications for this site. To the best of my knowledge the message board i

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
> Matthew Sims wrote: > >> The following sites have been known to use PHP: > >> www.insight.com (is a publicly traded fortune 1000 company. The site is >> 90% PHP) > > > Insight now uses CF. It was a political change, not one agreed on by > the techies. > > -- > John C. Nichel The list is prob

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Greg Donald
On Thu, 07 Oct 2004 15:16:51 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > Insight now uses CF. It was a political change, not one agreed on by > the techies. I don't know much about CF at all. Was it because of the shopping cart capabilities of CF? I read somewhere that was a top reason to u

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Gareth Williams
Oh please. Not even as a joke. On 7 Oct 2004, at 21:07, Matt M. wrote: My boss recently called PHP "good for hobbyists" but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. :) real sites use iis -- PHP General Mailing

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
> lists wrote: >> Hi List, >> >> My boss recently called PHP "good for hobbyists" but REAL sites have to >> be done with Microsoft technologies. He wants to use Sharepoint for a >> wiki type site because of versioning. >> >> Can anyone point me to resources about versioning and inherent strengths

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread John Nichel
Matthew Sims wrote: The following sites have been known to use PHP: www.insight.com (is a publicly traded fortune 1000 company. The site is 90% PHP) Insight now uses CF. It was a political change, not one agreed on by the techies. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PR

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread John Nichel
lists wrote: Hi List, My boss recently called PHP "good for hobbyists" but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. Can anyone point me to resources about versioning and inherent strengths and reliability of

Re[2]: [PHP] Problem with a while loop

2004-10-07 Thread Richard Kurth
Hello djoseph, Thursday, October 7, 2004, 11:34:22 AM, you wrote: >> The following script would look like this when run >> 1 >> 2 >> 3 >> 4 >> I needed it to look like this >> 1 >> 2 >> 3 dtrc> You're going to want to use printf or sprintf to format the numbers. dtrc> example:

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matt M.
> My boss recently called PHP "good for hobbyists" but REAL sites have to > be done with Microsoft technologies. He wants to use Sharepoint for a > wiki type site because of versioning. :) real sites use iis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 11:44:32 -0700, lists <[EMAIL PROTECTED]> wrote: > My boss recently called PHP "good for hobbyists" but REAL sites have to > be done with Microsoft technologies. He wants to use Sharepoint for a > wiki type site because of versioning. Well, I can't dispute a person's opinion as

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
>> Hi List, >> >> My boss recently called PHP "good for hobbyists" but REAL sites have to >> be done with Microsoft technologies. He wants to use Sharepoint for a >> wiki type site because of versioning. >> >> Can anyone point me to resources about versioning and inherent >> strengths and reliabil

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
> Hi List, > > My boss recently called PHP "good for hobbyists" but REAL sites have to > be done with Microsoft technologies. He wants to use Sharepoint for a > wiki type site because of versioning. > > Can anyone point me to resources about versioning and inherent > strengths and reliability of P

Re: [PHP] Help with Array Sorting Please

2004-10-07 Thread djoseph
> I have an array like this: > > 123 => 1 // each value may have few or many duplicate values > 321 => 1 > 543 => 2 > 432 => 2 // like here, more 2's than 1's see? > 566 => 2 > 568 => 2 > 999 => 3 > 878 => 3 > 444 => 3 > > Now, the keys are not the issue. What i would really like, is for that

[PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread lists
Hi List, My boss recently called PHP "good for hobbyists" but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. Can anyone point me to resources about versioning and inherent strengths and reliability of PHP? Thanks.

Re: [PHP] Regular expression

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 12:12:10 -0500 (CDT), Hans H. Anderson <[EMAIL PROTECTED]> wrote: > It could be that your $html doesn't match quite right, too (tabs and newlines > differ from $html to the regular expression). So I tried this with success: The 's' modifier will assist with matching across newl

Re: [PHP] Re: How to implement mass emailing?

2004-10-07 Thread Greg Donald
On Thu, 07 Oct 2004 14:03:34 -0300, Manuel Lemos <[EMAIL PROTECTED]> wrote: > You need to call set_time_limit(0); to let the script run for as long as > needed. I found ignore_user_abort() to be very helpful with mail scripts as well, especially if someone else will doing the mailing, or a shell e

Re: [PHP] Problem with a while loop

2004-10-07 Thread djoseph
> The following script would look like this when run > 1 > 2 > 3 > 4 > I needed it to look like this > 1 > 2 > 3 You're going to want to use printf or sprintf to format the numbers. example: printf( "%05d", $i ); this would print out your number, then left fill it will the zero

Re: [PHP] Send files before the php script executes

2004-10-07 Thread Greg Donald
On 7 Oct 2004 09:17:26 -0700, Ruben Duarte <[EMAIL PROTECTED]> wrote: > Anybody knows if is posible in Linux with PHP to do upload of several > files sending the data before that php script executes. Now in my > server you do the upload (with html,form, multipart ...) and first all > the files are

[PHP] $HTTP_POST_VARS

2004-10-07 Thread Pahlevanzadeh Mohsen
Dears,I need to my program is waitting while $HTTP_POST_VARS change Please guide me.. = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh Network administrator & programmer My home phone is: +98213810146 My email address is

Re: [PHP] Interrupting instantiation

2004-10-07 Thread Simas Toleikis
Chris Boget wrote: In PHP4, is there any way to interrupt instantiation of an object? class Test { function Test() { $this = NULL; // Object destroyed by php gc } } $hello = new Test; // $hello = NULL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] code not working...help?

2004-10-07 Thread Matthew
Hi guys im pretty new at this and cant seem to get this going I want the code to query the database for the number of messages posted within the last month this is the code i have but its not working... I might even have it all wrong, can someone point me in the right direction? $lastmonth =

[PHP] Problem with a while loop

2004-10-07 Thread Richard Kurth
I am having a problem with a while loop if I put in a number with 0's in front of it it converts the number two the first whole number. such as 1 would be 1 02200 would be 2200. Then it starts the count down starting with that number. How can I make it not remove the 0's in front of the number

Re: [PHP] session_save_path

2004-10-07 Thread Jordi Canals
For all you're talking about, It looks like your hosting provider is running PHPsuExec. So, PHP is now running as CGI and .htaccess does not work anymore to setup PHP values or flags (Will fire a 500 internal server error). Instead, you have to use a custom php.ini fle. (just write in this custom p

Re: [PHP] How to implement mass emailing?

2004-10-07 Thread Manuel Lemos
Hello, On 10/07/2004 09:24 AM, Marco Tabini wrote: Finally, you will need a fast mailing mechanism. mail() is not your only option--you can interface directly with any mailer through SMTP or pipes, for example--but in my experience, you don't need to go any further to make things work properly.

Re: [PHP] Regular expression

2004-10-07 Thread Hans H. Anderson
Alawi, You should get some sort of "nothing to repeat" error. Try moving the * to a + and putting it after the [0-9]. I'm not sure that the * is picking up anything, because it's not preceded by anything. It could be that your $html doesn't match quite right, too (tabs and newlines differ from

[PHP] Re: How to implement mass emailing?

2004-10-07 Thread Manuel Lemos
Hello, On 10/07/2004 02:45 AM, Tumurbaatar S. wrote: The scenario is: 1. Site administrator logs into his admin page and writes some message on a form. 2. After clicking submit the web script should broadcast this message to several hundred subscribers. And I'm wonder how to implement this on PHP.

[PHP] Send files before the php script executes

2004-10-07 Thread Ruben Duarte
Hi, Anybody knows if is posible in Linux with PHP to do upload of several files sending the data before that php script executes. Now in my server you do the upload (with html,form, multipart ...) and first all the files are upload and them the php script is executed. The idea is the next: In the

[PHP] Interrupting instantiation

2004-10-07 Thread Chris Boget
In PHP4, is there any way to interrupt instantiation of an object? For example, by returning NULL as the return value of the class constructor so that the variable you are assinging the object to is, instead, null? Here's what I'm trying to do: class MyClass { function MyClass() { return N

Re: [PHP] performance: large includes vs small includes with lots of reads

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 11:41:10 -0500 (CDT), Hans H. Anderson <[EMAIL PROTECTED]> wrote: > I'm trying to tweak my server a bit and wonder if it is better to have a large > include file, say 20-40 kb with 15 user-defined functions, of which maybe 3 or 4 > are used on any given page, or to have each func

[PHP] Regular expression

2004-10-07 Thread Alawi Albaity
How can I grap number written in specifec place in html I try this : preg_match_all("/ test:<\/B><\/P><\/TD> (*[0-9])<\/P><\/TD><\/TR> /",$html,$match); its not work

[PHP] performance: large includes vs small includes with lots of reads

2004-10-07 Thread Hans H. Anderson
I'm trying to tweak my server a bit and wonder if it is better to have a large include file, say 20-40 kb with 15 user-defined functions, of which maybe 3 or 4 are used on any given page, or to have each function in it's own file and include (disk access/read) them only as needed. Is it faster/mor

Re: [PHP] session_save_path

2004-10-07 Thread Al
John Holmes wrote: Al wrote: Tried adding to htaccess: php_value session.save_path /www/u/username/htdoc/session Hoping it would override php.ini. Got a server error 500. Try putting quotes around the path and this should work, providing your ISP allows .htaccess files. I'm guessing that sess

Re: [PHP] session_save_path

2004-10-07 Thread Al
Ed Lazor wrote: Can you do an .htaccess solution? If so, you could probably just set session save path with PHP_VALUE in the .htaccess file Note, from my original message: Tried adding to htaccess: php_value session.save_path /www/u/username/htdoc/session Hoping it would override php.ini. Got a se

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Matt M.
> sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have? I mean you "do need" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with Array Sorting Please

2004-10-07 Thread Nick Wilson
Hi, If you scroll up the list you'll see another thread of mine, this is related. The reason for a new thread is that i've made a lot of progress but the old was getting really confusing.. Here's the scoop: I have an array like this: 123 => 1 // each value may have few or many duplicate valu

Re: [PHP] mcrypt install question

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 09:10:22 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote: > Did you install it and PHP automatically recognized things or did you have > to enable something in php.ini and restart? I checked the php.ini file on > the server and there's nothing mycrypt or crypt. It appears to 'just wo

Re: [PHP] session_save_path

2004-10-07 Thread Al
John Holmes wrote: Al wrote: Tried adding to htaccess: php_value session.save_path /www/u/username/htdoc/session Hoping it would override php.ini. Got a server error 500. Try putting quotes around the path and this should work, providing your ISP allows .htaccess files. I'm guessing that sess

RE: [PHP] mcrypt install question

2004-10-07 Thread Ed Lazor
Did you install it and PHP automatically recognized things or did you have to enable something in php.ini and restart? I checked the php.ini file on the server and there's nothing mycrypt or crypt. > -Original Message- > On Thu, 7 Oct 2004 08:37:19 -0700, Ed Lazor <[EMAIL PROTECTED]> wr

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Matt M.
> I was on that page. > There's nothing which comes close to your assumption. sorry, wrong link you dont need PDFlib+PDI. Is that the license that you have? here is an assumption. I assumed you would read the pdflib manual, did you see? Note All functions described in this section require PDF

RE: [PHP] session_save_path

2004-10-07 Thread Ed Lazor
Can you do an .htaccess solution? If so, you could probably just set session save path with PHP_VALUE in the .htaccess file > -Original Message- > From: Al [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 07, 2004 8:25 AM > To: [EMAIL PROTECTED] > Subject: [PHP] session_save_path > >

RE: [PHP] anonymous from address using mail()

2004-10-07 Thread Ed Lazor
$mail_from = "From: Sagar"; > -Original Message- > Hi all, > > I'm using mail("[EMAIL PROTECTED]",$subject,$message,$mail_from); > > But i get an email with a from address as anonymous@ > > I want to show the from address to be like "From : Sagar" > plzz help me out > > /sagar -- PHP

Re: [PHP] FW: PHP posting confirmation for denis.gerasimov@vekos.ru

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 19:18:21 +0400, Denis Gerasimov <[EMAIL PROTECTED]> wrote: > Can anybody hint me what is this anti-spam filter (see forwarded email > below)? We all are to tired of spam, so that could be a very good > solution. > Is it vilter-spamd (see headers) or I am wrong? I never heard

Re: [PHP] anonymous from address using mail()

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 20:29:25 +0530, sagar <[EMAIL PROTECTED]> wrote: > I'm using mail("[EMAIL PROTECTED]",$subject,$message,$mail_from); > > But i get an email with a from address as anonymous@ > > I want to show the from address to be like "From : Sagar" > plzz help me out What is $mail_from def

[PHP] RE: displaying blob images from a mssql db

2004-10-07 Thread Jensen, Kimberlee
Most often, when people are storing an binary file in a db, they are storing the absolute path to the file on the file system instead. So it should be as simple as extracting the file path from the database, using the copy() function to copy that file from the original file path to a location so

Re: [PHP] mcrypt install question

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 08:37:19 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote: > PHP is installed from rpm's. Is it possible to install mcrypt / libmcrypt > from rpm and enable it in PHP without having to recompile? I was able to gain this functionality with Suse 9.1. I don't know about other distros ho

Re: [PHP] session_save_path

2004-10-07 Thread John Holmes
Al wrote: Tried adding to htaccess: php_value session.save_path /www/u/username/htdoc/session Hoping it would override php.ini. Got a server error 500. Try putting quotes around the path and this should work, providing your ISP allows .htaccess files. I'm guessing that session_save_path has t

[PHP] mcrypt install question

2004-10-07 Thread Ed Lazor
PHP is installed from rpm's. Is it possible to install mcrypt / libmcrypt from rpm and enable it in PHP without having to recompile? Thanks, Ed

Re: [PHP] Referencing a "constant" class variable

2004-10-07 Thread Chris Boget
> A work around I've used in the past has been to use a keyed array such as: > $MyEnums = array( > "is" => "This", > "at" => "That", > "er" => "Other" > ); Only problem is that the above doesn't address my need (which I included in a subsequent post and probably should have included in my initial

[PHP] session_save_path

2004-10-07 Thread Al
My virtual host eliminated the common session tmp folder which forces me to set up one in my area. I'm trying to come up with the best, considering: Custom php.ini; resisting because having to make certain it is always in sync with host's changes. Tried adding to htaccess: php_value session.sav

Re: [PHP] pdf_open_pdi_page

2004-10-07 Thread Hendrik Schmieder
Matt M. schrieb: Do you have a source for your assumption ? to use pdi you need PDFlib Personalization Server (PPS) http://www.pdflib.com/products/pdflib/pps.html I was on that page. There's nothing which comes close to your assumption. with best regards Hendrik -- PHP General Mailing Lis

Re: [PHP] Page cannot be displayed after form submission

2004-10-07 Thread Marek Kilimajer
Philip Thompson wrote: Hi all. I have a form that calls the same page whenever it is submitted. It does some error-checking to make sure that all the appropriate fields were filled in by the user. So, if there's an error, it stays on the same page and lets the user know what they need to fill in

[PHP] FW: PHP posting confirmation for denis.gerasimov@vekos.ru

2004-10-07 Thread Denis Gerasimov
Hello all, Sorry, that is wrong mailing list, but... :-) Can anybody hint me what is this anti-spam filter (see forwarded email below)? We all are to tired of spam, so that could be a very good solution. Is it vilter-spamd (see headers) or I am wrong? Thank you. Best regards, Denis Gerasim

[PHP] anonymous from address using mail()

2004-10-07 Thread sagar
Hi all, I'm using mail("[EMAIL PROTECTED]",$subject,$message,$mail_from); But i get an email with a from address as anonymous@ I want to show the from address to be like "From : Sagar" plzz help me out /sagar

  1   2   >