[PHP] Re: Error logging

2007-06-02 Thread itoctopus
I've had the same weird problem before, and eventually I discovered that the error_reporting was set on the script level (eg in the PHP page) using the function error_reporting. The thing is any setting in your php pages would overwrite the php.ini setting (as far as I know). -- itoctopus

[PHP] Re: How can I DomDocument-renameNode?

2007-06-03 Thread itoctopus
Create a copy manually and then rename the node. -- itoctopus - http://www.itoctopus.com Eric Wiener [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Apparently renameNode is not yet implemented into Dom, so how can I rename a node without affecting its value and/or child nodes? I

[PHP] Re: Making thumbs same size

2007-06-04 Thread itoctopus
$thumb_width=50; //change this number to your preference $thumb_height=50; -- itoctopus - http://www.itoctopus.com Humani Power [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey hi!!. I have a few pages that uploads images to the apache server and makes a registry on a mysql

[PHP] Re: Is the GD module standard?

2007-06-04 Thread itoctopus
The GD module is an option that most sys admins install with php (It also installs by default on OS such as Centos, Ubuntu, etc...) -- itoctopus - http://www.itoctopus.com Dave M G [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PHP General, I have been using the imagepng

Re: [PHP] Strings

2007-06-06 Thread itoctopus
I noticed that too :) -- itoctopus - http://www.itoctopus.com Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote: do you notice the totally weird string delimiters in your original post? using either single quotes

[PHP] Re: directories - again

2007-06-07 Thread itoctopus
use the function chmod chmod($img_url, 0777); //note the leading 0, it should be there I hope this is what you want: -- itoctopus - http://www.itoctopus.com Ross [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I can make the files now after setting the permission to my

[PHP] Re: PHP Form isnt emailing me

2007-06-08 Thread itoctopus
Remove the @ next to the mail function, probably there's a warning somewhere. Additionally, are you sure that your mail server is actually working? -- itoctopus - http://www.itoctopus.com Austin C [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I just finished making a PHP

[PHP] Re: php framework, large site

2007-06-17 Thread itoctopus
cakephp is not bad, why write your own? -- itoctopus - http://www.itoctopus.com martins [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi, can some body help me, how to start php framwork for large site? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: newbie question

2007-03-21 Thread itoctopus
all. -- itoctopus - http://www.itoctopus.com bob pilly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all Can anyone tell me what '' means before a var? e.g function($var) Thanks for any help in advance ___ What kind

[PHP] Re: _Construct question

2007-03-21 Thread itoctopus
They're basically the same thing, however, you can only use __construct in PHP5. -- itoctopus - http://www.itoctopus.com John Comerford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Folks, I am still pretty new to PHP and I have a question regarding classes and using _construct

Re: [PHP] Passing variables

2007-03-22 Thread itoctopus
to use htmlentities. -- itoctopus - http://www.itoctopus.com Jeff [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thank you Chris! Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jeff wrote: I want to thank you all for clearing me up on setting

Re: [PHP] Computing and calculating dates

2007-03-24 Thread itoctopus
In case you're doing so only for database update/check, then you can use mysql's built-in date_add function. In case you really want it in PHP, then here's a link simultating: http://news.hping.org/comp.lang.php.archive/10638.html -- itoctopus - http://www.itoctopus.com Travis Doherty [EMAIL

[PHP] Luhn algorithm

2007-03-24 Thread itoctopus
$sum = 0; $alt = false; for($i = count($arrCardDigits) - 1; $i = 0; $i--){ if($alt){ $arrCardDigits[$i] *= 2; if($arrCardDigits[$i] 9) $arrCardDigits[$i] -= 9; } $sum += $arrCardDigits[$i]; $alt = !$alt; } return $sum % 10 == 0; } -- itoctopus - http://www.itoctopus.com

[PHP] Re: Book Suggestion for ZCE

2007-03-24 Thread itoctopus
Sams - Zend Php Certification Study Guide for the certification. An excellent book on PHP is PHP5 Power Programming (by Prentice Hall). -- itoctopus - http://www.itoctopus.com Danial Rahmanzadeh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hey dudes, i want to know that which books

[PHP] Re: My own captcha from 2 years ago......

2007-03-24 Thread itoctopus
Hey Jake, I checked the thing, and I tell you I did lots and lots of captchas in my life and they mainly rely on the session. Is it possible for you to post the script so that me (or anyone else for that matter) fix it for you? Take care, -- itoctopus - http://www.itoctopus.com Jake McHenry

Re: [PHP] syntax question

2007-03-26 Thread itoctopus
Escape it, use either htmlentities (with ENT_QUOTES) or addslashes. -- itoctopus - http://www.itoctopus.com Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, March 26, 2007 9:59 am, Ross wrote: Can I put post values directly into insert statements? $query

[PHP] Re: Smarty Website down?

2007-03-27 Thread itoctopus
looks ok now -- itoctopus - http://www.itoctopus.com Mario Guenterberg [EMAIL PROTECTED] wrote in message news:20070327092337.GA24779@/bin/dnsdomainname... Hi... I try to connect in the last hours and the results are timeouts. Greetings Mario

[PHP] Re: gethostbyname () uses old DNS server

2007-03-27 Thread itoctopus
gethostbyname uses the local DNS cache, could that be the problem? -- itoctopus - http://www.itoctopus.com Kent Tong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, We have moved our DNS server from one IP to another. But on a Linux server, the PHP programs keep using the old

Re: [PHP] Optimization of all mysql databases on a server

2007-03-27 Thread itoctopus
minutes, and if it reaches that timeout, it will restart the script (thinking something went wrong), very bad implementation (of wget) in my opinion. As of then, we started running CRON php scripts without using wget. -- itoctopus - http://www.itoctopus.com Jochem Maas [EMAIL PROTECTED] wrote

Re: [PHP] Optimization of all mysql databases on a server

2007-03-27 Thread itoctopus
You're right, it was running from a browser, you need to use set_time_limit. -- itoctopus - http://www.itoctopus.com Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jochem Maas wrote: Tijnema ! wrote: On 3/26/07, Chris [EMAIL PROTECTED] wrote: itoctopus wrote: The purpose

[PHP] Re: PHP Upgrade: 5 or 6

2007-03-28 Thread itoctopus
I'm migrating my company to PHP 5 (from PHP4) now. I've played with PHP6 a while ago and the only thing I can remember about it is that it obsoletes a not so few functions and has a stricter coding rules. -- itoctopus - http://www.itoctopus.com Davi [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] using for loop in function

2007-03-28 Thread itoctopus
I don't quite understand why you're naming the checbox, you can easily go for name={$name}[]; -- itoctopus - http://www.itoctopus.com Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Richard Kurth wrote: The function below will create a group of checkboxes it will also

Re: [PHP] changing array to a string

2007-03-28 Thread itoctopus
join is also an alias for implode in case you're having trouble remembering the name, so you can go for $ids = join(',', $_POST['subscriptions']); -- itoctopus - http://www.itoctopus.com Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Richard Kurth wrote: When I submit

[PHP] Re: Speed of apache/php4 on windows

2007-03-31 Thread itoctopus
to run a PHP script with nothing running in the background and see what'll happen. -- itoctopus - http://www.itoctopus.com Don Don [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, i've got apache/php4 running on windows xp with good hardware configuration etc. However, the speed

[PHP] Re: Speed of apache/php4 on windows

2007-03-31 Thread itoctopus
to run a PHP script with nothing running in the background and see what'll happen. -- itoctopus - http://www.itoctopus.com Don Don [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, i've got apache/php4 running on windows xp with good hardware configuration etc. However, the speed

[PHP] Re: Downloads for subsrcibers only

2007-04-01 Thread itoctopus
. -- itoctopus - http://www.itoctopus.com Mário Gamito [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I made this site in PHP that has a page with some PDFs to download. My costumer wants that only subscribed people are allowed to download the PDFs. I've already made the subscrbe

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread itoctopus
Note, however, that array_keys is not recursive. -- itoctopus - http://www.itoctopus.com Man-wai Chang [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jake McHenry wrote: foreach ($myarray as $key = $value) { echo $key = $value; } Thanks. I just found

[PHP] Re: Get free broadband internet from google!

2007-04-01 Thread itoctopus
That's funny, looks like the good people at google have lots of time on their hands. -- itoctopus - http://www.itoctopus.com Tijnema ! [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, It's true, free broadband internet from google :) Have a look at this page: http

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread itoctopus
foreach is also not recursive, writing a recursive function to recursively return the keys in an array should be trivial. -- itoctopus - http://www.itoctopus.com Man-wai Chang [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] itoctopus wrote: Note, however, that array_keys

[PHP] Re: Problems with mail

2007-04-02 Thread itoctopus
Weird, this code should work. Are you sure there is no hidden space somewhere in the email. Try just to hardcode the email (eg. mail('[EMAIL PROTECTED]', $subject_users_subscription_confirmation, $message_users_subscription_confirmation); and see what'll happen. -- itoctopus - http

Re: [PHP] mixture of GET and POST

2007-04-03 Thread itoctopus
://www.quirksmode.org/js/forms.html -- itoctopus - http://www.itoctopus.com clive [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This has nothing to do with php, I suggest you read up on how html forms work and you may need to learn some javascript. clive. I have 3 'action' buttons and I

[PHP] Re: php-mysql problem

2007-04-03 Thread itoctopus
$sql = SELECT count(Email) as numEmails, Email FROM mena_guests WHERE Voted='yes' GROUP BY Email ORDER BY numEmails DESC LIMIT $startingID, $items_numbers_list; -- itoctopus - http://www.itoctopus.com Me2resh Lists [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi i need help

[PHP] Re: php-mysql problem

2007-04-03 Thread itoctopus
$sql = SELECT count(Email) as numEmails, Email FROM mena_guests WHERE Voted='yes' GROUP BY Email ORDER BY numEmails DESC LIMIT $startingID, $items_numbers_list; I answered this morning, I don't know why it got deleted -- itoctopus - http://www.itoctopus.com Me2resh Lists [EMAIL PROTECTED] wrote

Re: [PHP] PHP textbook suggestions?

2007-04-05 Thread itoctopus
, go for PHP5 Power Programming by Prentice Hall, it's the best in the market in my opinion, it teaches the language itself, as well as best practices, all in an OOP twist. -- itoctopus - http://www.itoctopus.com Tijnema ! [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 4/5/07, Zoltán

[PHP] Re: PHP4 vs PHP5

2007-04-07 Thread itoctopus
like the idea of maintaining 3 PHP versions once PHP6 is released). All in all, PHP5 is a very wise choice at the moment. -- itoctopus - http://www.itoctopus.com Fernando Cosso [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I know this topic has to be discussed several times but I

[PHP] Re: link counting

2007-04-07 Thread itoctopus
is the function is_url function is_url($url) { return preg_match('#^http\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $url);} taken from this link: http://plurged.com/code.php?id=26 -- itoctopus - http://www.itoctopus.com Sebe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i thought of an idea

[PHP] Re: Submitting as POST. Why?

2007-04-07 Thread itoctopus
POST is mainly used to modify data, GET is mainly used to show data. -- itoctopus - http://www.itoctopus.com barophobia [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My Peeps, I only know of one reason to submit a form as POST and that is because you can submit more data in one

[PHP] Re: spl DirectoryIterator

2007-04-07 Thread itoctopus
After some testing and reading, I think this function is still experimental. Anyone else has some thoughts on this? -- itoctopus - http://www.itoctopus.com Matthew Dellar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a problem, I need to turn an iterator into an array

[PHP] Re: which CMS are you using and why?

2007-04-08 Thread itoctopus
Mambo/Joomla, they're both great. Wordpress is also excellent, though I'm not sure it would fit your needs. -- itoctopus - http://www.itoctopus.com Fernando Cosso [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well that's the question. I have to start a new project and I have

[PHP] Re: keeping credit card info in session

2007-04-08 Thread itoctopus
. -- itoctopus - http://www.itoctopus.com [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All, I've got quite a bit or php experience, but I've never had to deal with credit card info before. Now for a property rental site, I'm adding a way for users to be able to fill out a form which

[PHP] Re: session in forum

2007-04-08 Thread itoctopus
http://www.sitepoint.com/article/users-php-sessions-mysql -- itoctopus - http://www.itoctopus.com uni uni [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] im trying to make a forum for my school assignment, its done and work well, but i want to make session where it is readonly for un

[PHP] Re: MySQL exceptions

2007-04-09 Thread itoctopus
Use the @ in front of the statement and then check the result if it's valid. -- itoctopus - http://www.itoctopus.com Davi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all! I'm developing an OOP app using PHP 5. I want to use try-catch with mysql functions. So, the question

[PHP] Re: Curious Problem with $_POST

2007-04-09 Thread itoctopus
You should check $_FILES, and your form tag should be like this form action='yoursubmitfile' method='post' enctype='multipart/form-data' -- itoctopus - http://www.itoctopus.com Stephen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a form for uploading files. It is intended

Re: [PHP] Re: keeping credit card info in session

2007-04-10 Thread itoctopus
Encryption is a mandatory part of PCI compliance... -- itoctopus - http://www.itoctopus.com Jim King [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does encrypting credit card information really do any good? You have to store the keys somewhere to decrypt the data to use

[PHP] Re: Evaluating strings...

2007-04-11 Thread itoctopus
= is for assigment == is for typeless comparison (meaning 1 will be equal to '1', '' will be equal to 0) === is for type comparision (meaning 1 will only be equal to 1, '' will only be equal to '', and TRUE will only be equal to true) -- itoctopus - http://www.itoctopus.com Anthony J. Maske

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-11 Thread itoctopus
yup, $_GET to get stuff from the URL $_POST to get stuff from the form $_SESSION to get stuff from the session $_FILES in case you have files in your form, they will be stored here -- itoctopus - http://www.itoctopus.com Anthony J. Maske [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

[PHP] Re: File uploading and saving info on mysql

2007-05-03 Thread itoctopus
Here's the file upload class making your life easier: ?php /* @class FileManager @description This class handles interaction with Files @copyright itoctopus 2007 - The Genoc Library */ class FileManager{ /* [EMAIL PROTECTED] save [EMAIL PROTECTED] this function saves the file

[PHP] Re: Redirect via GET is loosing characters

2007-05-03 Thread itoctopus
You just have to store your form inputs in the session. -- itoctopus - http://www.itoctopus.com Merlin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I am checking plausability inside a php script that receives a POST submit. If an error occures the user should

[PHP] Re: Split string

2007-05-03 Thread itoctopus
if ($your_string !== ''){ $arr_string = explode(',', $your_string); $first_part = $arr_string[0]; array_shift($arr_string); $second_part = implode(',', $arr_string); } -- itoctopus - http://www.itoctopus.com Lester Caine [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

Re: [PHP] What does mean?

2007-05-03 Thread itoctopus
never ever used it... I also voted! -- itoctopus - http://www.itoctopus.com Philip Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: On 4/30/07, Nick Gorbikoff [EMAIL PROTECTED] wrote: Hello, folks. I rember I've since

[PHP] Re: Custom session save handler. What's happens really?

2007-05-04 Thread itoctopus
You have to explicitly serialize and unserialize the objects. I think the confusion here is with the automatic __wakeup and __sleep functions: http://www.devshed.com/c/a/PHP/Using-the-Sleep-and-Wakeup-Functions-to-Serialize-Objects-in-PHP/ -- itoctopus - http://www.itoctopus.com [EMAIL

[PHP] Re: Newbie Question - Form To Email Needed

2007-05-05 Thread itoctopus
1st page: form textarea name='thebody'/texarea /form 2nd page: $str_body = $_POST['thebody']; mail('[EMAIL PROTECTED]', 'This is the subject', $str_body); Of course you can have the email and the subject fields come also from the 1st page. Hope that helps! -- itoctopus - http

Re: [PHP] Getting multitple select values on PHP side

2007-05-05 Thread itoctopus
Totally agree, generates a lot of support. -- itoctopus - http://www.itoctopus.com Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, May 4, 2007 3:56 pm, Skip Evans wrote: I have a requirement for a select on a form that has to be able to get multiple values

[PHP] Re: Best way to format double as money?

2007-05-06 Thread itoctopus
I'd use number_format, money_format is OS dependent. -- itoctopus - http://www.itoctopus.com Todd Cary [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a MySQL DB that stores currency values as doubles. I want to display the values in the #,##0.00 format. What is the best way

[PHP] Re: losing session variable

2007-05-06 Thread itoctopus
session_write_close(); -- itoctopus - http://www.itoctopus.com Alain Roger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have the following code : session_start(); $_SESSION['username']=$myusername; $_SESSION['Localization'] = $lang; header(Location

[PHP] Re: CMS Systems

2007-05-07 Thread itoctopus
I use wordpress, easy, clean, and lots of plugins. Joomla is also good. -- itoctopus - http://www.itoctopus.com Joey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone know of any good open source CMS system? ( content management system ) Thanks! Joey -- PHP

[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

[PHP] Re: CMS

2007-05-08 Thread itoctopus
will allow you to install your CMS (some hosting companies have even created their own wizards to create your CMS site, which will make your job even easier) -- itoctopus - http://www.itoctopus.com Jyoti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Can anyone can tell me what CMS

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

[PHP] Re: session cookies enabled?

2007-05-08 Thread itoctopus
that helps! -- itoctopus - http://www.itoctopus.com [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Re: [PHP] PhP and Java login trouble

2007-05-09 Thread itoctopus
I agree with Chris, if you can do it this way, then it's much better. Working with FCKEditor's code was not one of the easiest things I did in my life. -- itoctopus - http://www.itoctopus.com Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Brad Sumrall wrote: I am trying

[PHP] Re: Disable Soap Client and Soap Server in php5

2007-05-09 Thread itoctopus
I think the only way, and I really hope I'm mistaken, is to recompile php with --disable-soap. I don't think you can do it from php.ini. -- itoctopus - http://www.itoctopus.com Don Don [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How can i disable soap client and server for php5

[PHP] Re: Passing an array as a hidden variable

2007-05-12 Thread itoctopus
']); -- itoctopus - http://www.itoctopus.com Todd Cary [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When I use the following syntax, the 2 dimensional array loses it's contents. Can an array be passed this way? ? echo 'input type=hidden name=attend_ary_save value=' . $attend_ary_save

[PHP] Re: cloning $this php5

2007-05-12 Thread itoctopus
I don't think the clone function works on $this. -- itoctopus - http://www.itoctopus.com blackwater dev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a method within an class that should make a copy of itself, do some stuff on the copy and return it. The object contains

[PHP] Re: self:: vs this

2007-05-12 Thread itoctopus
self:: static functions $this- non static functions -- itoctopus - http://www.itoctopus.com Mariano Guadagnini [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never

[PHP] Re: Do you use any framework in your applications?

2007-05-12 Thread itoctopus
I'm currently using Ruby on Rails. As for PHP, all the frameworks I ever worked with were developed in-house. I've tinkered a bit with CakePHP and it looked very good. -- itoctopus - http://www.itoctopus.com cajbecu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I

[PHP] Re: Tipos about which CMS use

2007-05-17 Thread itoctopus
I've said it before and I'll say it again: Wordpress. Joomla/Mambo are also a good choice. -- itoctopus - http://www.itoctopus.com robert mena [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I'd like to replace my 'intranet' site with a CMS system to speed up the edit

[PHP] Re: reading Paradox (.db) files

2007-05-17 Thread itoctopus
Simple search on google: http://www.phpfreaks.com/pear_manual/page/pecl.paradox.html -- itoctopus - http://www.itoctopus.com Bosky, Dave [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Has anyone had any experience opening and reading Paradox (.db) files using PHP? Are there any plug

[PHP] Re: Confused about how exactly to output image using imagepng function

2007-05-17 Thread itoctopus
Why are you creating your own captcha? I used the first one I found on google and it worked fine for me. -- itoctopus - http://www.itoctopus.com Dave M G [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PHP list, I've looked at the manual entries for imagepng

Re: [PHP] Setting Up A Simple Shopping Cart

2007-05-17 Thread itoctopus
I'd go with OSCommerce. -- itoctopus - http://www.itoctopus.com revDAVE [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 5/17/2007 7:05 AM, revDAVE [EMAIL PROTECTED] wrote: Hello folks, I am a PHP NEWBIE. - I have the following three choices for shopping carts on my server

[PHP] Re: showing source

2007-05-18 Thread itoctopus
yup, highlight_file($file_name) is your magical answer. http://ca.php.net/highlight_file Make sure this function will only access specific directories. -- itoctopus - http://www.itoctopus.com M.Sokolewicz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Why don't you use

Re: [PHP] stay logged in for session

2007-05-18 Thread itoctopus
Exactly! I still can't believe how many sites out there have the SQL injection problem. -- itoctopus - http://www.itoctopus.com Edward Kay [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original Message- From: Joshua [mailto:[EMAIL PROTECTED] Sent: 18 May 2007 12:09

[PHP] Re: php5 cert

2007-05-18 Thread itoctopus
I know someone who easily passed PHP4, but never made it on PHP5, so don't expect the same level of questions. -- itoctopus - http://www.itoctopus.com Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anyone wanna share their insights into the php5 cert test? The php4

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread itoctopus
I'm genuinely interested to know with whom you're hosting... -- itoctopus - http://www.itoctopus.com Tijnema [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 5/19/07, Al [EMAIL PROTECTED] wrote: How can anyone, other than the staff, get into my site? Far as I know, other users

[PHP] Re: Adserver programming with php

2007-05-20 Thread itoctopus
My approach would be to build now using the fastest way and get the thing up running, and then see if the needs arise to build the application using a somehow slower way. -- itoctopus - http://www.itoctopus.com Merlin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I

[PHP] Re: Marketplace Framework

2007-05-20 Thread itoctopus
Try osCommerce -- itoctopus - http://www.itoctopus.com PHP Mailing List [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All, Is there any PHP's framework for developing a marketplace site ? Regards, Dino -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: PHP Data Mining/Data Scraping

2007-05-20 Thread itoctopus
In case you have no control on the other URL, then CURL is probably your best solution. Otherwise, a better way to do it is probably to interact with a web service installed on the other website. -- itoctopus - http://www.itoctopus.com Shannon Whitty [EMAIL PROTECTED] wrote in message news

[PHP] Re: Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread itoctopus
I have tried both, and I tell you that I really felt that the filesystem is a more convenient way of doing it. -- itoctopus - http://www.itoctopus.com [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am in the process of adding a part to my website which would include pictures, pdf

[PHP] Re: convert numerical day of week

2007-05-22 Thread itoctopus
I think what you need is simply something like this: function get_day($int_day){ $arr_day_of_week = array('1'='Sunday', '2'='Monday', '3'='Tuesday', '4'='Wednesday', '5'='Thurdsay', '6'='Friday', '7'='Saturday'); } echo(get_day(1)); //will print Sunday -- itoctopus - http

[PHP] Re: Enabling LDAP on Plesk 8

2007-05-22 Thread itoctopus
Hope this helps: http://forum.mamboserver.com/showthread.php?t=55page=6 -- itoctopus - http://www.itoctopus.com Sn!per [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Am currently running Plesk 8.0.1 . A php script with phpinfo() will give: ... ... '--with-kerberos' '--with-ldap

[PHP] Re: Enabling LDAP on Plesk 8

2007-05-22 Thread itoctopus
ok, I read the whole thread and it seems it went absolutely nowhere. Sorry... -- itoctopus - http://www.itoctopus.com itoctopus [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hope this helps: http://forum.mamboserver.com/showthread.php?t=55page=6 -- itoctopus - http

[PHP] Re: php upload files

2007-05-23 Thread itoctopus
As far as I remember, IIS used to have a reserved user that it ran all its actions under. All you have to do is to give this user the necessary permissions (I remember the username started with I). Here's a link that might help : http://support.microsoft.com/kb/812614 -- itoctopus - http

[PHP] Re: format date field

2007-05-23 Thread itoctopus
SELECT DATE_FORMAT('open', '%m-%d-%Y') FROM your_table_name; -- itoctopus - http://www.itoctopus.com Mike Ryan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am reading in a date field from a mysql database the field on the screen shows up as 2007-05-01 on the screen I would like

[PHP] Re: Include file questions

2007-05-23 Thread itoctopus
1- No 2- Yes -- itoctopus - http://www.itoctopus.com Stephen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 1) Does the filename extension matter? I prefer *.inc? It seems to work fine, but I only see others using *.php 2) Does the include file need an opening ?php and ending