Re: [PHP] is there a static constructor?

2011-03-31 Thread Darren Karstens
class Daz_Config { private static $instance; private function __construct(){ $this->load(); } private function load() { ... } public function get($key) { ... } public static getInstance(){ if (!self::$instance) self::$instance = new Daz_Config();

[PHP] PHP can't find OCI.dll

2010-04-23 Thread Darren Karstens
y and have included the ORACLE_HOM/bin directory (where the OCI.dll is located) in my path but PHP still cant find it. Does anyone know what might be causing this? Regards, Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Enforce a constant in a class.

2010-01-22 Thread Darren Karstens
One way to do it would be to use getter functions in your interface that return the value of the constant (or a member variable) in your implemented class. For example: interface SetKillSwitch { public function getKillSwitchNotes(); } Then in your class implement your getKillSwitchNotes fu

Re: [PHP] "Call to undefined method" on class property!?

2010-01-07 Thread Darren Karstens
Do you have a method in your Database class called affected_rows() ? >From the code you have shown you only have a member variable called affected_rows and so your call $db->fetch_array($result) is falling over. On Thu, Jan 7, 2010 at 8:47 AM, Allen McCabe wrote: > I have a singleton database obj

Re: [PHP] Scope of Variables and use of global and this->var

2009-07-14 Thread Darren Karstens
> Oh and if one class uses methods in another class do I instansiate a > new object of the other class I have seen use of OtherClass::Method >  is this better method of $obj = new OtherClass()  use The :: is used to access static methods of a class. Static methods can be used withou

[PHP] ZipArchive doesnt work for large files

2009-05-05 Thread Darren Karstens
Hi, I am having problems using any of the ZipArchive functions for files above a certain size. For example creating a new zip and adding 1 file works fine for files that are only a few kb, but when I tried a slightly large one (about 60k) the zip became corrupt. Here is the code im using: $zip = n

Re: [PHP] Two very useful PHP functions

2009-05-01 Thread Darren
This was discussed for PHP6, but eventually decided not to have such a function. Instead, we now have the following:$var = $_GET['var'] ?: 5; Taken from http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html 'you'd be able to do something like this: "$foo = $_GET['foo'] ?: 42;" (i.e. if

[PHP] Renaming archive entries doesnt work

2009-04-30 Thread Darren Karstens
Hi, I am trying to add a prefix to all of the entries in a zip file using the ZipArchive::renameIndex function which is corrupting the files when I try to extract them. I was wondering if anyone else has used this method successfully? Here is the code im using: $client='TEST'; $zip = new ZipArchiv

Re: [PHP] Re: Unit Testing

2009-04-29 Thread Darren Karstens
You are right, when doing unit tests you only want to test the functionality of the current class and so if there are errors its easier to track down which class is causing the problem. I personally use an api called SimpleTest for my php testing and what you can do with this is create Mock object

[PHP] Re: stream_socket_accept() on an SSL socket

2008-12-02 Thread Darren
Darren wrote: I'm trying to connect to an SSL server, but I keep on getting these errors: - PHP Warning: stream_socket_accept(): SSL operation failed with code 1. OpenSSL Error messages: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol in C:\scripts\bouncer.p

[PHP] stream_socket_accept() on an SSL socket

2008-12-02 Thread Darren
ocket)) { Over the past few days of searching I've found a lot of people asking a similar thing but without any answers. I've tried the latest PHP snapshot too. Can anyone here give any insight to these errors?? Thanks for any help Darren -- PHP General Mailing List (http://w

[PHP] Re: About search engine usability

2007-12-31 Thread Darren Whitlen
Jim Webber wrote: Hello I'm building a website with a search engine. Do you think it is more usable if the search interface had a search button? or do you think it will be more convenient to not have button to let the users just push "enter" to search. I would appreciate any comment regarding

Re: [PHP] Assign variable to a block of html code

2007-12-20 Thread Darren Whitlen
doesn't even parse! The closing EOF should not start with the "<<<". It should only be the identifier ("EOF") followed by ; and a new line. - $myblokvar = << . EOF; - Darren No need of quotes or php start/end tags when p

[PHP] Re: Assign variable to a block of html code

2007-12-20 Thread Darren Whitlen
pes.string) -   $log_info       html; echo $myblokvar; ?> - Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: problem with pcode function

2007-07-18 Thread Darren Whitlen
//www.w3.org/1999/xhtml";> table { width:400px; } th { text-align:right; text-decoration:none; font-weight:normal; } td{ width:400px; } Find Your Nearest Consultant by Entering Your Postcode Below $result = pcaStoredNearest($pcode

[PHP] Re: 縁談はあるのに独身をやめない 女性達の本当の理由とは??

2007-07-11 Thread Darren Whitlen
I completely agree there. Darren 独身貴族の生態系 wrote: > ルックスが悪いわけじゃない。仕事を頑張りたいだけが理由じゃない。 > 「だったらなぜ?」それは当然の疑問です。リサーチの結果これほど性的に飢えた人種はいないという事実が発覚し分離改装となりました。 > 今回のご案内はこちらです! > >■□■ 完全無料制・独身貴族攻略大全集 ■□■ > 家庭を持つ安定 < 独身の自由な性生活 >    http://fochun.com/kouryaku/4/ > > 1・コミニ

[PHP] Re: A very strange loop!

2007-07-09 Thread Darren Whitlen
'AA'; $i++) { echo $i . ' '; } Using $i < 'AA' doesn't seem to work either, which I find a bit odd. Hope that helps, Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP vs Delphi Comparison?

2007-07-03 Thread Darren Scales
On 03/07/07, Stut <[EMAIL PROTECTED]> wrote: Darren Whitlen wrote: > Dan wrote: >> I'm looking for a way to introduce PHP to some Delphi programmers, so >> I thought a comparison would show them the major differences, but I >> can't find anything like tha

[PHP] Re: PHP vs Delphi Comparison?

2007-07-02 Thread Darren Whitlen
rences, as they are 2 completely different languages designed for completely different reasons. One is compiled, and for desktop software, while the other is scripted and designed to only output text. It really is like comparing apples to oranges. Darren -- PHP General Mailing List (http://w

[PHP] UI toolkit

2007-06-24 Thread Darren Whitlen
, if anybody knows of any other native UI toolkits available for PHP? At least native linux and windows look. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Threading

2007-06-20 Thread Darren Whitlen
have real multi threading in PHP. Would anybody here know of any way to use threads in PHP that I may have missed? I'm hoping to find a way that would work on most OS's without any major changes. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Form Data Filtering

2007-06-15 Thread Darren Whitlen
"dick" || $value == "hoe") { $profanity[$field] = "bad"; } Any suggestions welcome. I find it hilarious how you've just posted as many dodgy words as you could to the list :) But try... $bad_words = array("word1", "word2", "word3"); if(in_array(strtolower($_POST['val']), $bad_words)){ $_POST['val'] = "bad"; } Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-14 Thread Darren Whitlen
Better = more features? Zend Studio Better = least system resources? Joe Better = IDE? Zend Studio Personaly, I would MUCH prefere Zend Studio over Joe. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: does this code look like it would check a file extensions, and disallow php files or exe files to be attached

2007-06-14 Thread Darren Whitlen
dave peaachepea wrote: storeFile(); } ?> I'm not a programmer, and I'm very new at php so im sure there are errors and stupid logic in my code. It would be greatly appreciated if anyone here could critique and rip apart my code. thank you, -dave A bit easier: // Not sure where y

Re: [PHP] Re: [BULK] [PHP] Redirecting to a parent page

2007-06-13 Thread Darren Whitlen
. You will only then have to change it in one place. Darren Thanks in advance Yamil -Mensaje original- De: clive [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 13 de Junio de 2007 05:37 a.m. Para: PHP General List Asunto: [PHP] Re: [BULK] [PHP] Redirecting to a parent page Ya

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Darren Whitlen
. All error printing should be turned off an a production server anyhow. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: any security problems with this?

2007-06-12 Thread Darren Whitlen
only be run if you call it in one of your scripts, when the database is needed. The user has no way of calling the function or seeing the code, so there shouldnt be any security risks at all. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: "tail" solution for PHP5 wanted

2007-06-11 Thread Darren Whitlen
x Consultant read the file, and save the last position you read from in a session. when the page reloads, carry on reading from the saved position. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Printing MSSQL-Query ERROR description in PHP

2007-06-05 Thread Darren Whitlen
look at the subject ;) that's how I guessed what he wants Woops, missed that. You have a good point there :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Printing MSSQL-Query ERROR description in PHP

2007-06-05 Thread Darren Whitlen
Zoltán Németh wrote: 2007. 06. 5, kedd keltezéssel 11.38-kor Darren Whitlen ezt írta: karthi keyan wrote: Hi, Is there any way to print the reason why the query has been failed, like the way MySQL-PHP has mysql_error()? Regards, KARTHIK

[PHP] Re: Printing MSSQL-Query ERROR description in PHP

2007-06-05 Thread Darren Whitlen
x27;m confused, mysql_error() does return the error description from mysql. Try running this query on one of your databases: $rs = mysql_query("SELECT non_existant_column WHERE some_column = 1") or die(mysql_error()); Running that will print out the error in the query. (Intended errors

[PHP] Re: local v remote

2007-05-31 Thread Darren Whitlen
%m/%Y') as date, title, id, display FROM NEWS") or die(mysql_error()); --- Using that die statement will also help while debugging your script as it will print out any errors that are caused by your SQL statement. Which you then ask some mysql people if that is the case. Darren --

Re: [PHP] Return or not to return, that is the question

2007-05-30 Thread Darren Whitlen
Chris Boget wrote: If there is no need to return a value then I don't do so. However, the function is going to process something, and surely you should check that the processing has succeeded or failed? This is precisely the point I was going to make. Unless an argument is passed in by refer

[PHP] Re: Sessions VS MySQL

2007-05-30 Thread Darren Whitlen
to the database each page run. This will also help in that other players will beble use that data. Say if you needed the top scoring 10 players for example, the data is already saved in the database so it will be easy to find that out, with the most up-to date player data. Darren I apprecia

Re: [PHP] tinymce, php and mysql problem

2007-05-29 Thread Darren Whitlen
oesn't solve it (which I think it most likely will), echo out the SQL query its sending and post it here so we can take a look. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-25 Thread Darren Whitlen
Jared Farrish wrote: On 5/25/07, Jason Pruim <[EMAIL PROTECTED]> wrote: I apologize for posting the entire add script, but I wasn't sure what was needed to check if I was doing it right or not. I figured in this case it was better to give to much info rather then not enough. My big main goal it

Re: [PHP] System wide variable

2007-05-25 Thread Darren Whitlen
Richard Lynch wrote: On Wed, May 23, 2007 4:27 am, Darren Whitlen wrote: John Comerford wrote: Not thought about the memory engine actually. Will give that a try and see how it turns out. Let us know. Finaly managed to get it going (uses AJAX which im not to great at..), and the database

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-24 Thread Darren Whitlen
I'm fairly safe from the bad people and the stupid users? I cannot see any sql-injection protection in your code anywhere? Seems as your using mysqli, take a look at the mysqli_real_escape_string() function. You need to run each _POST variable throught it. $FName = mysqli_real_escape_string($_POST['FName']); Or if your post data only contains data to be entered into the database, you might consider running everything through the function to make things easier: foreach($_POST as $k => $v) $_POST[$k] = mysqli_real_escape_string($v); Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Darren Whitlen
Stut wrote: Jean-Christophe Roux wrote: Thank you for the answers. The issue is that the same codes are in folders A and B. When they are run from two different browsers, I am getting the behavior I 'd like to see with two session ids being created and therefore no sharing of $_SESSION variabl

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Darren Whitlen
art as many sessions as you like. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: two php scripts with same $_SESSION variables

2007-05-24 Thread Darren Whitlen
Session vars are available for every script that is run after the session has started. If you want to stop the session for te remainder of the script, you can use session_write_close(). http://uk2.php.net/session Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: instant messenger php + ajax

2007-05-24 Thread Darren Whitlen
Marco Sottana wrote: i would like a one to one chat .. no one to everybody - Original Message - From: "Darren Whitlen" <[EMAIL PROTECTED]> To: Sent: Thursday, May 24, 2007 10:05 AM Subject: [PHP] Re: instant messenger php + ajax Marco Sottana wrote: hi i am lookin

[PHP] Re: instant messenger php + ajax

2007-05-24 Thread Darren Whitlen
y personal favourite though has to be http://yurivish.com/yshout/ Bare in mind though, any PHP webserver based chat, will have a HUGE demand on the server. Check your bandwidth constantly, it's gonna increase. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: Help with php server and sockets

2007-05-23 Thread Darren Whitlen
is a standard protocol for communicating between languages/servers. Altho very bloated IMO, it should work fine within a CLI app. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Include???

2007-05-23 Thread Darren Whitlen
this line: if ($_POST['status_code'] = "C") { to this: if ($_POST['status_code'] == "C") { You need 2 equal signs when comparing. Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] System wide variable

2007-05-23 Thread Darren Whitlen
John Comerford wrote: How about a table using the mysql memory engine ? Darren Whitlen wrote: Hi, I have a PHP script that reads and updates either a small file or a mysql database. This script is called from several places every .5 seconds. I would like to move this file to a variable for

Re: [PHP] System wide variable

2007-05-23 Thread Darren Whitlen
Stut wrote: Darren Whitlen wrote: I have a PHP script that reads and updates either a small file or a mysql database. This script is called from several places every .5 seconds. I would like to move this file to a variable for extra speed as the file is causing a few problems being

[PHP] System wide variable

2007-05-23 Thread Darren Whitlen
to have a writeable variable that has the scope of EVERY script that is run through the parser? Thanks, Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simpleXML - simplexml_load_file() timeout? [Resolved]

2006-04-11 Thread darren kirby
else { $lfd = fopen($cache_version, 'w'); fwrite($lfd, $data); fclose($lfd); $xml = simplexml_load_string($data); } print "\n"; foreach ($xml->channel->item as $item) { $cleaned = str_replace("&", "&a

Re: [PHP] simpleXML - simplexml_load_file() timeout?

2006-04-10 Thread darren kirby
I do get something figured out I will post results here. Problem is, with either method I need to find a feed that is slow to test with. If I test it with a bunk url it will just 404 immediately right? Is there a way to simulate a slow connection? > -- > Like Music? > http://l-i-e.c

Re: [PHP] simpleXML - simplexml_load_file() timeout?

2006-04-10 Thread darren kirby
esponse, As Robert Cummings suggested above, the easy solution is to use curl, which does offer a timeout option, and then feed it to simplexml_load_string(). I am writing some code now... Thanks, and have a good one, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org &q

Re: [PHP] simpleXML - simplexml_load_file() timeout?

2006-04-10 Thread darren kirby
quoth the Robert Cummings: > On Mon, 2006-04-10 at 17:46, darren kirby wrote: > > quoth the Robert Cummings: > > > Why do you do this on every request? Why not have a cron job retrieve > > > an update every 20 minutes or whatnot and stuff it into a database > >

Re: [PHP] simpleXML - simplexml_load_file() timeout?

2006-04-10 Thread darren kirby
imes when the page with my feeds goes for a few hours without a request. Of course, this still wouldn't solve my original problem. > Cheers, > Rob. > -- Thanks for your insight, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of

[PHP] simpleXML - simplexml_load_file() timeout?

2006-04-10 Thread darren kirby
p;", $item->link); print "$item->title\n"; } print "\n"; } PHP 5.1.2 on Linux. thanks, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected.

Re: [PHP] Timestamp needed in error log

2006-04-08 Thread darren kirby
> > > > and use your loggers filter facilities to keep the php messages in a > > separate file. Again, here syslog will provide its own timestamp. > > > > -d > > Thanks for the feedback, Darren! > > So at least one person in the world does get a filestamp in h

Re: [PHP] Timestamp needed in error log

2006-04-08 Thread darren kirby
or log, which provides its own timestamp. Another option is to log to the system logs: error_log = syslog # in php.ini and use your loggers filter facilities to keep the php messages in a separate file. Again, here syslog will provide its own timestamp. -d -- darren kirby :: Part of the problem si

Re: [PHP] 404 ErrorDocument in safe mode

2005-10-13 Thread darren kirby
everything > gone OK. Have anyone idea to fix this. Sorry for my English. > > -- > Kody First thing to check is that your server has permissions to read the script, as there seems to be a permissions problem here. More details about your server setup might help to diagnose this further.

Re: [PHP] E-Mail

2005-09-18 Thread darren kirby
lso need software to actually transport the mail. -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972 pgpvlZiWL0lEE.pgp Description: PGP signature

Re: [PHP] While and echoing HTML

2005-05-10 Thread darren kirby
k here. Why the '$product_type"; > } > $i++ As the error message is trying to tell you, php statements are terminated with semi-colons: $i++; > ?> > > > > > I get the folowing error, > > *Parse error*: parse error, unexpected '}', expecting

Re: [PHP] Re: php/mysql url validation methods...

2005-02-14 Thread darren kirby
quoth the Jason Barnett: > Darren Kirby wrote: > > The problem is that after playing around with this a bit, it is clear > > that someone can craft a url with an arbitrary $postid that is not in the > > database yet. Now naively, it would seem that the worst someone could

[PHP] php/mysql url validation methods...

2005-02-13 Thread darren kirby
t? If you need more info, please just ask... Thanks, Darren Kirby -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972 pgpuX2cdA4ReJ.pgp Description: PGP signature

[PHP] PHP Development IDE's/Editors

2005-02-09 Thread Darren Linsley
I will apologise for this questions now, but everyone has to start somewhere. I am just starting out with PHP and wanted to know what development environments/editors that you guys are using for your PHP development. (On Windows) I know that you can use good ol Visual Notepad, but i was wonderin

Re: [PHP] Server Uptime

2005-02-07 Thread darren kirby
is put a static binary of 'uptime' into safe_mode_exec_dir (specified in php.ini) and use an exec call to get the info... -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..."

Re: [PHP] Re: Encryption

2004-12-21 Thread Darren Wheatley
Richard, Thanks for your help. The code (as I mentioned) was not mine. I did however find the example from the link you sent me to and followed that. It works quite well. Again, thanks for your time. Darren "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

Re: [PHP] can I compile php source

2004-12-21 Thread Darren Wheatley
e will all be dead, maybe the next generation will actually learn something John. Darren "Bruce Douglas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > and this response was helpful to the guy who asked the original question, how > > i mean, aside

[PHP] Re: Encryption

2004-12-20 Thread Darren Wheatley
If nobody has a better suggestion I am simply going to do a reverse check and for those that fail implement a massive hack. I really don't want to do that... Please, if you have any ideas give me a yell? D "Darren Wheatley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Encryption

2004-12-20 Thread Darren Wheatley
know of a working example/tutorial, can you please reply with a link? Many thanks, Darren \n"; for ($i=0;$i<$intTot;$i++) { if ($i%1000 == 0) { echo $i.""; flush(); } $strInit

Re: [PHP] grabbing source of a URL

2004-12-10 Thread Darren W
, $arrTemp)) { // extract the href and do the copy here. $blnOutPut = FALSE; } if ($blnOutput) { array_push($arrOutput, $strVal); } } }

[PHP] Problems implementing encryption: mcrypt_cfb

2004-12-10 Thread Darren W
nyone suggest how to fix this problem (and perhaps also post it under that section of the php function help) or suggest an alternate solution? Any help would be appreciated, Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Dynamic method calling

2004-04-07 Thread Darren Beale
Justin Patrin wrote: > For member fuctions: > $a = 'nameOfMemberFunction'; > $this->$a(); Typically the only thing I didn't try thanks++ Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Dynamic method calling

2004-04-07 Thread Darren Beale
but there is no other output. Is what I want to achieve possible? regs Darren class foo { var $lookup; function foo() { $this->lookup = array(); } function getItem($entry) { if (!array_key_exists($en

[PHP] Problems with imagecreatefromjpeg ?

2003-09-29 Thread Darren Gamble
sc/magic.mime' '--with-mysql=/usr/local' '--with-ncurses=/usr' '--with-ldap=/usr/local' '--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes' '--enable-posix' '--with-pspell=/usr/local' '--with-readl

RE: [PHP] Sessions question

2003-03-21 Thread Darren Young
It's a "session" cookie, the browser clears it when it's closed. IIRC you set the time to 0 to turn the cookie into a session one. Not sure how it'll work with sessions though. > -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED] > Sent: Friday, March 21, 2003 9:59 AM > T

RE: [PHP] Detailed error message?

2003-03-21 Thread Darren Young
I use the set_error_handler and have a local function that dumps that stuff. I then redirect all of that to a log file on disk so the user doesn't have to see it. Check http://www.php.net/manual/en/function.set-error-handler.php There's a whole section in the manual that deals with error handling

RE: [PHP] web services

2003-03-21 Thread Darren Young
I seem to remember reading somewhere about compiling PHP pages to 'bytecode' thus removing the need to distribute the source PHP pages. I'm going to have the need down the road to distribute a PHP based app to others and am curious about the same "hiding code" issues. I'm not all that worried about

[PHP] SOAP

2003-03-11 Thread Darren Young
Is there any way to act as a SOAP client with PHP other than with pear? Thx. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RedHat 8.0 MySQL Problem

2003-03-04 Thread Darren Young
I have an app that runs just fine on RedHat 7.2 with compiled Apache and PHP along with MySQL binaries installed from MySQL's site. I have a new machine running RedHat 8.0 that is completely "generic", i.e only RedHat Apache, PHP and MySQL RPM's installed. The error message I'm getting is: [04-Mar

[PHP] RedHat

2003-03-04 Thread Darren Young
Does anyone know if the PHP included in RedHat 8.0 has sockets enabled? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Calendar

2003-03-01 Thread Darren Young
Check http://www.cascade.org.uk/software/php/calendar/ I've used that one on several sites. -Original Message- From: Jason D. Williard [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 4:28 PM To: [EMAIL PROTECTED] Subject: [PHP] Calendar Is there an easy way to create a calenda

RE: [PHP] Templates

2003-02-13 Thread Darren Young
rying to catch back up quickly. Any "best practices" assistance would be appreciated. Thanks for the response by the way. /DAY -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 5:22 PM To: Darren Young; [EMAIL PROTECTED] Su

[PHP] Templates

2003-02-13 Thread Darren Young
er time and I'd like to have the basic HTML in the templates, and the real logic in the PHP code. Thanks in advance, Darren Young -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with php.net

2003-01-28 Thread Darren Gamble
ple of weeks now, at least. Thanks, Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Suppressing X-Return-Path

2002-11-28 Thread Darren Fehrmann
h, and if it can be suppressed? Regards, Darren Fehrmann Storefront.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Query to select every other record

2002-11-17 Thread Darren McPhee
ating horizontally but doesn't tell you how to limit to 2 columns. So both ways are useless to me. Darren. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MYSQL and PHP Storing and retrieving images getting corrupted

2002-11-05 Thread Darren McPhee
here, I'll give them a medal !! There is basically some kind of binary corruption going on (it looks like) For added information, below is my database table structure. At the moment, the only part I am actually using relates to the image_thumbnail sections. Darren. CREATE TABLE master_products

[PHP] Images retrieved from MYSQL database using PHP becoming corrupted.

2002-11-03 Thread Darren McPhee
actually using relates to the image_thumbnail sections. Darren. CREATE TABLE master_products ( item_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, item_code VARCHAR (10) UNIQUE, item_dateadded DATETIME DEFAULT '-00-00 00:00:00', item_datemodified DATETIME DEFAULT 

[PHP] PHP socket connections with SSL

2002-10-08 Thread Darren Gamble
anything else. I don't need to supply a client certificate, if that helps any... Thanks in advance, Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -- PHP General Mailing List (htt

[PHP] new PHP chat room (with Flash interface)

2002-09-17 Thread Darren Gates
here's a chat room that I made in PHP/MySQL with a Flash 5 front-end. All the other PHP chat rooms that I've found have an annoying "click" every few seconds when the webpage is refreshed. http://www.tufat.com/chat/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

RE: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Darren Gamble
Good day, Well, for one, you are discarding the results of trim(). Check out the online manual page for trim(). The trim'ed string is returned. It does not say it modifies the string it is passed. Darren Gamble Planner, Regional Services Shaw Cablesystems G

RE: [PHP] mcrypt

2002-08-01 Thread Darren Gamble
something stronger, you can use md5(). The examples on php's documentation for this function should help you if you're interested in having other programs use it (to have it the right format and length). Darren Gamble Planner, Regional Services Shaw Cablesy

RE: [PHP] Is there a way?

2002-07-16 Thread Darren Gamble
Good day, > In Perl you could print a block of information as it was > written like this; > print < > This a whole bunch of HTML code!!! > > HTML_END > > The best part about this, was that you did not have to escape > your " and you > could mix in your variables making it easy to design and

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Darren Young
Tunnel port 3306 over an SSH connection if you can get an SSH session to open to the remote. On Sat, 13 Jul 2002, Alex Shi wrote: > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Saturday 13 July 2002 13:31, Alex Shi wrote: > > > The thin

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Darren Young
I seem to remember some Windows application that will do the conversion for you. I believe it's called mysql2access and the other way is access2mysql. IIRC, it's not open/free though. On Sat, 13 Jul 2002, Alex Shi wrote: > The thing is that, the MySQL table resides on a remote web server, my c

[PHP] File Browser

2002-07-12 Thread Darren Young
ntrol (CVS preferred) that would be wonderful. Anyone have any pointers to existing scripts? What would this type of application be called? A document repository perhaps? Thanks in advance, Darren Young [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Undefined variables

2002-05-31 Thread Darren Gamble
Hope that helps. ==== Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 > -Original Message- > From: Christopher J. Crane [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 30, 2002 8:06 PM > To: [EMAIL PRO

RE: [PHP] gd project question

2002-05-31 Thread Darren Gamble
upwards. Adjust the sign or switch the functions around if your gauge is different. Note that the functions operate in radians (2*pi radians == 360 degrees). Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P

RE: [PHP] Undefined variables

2002-05-30 Thread Darren Gamble
You should use $HTTP_POST_VARS or $_POST, depending on your version. Check the docco for more info on those. If you really have to check variables using this method, use isset() to see if the variables ... have been set. =) Darren Gamble Planner, Regional Services

[PHP] Entering password on a command line

2002-05-27 Thread Darren Gamble
w this might be accomplished? In the meantime I'll just put the password in the program, but, I'd like to learn how this could be done. Thanks in advance, ==== Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Cana

[PHP] including functions on every php page in a site

2002-05-24 Thread Darren Gates
with a root-level .htaccess file, but I'm not sure. Can anyone offer a solution? Thanks, Darren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Learning PHP

2002-05-22 Thread Darren Edwards
hi ppl i am learning PHP and was wondering if there is a good book or web site that i could learn ALOT from. Not PHP.net coz the documentation is just too complex there for a beginner. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >