php-general Digest 8 May 2007 11:29:57 -0000 Issue 4779

2007-05-08 Thread php-general-digest-help
php-general Digest 8 May 2007 11:29:57 - Issue 4779 Topics (messages 254526 through 254544): Re: CMS Systems 254526 by: itoctopus Re: PHP4 and SQLite 254527 by: Suhas Pharkute Solution For Undefined Function mysql_connect() 254528 by: Jason Paschal How to know a

Re: [PHP] How to know a requets from web page or client.

2007-05-08 Thread Jim Lucas
Le Phuoc Canh wrote: Dear all, How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! Thanks Best Regard. Le Phuoc Canh Arrive Techologies Cell Phone : 0902147449 Home Phone : (08)9915349 Email:

Re: [PHP] How to know a requets from web page or client.

2007-05-08 Thread clive
Le Phuoc Canh wrote: How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! you need to look at the http request header, you can use the $_SERVER['HTTP_USER_AGENT'] variable to access that. Please note some application

[PHP] Re: How to know a requets from web page or client.

2007-05-08 Thread itoctopus
http://ca.php.net/function.get-browser -- itoctopus - http://www.itoctopus.com Le Phuoc Canh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear all, How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me !

RE: [PHP] How to know a requets from web page or client.

2007-05-08 Thread Le Phuoc Canh
Thanks every body for helping me ! :) Le Phuoc Canh Arrive Techologies Cell Phone : 0902147449 Home Phone : (08)9915349 Email: [EMAIL PROTECTED] -Original Message- From: clive [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 1:56 PM To: Le Phuoc Canh Cc:

[PHP] CMS

2007-05-08 Thread Jyoti
Hi Can anyone can tell me what CMS is? How can we make it? What are the requirements for it? Thanks for every response. Regards Jyoti

Re: [PHP] CMS

2007-05-08 Thread Zoltán Németh
means quite a lot of things: http://en.wikipedia.org/wiki/Cms the one you are probably interested in is: http://en.wikipedia.org/wiki/Content_management_system STFW yourself next time please before asking here greets Zoltán Németh 2007. 05. 8, kedd keltezéssel 13.17-kor Jyoti ezt írta: Hi

Re: [PHP] CMS

2007-05-08 Thread Kevin Waterson
This one time, at band camp, Jyoti [EMAIL PROTECTED] wrote: Hi Can anyone can tell me what CMS is? Content Management System How can we make it? A CMS can be quite simple and many use it as a first project for PHP. I guess this is why many of them are full of holes. What are the

[PHP] Re: CMS

2007-05-08 Thread itoctopus
CMS is Customer Management System. It allows anyone with no programming skills to create and update a content-driven website. There are lots of free CMSs available for download (just search for CMS on google). As for the requirements, nothing fancy is required, any modern day hosting will

[PHP] Image Resize with LibGD

2007-05-08 Thread Christian Haensel
Good morning, I am using imagecreatetruecolor() and imagecopyresampled() to resize oversized images and am overlaying them with an transparent PNG to add a watermark. That works just well for oversized images. Now, let's say I have a small image and would like to stretch it by 50 to 100% of

Re: [PHP] CMS

2007-05-08 Thread Paul Novitski
At 5/8/2007 12:47 AM, Jyoti wrote: Can anyone can tell me what CMS is? How can we make it? What are the requirements for it? A CMS is a software system for managing website content. To begin, click on these links: http://google.com/search?q=what+is+a+cms

[PHP] Problem to insert the field

2007-05-08 Thread uni uni
im having problem in making php news. I have session variables in login prosses: $_SESSION['username']=$rec['username']; $_SESSION['registered_admin']=TRUE; $_SESSION['username'] is taken from admin table registered_admin can publish the news, and i want to insert the value that were sent

Re: [PHP] Problem to insert the field

2007-05-08 Thread Zoltán Németh
2007. 05. 8, kedd keltezéssel 03.35-kor uni uni ezt írta: im having problem in making php news. I have session variables in login prosses: $_SESSION['username']=$rec['username']; $_SESSION['registered_admin']=TRUE; $_SESSION['username'] is taken from admin table registered_admin can

[PHP] google translation

2007-05-08 Thread Marco Sottana
hi there is any function that use google translation for translation some html ?

[PHP] defining a folder on localhost

2007-05-08 Thread blueboy
I want to define a folder like this define('IMAGE_FOLDER',$_SERVER['DOCUMENT_ROOT']./mysite/property_images); I am working on a windows machine running apache and this does not work. It doesn't seem to like the forward slashes. the document_root gives C:/Apache/htdocs/ Does anyone know a way to

[PHP] Re: defining a folder on localhost

2007-05-08 Thread itoctopus
define('IMAGE_FOLDER',$_SERVER['DOCUMENT_ROOT'].//mysite//property_images); -- itoctopus - http://www.itoctopus.com blueboy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to define a folder like this define('IMAGE_FOLDER',$_SERVER['DOCUMENT_ROOT']./mysite/property_images);

[PHP] Re: Selecting a special row from the database

2007-05-08 Thread Marcelo Wolfgang
Wow, Thanks for all the ideas, I'll explore all of them. I have the content people messing with the adm so it's hard to try things I don't fully understand by now About the sql injection, the db user I set for this has only select privileges, should I be worried even with this ? Thanks

RE: [PHP] Re: Selecting a special row from the database

2007-05-08 Thread Jim Moseby
About the sql injection, the db user I set for this has only select privileges, should I be worried even with this ? Absolutely. If I have select privs, I could possibly select passwords, credit card numbers, or whatever else sensitive info you have in your db. JM -- PHP General

Re: [PHP] Re: defining a folder on localhost

2007-05-08 Thread Philip Thompson
On May 8, 2007, at 6:47 AM, itoctopus wrote: define('IMAGE_FOLDER',$_SERVER['DOCUMENT_ROOT'].//mysite// property_images); I feel a bit n00bish for asking this question... however, why do you need '//'? I could understand if it were '\\', but not the forwards. ~Phil -- itoctopus -

Re: [PHP] Image Resize with LibGD

2007-05-08 Thread Greg Donald
On 5/8/07, Christian Haensel [EMAIL PROTECTED] wrote: Now, let's say I have a small image and would like to stretch it by 50 to 100% of its original size... I know there will be a loss of quality. But maybe someone out there has had to deal with the same before and knows the best way to do that?

[PHP] Articles system

2007-05-08 Thread WeberSites LTD
Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one that knows how to break the article into several pages so that you don't need to see one big scroll. Any recommendations? thanks berber

Re: [PHP] Articles system

2007-05-08 Thread Lester Caine
WeberSites LTD wrote: Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one that knows how to break the article into several pages so that you don't need to see one big scroll. Any

Re: [PHP] Articles system

2007-05-08 Thread Lester Caine
WeberSites LTD wrote: Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one that knows how to break the article into several pages so that you don't need to see one big scroll. Any

[PHP] unicode help

2007-05-08 Thread suresh kumar
Hi, Right now my application supports 'English' Language version,i like to integrate 'chinnese' language in my application.My Application is running from PHP and mysql.I don't have any idea regarding this unicode implementation.whether we can implement using javascript or PHP.I am

[PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
Hi, I have a form to upload file on my web server, so user can upload their images. The upload work. The user file is uploaded to my destination folder (page5/) but the file is unreadable and the file size is smaller than the original file size. I run Apache with PHP 4.1.2. Thank

Re: [PHP] Articles system

2007-05-08 Thread Lester Caine
WeberSites LTD wrote: Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one that knows how to break the article into several pages so that you don't need to see one big scroll. Any

Re: [PHP] Articles system

2007-05-08 Thread Lester Caine
WeberSites LTD wrote: Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one that knows how to break the article into several pages so that you don't need to see one big scroll. Any

Re: [PHP] Articles system

2007-05-08 Thread Stut
Lester Caine wrote: WeberSites LTD wrote: Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one that knows how to break the article into several pages so that you don't need to see one big

Re: [PHP] Articles system

2007-05-08 Thread Lester Caine
WeberSites LTD wrote: Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one that knows how to break the article into several pages so that you don't need to see one big scroll. Any

Re: [PHP] PHP's ldap_sasl_bind tries to authenticate with KRB5CCNAME other than the one provided by mod_auth_kerb

2007-05-08 Thread Thimo Langbehn
I think the problem you mention is located in the kerbero-lib. The Credential-cache is implemented as static and only set once per process (in a memeory area of the lib) Therefore, the first process of your apache will really set that variable and be able to authenticate to the kdc. Any following

Re: [PHP] Articles system

2007-05-08 Thread Robert Cummings
On Tue, 2007-05-08 at 17:21 +0100, Lester Caine wrote: WeberSites LTD wrote: Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one that knows how to break the article into several pages

[PHP] Weird results with floor compiling with -march=pentium4 -mcpu=pentium4

2007-05-08 Thread Rodolfo Gonzalez Gonzalez
Hi, Just for the record. I compiled PHP 5.2.2 with CFLAGS=-O2 -march=pentium4 -mcpu=pentium4, as usual (I've done so with all the 5.x.x series, and the proc is a Pentium 4, of course) and a customer complained about weird results in one of his scripts. I isolated the problem to be related to

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 11:30 am, Eric Trahan wrote: The upload work. The user file is uploaded to my destination folder (page5/) but the file is unreadable and the file size is smaller than the original file size. $tmp_name = $_FILES['uneimage']['tmp_name']; $type =

Re: [PHP] Articles system

2007-05-08 Thread Lester Caine
Stut wrote: If you find later you need another package you can simply add it, but you only need the core user stuff, and the package(s) you want to use. Hey Lester, kick your damn mail server! Haven't got a big enough boot to get at pigging BT :( Currently it's saying SMTP is down - but it

Re: [PHP] Articles system

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 12:17 pm, Robert Cummings wrote: On Tue, 2007-05-08 at 17:21 +0100, Lester Caine wrote: WeberSites LTD wrote: Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS system but I only need it for articles. Preferably one

Re: [PHP] Re: Selecting a special row from the database

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 6:54 am, Marcelo Wolfgang wrote: About the sql injection, the db user I set for this has only select privileges, should I be worried even with this ? Only if you care about somebody constructing a query that snarfs down your entire database so they can steal it... Or if you

RE: [PHP] Articles system

2007-05-08 Thread WeberSites LTD
This is interesting. I wonder if more people feel the same. Compare the articles on weberdev.com (my site) : Example : http://www.weberdev.com/ViewArticle/486 To the articles on devarticles.com for example. http://www.devarticles.com/c/a/Java/Getting-Started-with-Java-2D/ Do more people

Re: [PHP] defining a folder on localhost

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 6:23 am, blueboy wrote: I want to define a folder like this define('IMAGE_FOLDER',$_SERVER['DOCUMENT_ROOT']./mysite/property_images); I am working on a windows machine running apache and this does not work. It doesn't seem to like the forward slashes. the document_root

RE: [PHP] Articles system

2007-05-08 Thread WeberSites LTD
Notice my last mail where I give the example of how devarticles.com break the articles into several pages : http://www.devarticles.com/c/a/Java/Getting-Started-with-Java-2D/ berber -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 8:07 PM To:

Re: [PHP] google translation

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 5:59 am, Marco Sottana wrote: hi there is any function that use google translation for translation some html ? Not built-in, but you could build one for yourself in a couple hours/days with this: http://php.net/curl There might also be something at http://phpclasses.org or

Re: [PHP] Articles system

2007-05-08 Thread Jason Pruim
On May 8, 2007, at 2:13 PM, WeberSites LTD wrote: Do more people prefer all of the info on one page? For me, unless it's like a Chapters in a book setup, I'd prefer the info all on one page (Especially tutorials so I can scroll back and refer to other stuff) Just my 2¢ -- Jason Pruim

Re: [PHP] Problem to insert the field

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 5:35 am, uni uni wrote: im having problem in making php news. I have session variables in login prosses: $_SESSION['username']=$rec['username']; $_SESSION['registered_admin']=TRUE; $_SESSION['username'] is taken from admin table registered_admin can publish the news,

Re: [PHP] Articles system

2007-05-08 Thread Lester Caine
Stut wrote: Hey Lester, kick your damn mail server! Sorry about that British Telecom crap again :( Usually when it's busy it just says no service, and you try again later. This time it decided to give the no service message but send a copy of the message anyway. SO each time I tried to send

Re: [PHP] CMS

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 2:47 am, Jyoti wrote: Can anyone can tell me what CMS is? How can we make it? What are the requirements for it? Start here: http://opensourcecms.com/ -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist.

Re: [PHP] Image Resize with LibGD

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 3:17 am, Christian Haensel wrote: I am using imagecreatetruecolor() and imagecopyresampled() to resize oversized images and am overlaying them with an transparent PNG to add a watermark. That works just well for oversized images. Now, let's say I have a small image and

[PHP] session cookies enabled?

2007-05-08 Thread ccspencer
Hello, How does one check to see if the user's browser accepts session cookies? Best, Craig -- - Virtual Phonecards - Instant Pin by Email - - Large Selection - Great Rates- -

Re: [PHP] Articles system

2007-05-08 Thread Lester Caine
WeberSites LTD wrote: This is interesting. I wonder if more people feel the same. Compare the articles on weberdev.com (my site) : Example : http://www.weberdev.com/ViewArticle/486 Interesting example - I presume there should be text on the page, but all I see is a blue page ;) To the

Re: [PHP] How to know a requets from web page or client.

2007-05-08 Thread Richard Lynch
On Mon, May 7, 2007 10:20 pm, Le Phuoc Canh wrote: Dear all, How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! You can't know for sure for sure, because it can always be forged. $_SERZVER['USER_AGENT'], I think.

RE: [PHP] Articles system

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 1:13 pm, WeberSites LTD wrote: This is interesting. I wonder if more people feel the same. Compare the articles on weberdev.com (my site) : Example : http://www.weberdev.com/ViewArticle/486 Completely un-usable on Firefox 1.5.0.5 with current Gentoo Linux. I've got a

RE: [PHP] Articles system

2007-05-08 Thread Robert Cummings
On Tue, 2007-05-08 at 20:13 +0200, WeberSites LTD wrote: This is interesting. I wonder if more people feel the same. Compare the articles on weberdev.com (my site) : Example : http://www.weberdev.com/ViewArticle/486 To the articles on devarticles.com for example.

RE: [PHP] Articles system

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 1:14 pm, WeberSites LTD wrote: Notice my last mail where I give the example of how devarticles.com break the articles into several pages : http://www.devarticles.com/c/a/Java/Getting-Started-with-Java-2D/ I should have said author/editory unconstrained by artificial

RE: [PHP] session cookies enabled?

2007-05-08 Thread WeberSites LTD
I don't think that there is a difference between session or regular cookie acceptance. Have a look at the 1st code example here : http://www.php-code-search.com/?q=cookie%20support berber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007

Re: [PHP] session cookies enabled?

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 1:31 pm, [EMAIL PROTECTED] wrote: How does one check to see if the user's browser accepts session cookies? My browser doesn't make that decision. I do. :-) Send me one and see if it comes back. If it does come back, use it as your cookie. Don't send me a second cookie. I

RE: [PHP] Articles system

2007-05-08 Thread WeberSites LTD
I'm shocked :) Had no idea the page was not usable on FF. Will get on it ASAP. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 8:45 PM To: WeberSites LTD Cc: 'Robert Cummings'; 'Lester Caine'; php-general@lists.php.net Subject: RE: [PHP]

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
$error = $_FILES['uneimage']['error']; That doesn't seem work in PHP 4.1.2... I try it but $error is empty. And the function move_uploaded_file($_FILES['uneimage']['tmp_name'], $target_path) returns TRUE, so the upload work (in a way !). The problem is the file that is upload doesn't

RE: [PHP] Articles system

2007-05-08 Thread WeberSites LTD
Not sure why it's not working with FF. the page passes validation at validator.w3.org. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 8:45 PM To: WeberSites LTD Cc: 'Robert Cummings'; 'Lester Caine'; php-general@lists.php.net Subject: RE:

RE: [PHP] Articles system

2007-05-08 Thread Robert Cummings
On Tue, 2007-05-08 at 21:28 +0200, WeberSites LTD wrote: Not sure why it's not working with FF. the page passes validation at validator.w3.org. Are you using CSS instead of tables? *teehee* sorry couldn't resist for all the CSS purists reading this :) Cheers, Rob. --

Re: [PHP] Articles system

2007-05-08 Thread Stut
WeberSites LTD wrote: Not sure why it's not working with FF. the page passes validation at validator.w3.org. Validation has never and will never mean it looks right. And it worries me that someone presenting themselves as an authority on web development would think so. -Stut

RE: [PHP] Articles system

2007-05-08 Thread WeberSites LTD
Actually I'm using tables. I have no idea what was the problem but I added a nbsp; somewhere and it looks ok now. FF bug? I mean, the page passed w3 validation and didn't show on FF while at the same time was ok on IE. -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED]

RE: [PHP] Articles system

2007-05-08 Thread WeberSites LTD
1st, I never said I was any authority about anything :) I'm just building the weber sites as a hobby... 2nd, I beg to disagree. Validation has allot to do with how pages look. In many cases, if you have differences between browsers, or if things don't look like you expect, validating the page

RE: [PHP] Articles system

2007-05-08 Thread Robert Cummings
On Tue, 2007-05-08 at 21:37 +0200, WeberSites LTD wrote: Actually I'm using tables. DOH! Should have looked before slamming :) I have no idea what was the problem but I added a nbsp; somewhere and it looks ok now. FF bug? I mean, the page passed w3 validation and didn't show on FF while

RE: [PHP] Articles system

2007-05-08 Thread Robert Cummings
On Tue, 2007-05-08 at 21:42 +0200, WeberSites LTD wrote: 1st, I never said I was any authority about anything :) I'm just building the weber sites as a hobby... 2nd, I beg to disagree. Validation has allot to do with how pages look. In many cases, if you have differences between browsers,

Re: [PHP] Articles system

2007-05-08 Thread Stut
WeberSites LTD wrote: 1st, I never said I was any authority about anything :) I'm just building the weber sites as a hobby... Hobby or not, when you publish information on the web without a big message saying I have no frickin' idea what I'm talking about, you are presenting yourself as an

RE: [PHP] Articles system

2007-05-08 Thread WeberSites LTD
structure and semantics influence how the page looks. One browser may overlook a missing /TABLE and show the page and another may not. validating will show where you may have gone wrong. Writing good HTML is good practice :) berber -Original Message- From: Robert Cummings

[PHP] Re: session cookies enabled?

2007-05-08 Thread ccspencer
Richard Lynch writes: How does one check to see if the user's browser accepts session cookies? Apparently I should have said cookie and left off the 's' as that is what I had in mind. Send one cookie, see if it comes back, and if it does, tie everything to that cookie. OK. So how do I

RE: [PHP] Articles system

2007-05-08 Thread WeberSites LTD
I get your point. Most of the content on the site is UGC. I didn't write it, I just send a link to it if I think it can help. 99% of the people on this list don't know that the site is mine. So what about a good article system? :) berber -Original Message- From: Stut [mailto:[EMAIL

Re: [PHP] Articles system

2007-05-08 Thread Stut
WeberSites LTD wrote: I get your point. Most of the content on the site is UGC. I didn't write it, I just send a link to it if I think it can help. 99% of the people on this list don't know that the site is mine. So what about a good article system? :) Personally I use wordpress on my blog

Re: [PHP] Articles system

2007-05-08 Thread Micky Hulse
Robert Cummings wrote: I'll take one big scroll any day over 10 pages of ad infestation. At my part-time job (web content editor at newspaper) we give folks the option of viewing the multi-page ad infested article as a print preview which is the same article, but on one page and print ready.

Re: [PHP] Articles system

2007-05-08 Thread Micky Hulse
Richard Lynch wrote: I don't really understand how breaking it up is good unless we're talking about a series broken up by an author or editor for good valid semantic reasons... off-topic Some good info from book Google Advertising Tools: Page Size: How much content should go on each site

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Richard Davey
Eric Trahan wrote: $error = $_FILES['uneimage']['error']; That doesn't seem work in PHP 4.1.2... I try it but $error is empty. It just means there wasn't an error. And the function move_uploaded_file($_FILES['uneimage']['tmp_name'], $target_path) returns TRUE, so the upload work (in a way

[PHP] Re: Upload problem - final size is different

2007-05-08 Thread itoctopus
Have you tried your code on another server? -- itoctopus - http://www.itoctopus.com Eric Trahan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a form to upload file on my web server, so user can upload their images. The upload work. The user file is uploaded to my

[PHP] Re: Articles system

2007-05-08 Thread itoctopus
Wordpress, check http://www.pmhut.com for an idea on what you can do with it. -- itoctopus - http://www.itoctopus.com WeberSites LTD [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Wasn't sure if to use the CMS thread or not so I opened a new one. I'm guess I'm looking for a CMS

Re: [PHP] Re: Upload problem - final size is different

2007-05-08 Thread Daniel Brown
Eric, If you're checking the filesize via FTP, a web-based file manager, or even the shell if it's a cross-platform upload, it can give bad data. Try downloading the file and seeing if it's still working. If it does, try uploading it via FTP and having a script check the md5 hash on the

[PHP] Re: session cookies enabled?

2007-05-08 Thread itoctopus
setcookie(cookie_name, value); //redirect to another page using header header(location:.$your_url); //check in $your_url for the presence for the cookie if ($_COOKIE[cookie_name] == value){ //cookies are enabled - add your code } else{ //cookies are disabled - add your code } Hope that

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 2:12 pm, Eric Trahan wrote: $error = $_FILES['uneimage']['error']; That doesn't seem work in PHP 4.1.2... I try it but $error is empty. And the function move_uploaded_file($_FILES['uneimage']['tmp_name'], $target_path) returns TRUE, so the upload work (in a way !).

Re: [PHP] Re: session cookies enabled?

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 2:56 pm, [EMAIL PROTECTED] wrote: Richard Lynch writes: Send one cookie, see if it comes back, and if it does, tie everything to that cookie. OK. So how do I see if it comes back? if (isset($_COOKIE['foo'])){ //cookie came back } else{ //cookie did NOT come back }

Re: [PHP] Re: session cookies enabled?

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 5:50 pm, itoctopus wrote: setcookie(cookie_name, value); //redirect to another page using header header(location:.$your_url); This will fail on some legacy browsers, if you need legacy browser support. In *MOST* architectures, your visitor can be given the cookie on a page

[PHP] sqlite AND OR query ?

2007-05-08 Thread chris
Hello, I want to select two dates one being todays date and the other being -00-00 which just a date in the database when no proper date has been entered. Ive tried this but it does not work... $today = date('Y-m-d'); $result = sqlite_query($db, SELECT * FROM domains WHERE date =

RE: [PHP] Articles system

2007-05-08 Thread Richard Lynch
You seem to have fixed it, at least for FF 1.5.0.5 on Gentoo. Though there are 16 warnings according to the HTML Validator plug-in. Some of them are pretty BS (imho) about width attribute for TD tag, which, basically, every browser supports just fine, and is not going away any time soon, afaict.

Re: [PHP] Articles system

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 2:33 pm, Stut wrote: WeberSites LTD wrote: Not sure why it's not working with FF. the page passes validation at validator.w3.org. Validation has never and will never mean it looks right. And it worries me that someone presenting themselves as an authority on web

Re: [PHP] Articles system

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 3:48 pm, Micky Hulse wrote: Richard Lynch wrote: Page Size: How much content should go on each site page? Like Goldilocks and the three bears, the answer is not too much, and not too little: just the right amount of content. Or as Sr. Andre, OSC at St. Patrick's Grade

Re: [PHP] Articles system

2007-05-08 Thread Micky Hulse
Richard Lynch wrote: It should be as long as a woman's skirt; Long enough to cover everything important, and short enough to be interesting. Hehehe! Great quote! :D -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?: http://snipurl.com/w6f8 My:

Re: [PHP] Articles system

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 2:50 pm, Stut wrote: WeberSites LTD wrote: 1st, I never said I was any authority about anything :) I'm just building the weber sites as a hobby... Hobby or not, when you publish information on the web without a big message saying I have no frickin' idea what I'm talking

RE: [PHP] Articles system

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 2:54 pm, WeberSites LTD wrote: structure and semantics influence how the page looks. One browser may overlook a missing /TABLE and show the page and another may not. validating will show where you may have gone wrong. Writing good HTML is good practice :) To be pedantic:

RE: [PHP] Articles system

2007-05-08 Thread Robert Cummings
On Tue, 2007-05-08 at 19:40 -0500, Richard Lynch wrote: OMG!!! Like, 5K on a webpage? Are you crazy? Nobody will visit that! 5K deflated right?? ;) Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com |

Re: [PHP] sqlite AND OR query ?

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 7:09 pm, [EMAIL PROTECTED] wrote: I want to select two dates one being todays date and the other being -00-00 which just a date in the database when no proper date has been entered. Ive tried this but it does not work... $today = date('Y-m-d'); $result =

Re: [PHP] Articles system

2007-05-08 Thread Mike Shanley
Richard Lynch wrote: Sorry for the confusion. Think of it this way: Content is king. When your advertising out-weighs your content, you lose visitors. When you lose visitors, you lose revenue. PS Yes, I also hate the entertainment media formerly known as news. Any questions? I haven't

[PHP] Killing a process with php

2007-05-08 Thread chris
Hi could someone give me examples on how to detect and kill processes on linux. I have a number of scripts running as socketxxx.php these stop and start every hour. But I also need to at the end of each day make sure their dead before the next days start. These processes are also running as

Re: [PHP] sqlite AND OR query ?

2007-05-08 Thread chris
Thanks Richard. - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, May 09, 2007 1:49 AM Subject: Re: [PHP] sqlite AND OR query ? On Tue, May 8, 2007 7:09 pm, [EMAIL PROTECTED] wrote: I want to select two

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
Le 2007-05-08 à 16:50, Richard Davey a écrit : By how much is the difference? Are we talking a few bytes, a few megabytes, what? A 116Kb file produce a 68Kb file on the server. And a 152Kb file produce a 48Kb file on the server... If you then download the file again, is it corrupted,

Re: [PHP] Articles system

2007-05-08 Thread Robert Cummings
On Tue, 2007-05-08 at 21:21 -0400, Mike Shanley wrote: Richard Lynch wrote: Sorry for the confusion. Think of it this way: Content is king. When your advertising out-weighs your content, you lose visitors. When you lose visitors, you lose revenue. PS Yes, I also hate the

[PHP] DBA flatfile mode

2007-05-08 Thread Ultraband
Hello, I'm using PHP's dba flatfile mode to maintain a flatfile database with a few records. It works good, but I was wondering about how it works. I notice that after deleting a record, only what I take to be the key part of the record is removed (the dba_* functions now longer read this record

Re: [PHP] Weird results with floor compiling with -march=pentium4 -mcpu=pentium4

2007-05-08 Thread Chris
Rodolfo Gonzalez Gonzalez wrote: Hi, Just for the record. I compiled PHP 5.2.2 with CFLAGS=-O2 -march=pentium4 -mcpu=pentium4, as usual (I've done so with all the 5.x.x series, and the proc is a Pentium 4, of course) and a customer complained about weird results in one of his scripts. I

Re: [PHP] DBA flatfile mode

2007-05-08 Thread Chris
Ultraband wrote: Hello, I'm using PHP's dba flatfile mode to maintain a flatfile database with a few records. It works good, but I was wondering about how it works. I notice that after deleting a record, only what I take to be the key part of the record is removed (the dba_* functions now

Re: [PHP] PhP and Java login trouble

2007-05-08 Thread Chris
Brad Sumrall wrote: I am trying to create a commonlogin.php which would perform a duel login for phpbb and a java based FCKEditor combined I have working code for each as an individual but not a clue how to combine them. Does anyone have any suggestion on where I can go for information

Re: [PHP] PhP and Java login trouble

2007-05-08 Thread Chris
Firstly always CC the list - others can provide help and suggestions too. Brad Sumrall wrote: Any chance you can tell me what I am doing wrong? Brad ?php if(!isset($_SESSION[userid])) { ? form action=/phpbb/login.php method=post target=_top onsubmit=return BBValidateLogin();