[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 2:11 PM, Hannes Magnusson < hannes.magnus...@gmail.com> wrote: > On Thu, Jul 19, 2012 at 10:01 PM, Kris Craig wrote: > > > > > > On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs wrote: > >>> > >>> > >>>

[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs wrote: > >> > Btw. we were asked by the to join the league as we were a big traffic >> > source on the black out day. >> > I don't know if Rasmus is on the webmaster list or not, but we should cc >> > him, as he was the driving force behind us joinin

[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 12:36 PM, Ferenc Kovacs wrote: > > 2012.07.19. 20:21, "Daniel Brown" ezt írta: > > > > > Forwarding to php-webmas...@lists.php.net, as it's not a "general > > user" issue where it pertains to php.net. > >

[PHP] The Cat Signal

2012-07-19 Thread Kris Craig
Hey guys, I just became aware of this: http://internetdefenseleague.org/ It's a site setup by Mozilla, Reddit, and others to defend internet freedom in the wake of recent legislative events in the U.S. and elsewhere (full members list here: http://www.internetdefenseleague.org/members). They'

[PHP] Detect timeout of stream_socket_client using STREAM_CLIENT_ASYNC_CONNECT ?

2010-11-06 Thread Craig Mason
(apologies if this sends twice - email verification issues) Is it possible to detect the timeout of a stream created with stream_socket_client() using the flag 'STREAM_CLIENT_ASYNC_CONNECT' ? As soon as this flag is used, it seems there is no way to detect a timeout situation. tcp://192.168

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-22 Thread Kris Craig
ch means you are free to do with it as you please. And, as always, use it at your own risk. Please feel free to let me know if you have any questions/feedback/etc. I hope this helps. =) --Kris On Thu, Oct 21, 2010 at 1:52 PM, Kris Craig wrote: > I've had a few emails from people m

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-21 Thread Kris Craig
teries not included. So there. Now that that's out of the way, I'll get those up either tomorrow or Monday then post a link here. I hope this helps. =) --Kris On Wed, Oct 20, 2010 at 6:47 PM, Jason Pruim wrote: > > On Oct 20, 2010, at 8:47 PM, Kris Craig wrote: >> >&

[PHP] Re: Independent Contractor Suggestions

2010-10-20 Thread Kris Craig
Hi musicdev, There are a couple issues I think need to be addressed with what youd described.  First and foremost, $20/hr is considerably below the going rate for PHP work, especially for projects as large as the one you're talking about. I used to do freelance PHP work for about 5 years before I

Re: [PHP] WHILE LOOP PROBLEM

2009-03-27 Thread Craig Whitmore
On Fri, 2009-03-27 at 08:11 +, Andrew Williams wrote: > can some tell why the below loop stop running after some time. > > $start=10; > const run=0; > while($start >run){ > > //do somthing > > } > max_execution_time -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Craig Whitmore
On Mon, 2009-01-12 at 11:02 +, Richard Heyes wrote: > > Is there something in PHP5 which can generate the RSS feed? > > You don't need an extension to help you generate an XML feed. You > dimply output XML data instead of HTML and send an appropriate content > type header, eg: > > header('Con

[PHP] PHP5 DOM Problem

2008-12-05 Thread Craig Whitmore
Hi there. I don't kno id this is the correct place to post but... I am using the PHP5 DOM to make up RSS Feeds .. A Problem I have is I want to make this up for itunes.. http://www.itunes.com/dtds/podcast-1.0.dtd";> etc.. I use.. $p_dom = new DOMDocument('1.0','UTF-8'); $p_rss = $p_dom-

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Churchill, Craig
urlencode($name).'='.urlencode($value)); > > Regards, > > Rob > I'm now using urlencode on the values and htmlspecialchars on the entire url and it's working nicely. Thanks to everyone who helped. Craig. museumvictoria.com.au This e-mail is solely for the

[PHP] $_GET and multiple spaces.

2008-01-13 Thread Churchill, Craig
s the intended behaviour? Is there a way to preserve the multiple spaces? Thanks Craig. Craig Churchill Collection Systems Specialist Museum Victoria GPO Box 666 Melbourne VIC 3001 Australia Telephone +61 3 8341 7743 Email [EMAIL PROTECTED] museumvictoria.com.au This e-mail is solely for the

FW: [PHP] unsubscribing

2005-11-16 Thread Brown, Craig
I tried several times as well. So far, no luck. I tried the unsubscribe address but it doesn't work. -Original Message- From: wayne [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 9:34 PM To: php-general@lists.php.net Subject: [PHP] unsubscribing I tried to unsubscribe on sev

[PHP] Re:^^

2005-04-19 Thread Craig Donnelly
So now the page "expires" Any help appreciated. "Craig Donnelly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I had an issue that I needed to be able to go back in the browser while in a > session without getting "page has

[PHP] Sessions - going back in browser

2005-04-19 Thread Craig Donnelly
any ideas? Regards, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Migration from php4 to php 5 open_basedir directive.

2005-03-14 Thread Craig Lewis
The files in question are 'within' the open_basedir directive. To explain further/better within virtualhost, php_admin_value open_basedir /www/htdocs/midwifefinder.com/site and... /www/htdocs/midwifefinder.com/site/index.php contains === require_once("includes/app.php"); which is /ww

[PHP] Migration from php4 to php 5 open_basedir directive.

2005-03-14 Thread Craig Lewis
Hello, I have just attempted to migrate for the first time from php4 to php5. The problem i am having is some sort of change in how the open_basedir directive works in php 5. I don't see much discussion about this, so I must be doing something stupid, otherwise, I would think there would be a

[PHP] PHP5 & FreeTDS

2005-01-13 Thread Craig Donnelly
/ftpusers/tarot/tarot/admin/sqltest.php on line 4 This worked fine before, and I tested it on another box which is also running freeTDS with PHP 5.0.1 and it connects fine. Anyone any Ideas?? Regards, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP cross platform IDE

2004-12-13 Thread Craig Slusher
d around with it a little bit and it's not too bad. -- Craig Slusher Web Programmer [EMAIL PROTECTED] On Tue, 14 Dec 2004 10:29:41 -0500, Bryan Dina <[EMAIL PROTECTED]> wrote: > I have done a little checking and I think I already know the answer, but > I wanted to toss this one

Re: [PHP] "Byte Array"

2004-12-13 Thread Craig Slusher
looks like this: > gÃ.ÃÃ.ÃÆÃÃÂÃUâÃAÃÂ9xÅÂÃ|%ÃrÂÃ9â. > > Any ideas? > > Ian > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Craig Slusher Web Programmer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: çå: [PHP] empty() problem

2004-12-13 Thread Craig Slusher
he 0 is passes ? > > any help plz ? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP] empty() problem

2004-12-12 Thread Craig Slusher
> > will throw notices on some setups about an undefined variable (depending > upon error_reporting level) and will allow text through when it's > supposed to just be an integer. > > -- > > ---John Holmes... > > Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ >

Re: [PHP] array_merge_recursive

2004-12-10 Thread Craig Slusher
[animal] => Cats > > [total] => 6 > > ) > > > > ) > > > > the output i need is: > > Dogs 5 > > Cats 9 > > > > I need to add the total but keep just one animal if its already there. can > > someone please

[PHP] Re: Using & before a variable

2004-09-03 Thread Craig Donnelly
http://php.us.themoes.org/manual/en/language.references.pass.php Passing by reference instead of value. HTH Craig "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have noticed that some of the functions in a tutorial I am studying ha

Re: [PHP] Array?

2004-08-25 Thread Craig Brothers
how many elements are returned by the sql statement? If you want the 7th item returned in the sql statement would need to code $things[6] Just a hunch... -- Craig Brothers @utoRevenue [EMAIL PROTECTED] (413) 528-8000 x105 On Wed, 2004-08-25 at 14:17, Nathan Mealey wrote: > I cannot seem

[PHP] Re: Sessions nightmare continue...

2004-08-17 Thread Craig Donnelly
quot;session value: " . $_SESSION["login"]); ?> == Works fine now. HTH Craig "Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Still no luck with sessions. I have installed an older version: 4.3.1 > and have

Re: [PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
Ok, in simple form - If the submit button was clicked, If some one hits enter this would be a problem, easy way to resolve this would be to have a hidden form element flagged and to terst for that instead of the submit button, wouldnt you agree Jason? Craig "Jason Wong" <[EMAIL PROT

[PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
sically this checks if the form button "sendform" is set. HTH, Craig "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am trying to create some code to check whether a form has been submitted. > The following code seems to print e

[PHP] Re: POST superglobal is empty

2004-08-04 Thread Craig Donnelly
Show the code you are using... Craig "Andy Loftus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have any ideas as to why $_POST would be empty when > submitting a form to php? > > I am running PHP5 as CGI in apache 1.3.22 on redhat linux

[PHP] Re: Calling a function at a certain time of day.

2004-07-30 Thread Craig Donnelly
Sorry I meant to say, assuming your on Unix/Linux system, Otherwise if Windows use task scheduler Control Panel > Scheduled Tasks Cheers, Craig "Craig Donnelly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Have a look at Cron > > http://www.webmast

[PHP] Re: Calling a function at a certain time of day.

2004-07-30 Thread Craig Donnelly
Have a look at Cron http://www.webmasters-central.com/t/cron.shtml HTH Craig "Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI, > > Im slightly in the dark as to do the following. What I need is a thread of > some sort that runs and w

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Craig Donnelly
Put all your values in the following {}... So: VALUES('{$Title}','{$ChristianName}','{$MiddleName}','{$Surname}'. and so on. HTH Craig "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've checked my

Re: [PHP] Protecting database passwords

2004-06-30 Thread Craig Donnelly
MD5 - http://ie2.php.net/md5 One way in encryption. "Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Bob Hockney on Tuesday, June 29, 2004 5:58 PM said: > I wrote a php script that accesses a database, and I am wondering > about securin

[PHP] Re: MySQL QUERY Results Not Appearing

2004-06-30 Thread Craig Donnelly
#x27;YOUR_DB_FIELDNAME']; } change YOUR_DB_FIELDNAME' to whatever the fields are you are querying. you could also: HTH Craig "Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all... > > Despite being able to make a connection to the server and ex

[PHP] Re: Running a PHP script on an automated regular schedule

2004-06-10 Thread Craig Donnelly
Best way to achieve this would be cron/crontab http://www.webmasters-central.com/t/cron.shtml HTH Craig "I.A. Gray" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. > > I am wanting to use a PHP script to check on an hourly/daily basis on a few >

[PHP] Re: how to insert form data

2004-06-02 Thread Craig Donnelly
HTH Craig "Bigmark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to learn how to take the value of $name and $quote from a form > and put it in the database -whosaid > but obviuosly i have it all wrong. Can anyone point out what im doing

[PHP] Re: SELECT

2004-06-02 Thread Craig Donnelly
SELECT * FROM foo_table WHERE field_foo <> some_value The above will select all from foo_table except where field_foo is equal to some value. HTH Craig "Phpu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, Is there any way to select all entries in t

[PHP] Re: duplicating a row

2004-05-31 Thread Craig
http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html "Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I want to duplicate a row (back it up - copy to a table with the same > schema) regardless of the table schema. > This in MySQL but I need a solution that can be made ea

[PHP] Re: Simple calender

2004-05-31 Thread Craig
Ryan, with a bit of tweaking you can edit that script to what you want. heres an example = "; $calendar_html .= "" . $month_name . " " . $year . ""; $calendar_html .= ""; $calendar_html .=

[PHP] Re: combining string values

2004-05-27 Thread Craig
Concatenate using: . HTH Craig "Tommy Atherton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi > > I have a problem, I'm trying to combine the value of two strings > together into a final string. For example > > $path =

Re: [PHP] Re: clearing new pages

2004-05-27 Thread Craig
\n"; ?> Is another option Craig "Rick Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Hi, > > > a file called a.php prints "hello" to the browser then calls > > > b.php which prints "goodbye&qu

Re: [PHP] Re: test

2004-05-26 Thread Craig
Yeah those damn email always come at same time. Well on my blocked list now. "Jordi Canals" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sherri wrote: > > Woah! > > > > Signed up litterally 1 minute ago and I'm already getting spam. From > > "Advance Credit Suisse Bank" > > > Jus

[PHP] Re: Now I can't start the session either...

2004-05-25 Thread Craig
It doesnt necessarily mean the error occured on that line, that may have been the last executed statement post a few more lines or we cant help you. Regards "Craig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can you post your whole file? > >

[PHP] Re: Now I can't start the session either...

2004-05-25 Thread Craig
Can you post your whole file? "Brian Dunning" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Here is the top of my file: > > // Start the session > session_start(); > > Which looks OK to me, but it returns: > > Parse error: parse error, unexpected T_STRING in > c:\inetpub\wwwroot\

[PHP] Re: Simplistic PHP tutorial

2004-05-25 Thread Craig
Personally I would buy a book on programming in general or maybe just go straight for a PHP beginners book. But this is pretty straight forward from the ground up: http://www.w3schools.com/php/default.asp HTH Craig "Neal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Craig
yes, constants have global scope also :-) "Craig" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Have a look here also: http://ie2.php.net/define > > > "Al" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Can so

[PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Craig
Have a look here also: http://ie2.php.net/define "Al" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can someone explain to me the value of using defined custom constants, > in the context of good coding practice. > > I don't recall ever seeing define() used in the scripts I've see

[PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Craig
date("w", $iCurTime); ^^^ The above constants will always be what they are defined as. Constant :-) Also another advantage of using constants, is that it can make your code easier to read. Usually constant names are declare in uppercase, which helps to break up your code. HTH Craig

[PHP] Re: Simple MySQL/PHP Query

2004-05-20 Thread Craig
Is the text the same on every page? Where you print your body, concatenate the string you want to your content variable. HTH "Nick Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > First off, yeah, it's a dumb Q ;-) but I cant remember enuf about mysql > to know

[PHP] Re: send mail error

2004-05-20 Thread Craig
On windows I believe this will work: ini_set("sendmail_from",[EMAIL PROTECTED]); Try that. http://www.php.net/ini_set HTH Craig "Tassos T" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hello, > > i face a problem with send mail via php.

[PHP] Re: Distance and info

2004-05-19 Thread Craig
Probably useing something like this, not altogether sure. http://www.maxmind.com/geoip/ "Brent Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all > > I have a question regarding phpclasses.org. > > There is a section, where is says, "Find the closest mirror". > > My questi

Re: [PHP] Re: WDDX

2004-05-17 Thread Craig Donnelly
You bet it is.. :-) Sorry Dave. - Original Message - From: "Sam Masiello" <[EMAIL PROTECTED]> To: "Craig" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 17, 2004 4:41 PM Subject: RE: [PHP] Re: WDDX > > Hehe must be t

[PHP] Re: WDDX

2004-05-17 Thread Craig
take a look on http://www.phpclasses.org Good luck, Craig "Dave Avent" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > > Does anyone know if there is a WDDX Class for PHP. I have googled and > checked phpclasses.org. I am unable to recomp

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-10 Thread Craig Donnelly
If returning a floating point variable, cast it back to an (int) hth "Tristan Pretty" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Cheers for all ideas/suggetions so far.. > I've made a little progres... > Visit this URL: > http://www.risk.sungard.com/secure.php?secure=126807.7142

[PHP] Re: insert twice pb

2004-04-23 Thread Craig
Try this and see what happens: "Ronald Rahal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why this code is inserting twice in the database ? > > > > > if ( (isset($_POST['empfullname'])) && (isset($_POST['empmidname'])) > && (isset($_POST['empbdate'])) > && (isset($_POST[

Re: [PHP] Button ???

2004-04-23 Thread Craig
This has nothing to do with PHP. Its javascript, http://www.jguru.com/faq/view.jsp?EID=280434 Please keep to topic. Thanks "Brent Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Something like this: > > > > > > Hi > > Yes this is correct > But how do you get it from an

[PHP] Re: Remove white space?

2004-04-23 Thread Craig
trim($YOUR_VARIABLE) = Remove whitespace from beginning and end of string http://ie2.php.net/trim strtolower($YOUR_VARIABLE) = Makes a string lowercase http://ie2.php.net/strtolower Hope that helps "Robert Sossomon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am pulling dat

[PHP] SOAP function call

2004-04-21 Thread Craig Gardner
can't find either result in the array. What am I doing wrong? Thanks, Craig. Server: class validate { var $method_namespace = 'urn:validate'; function check($filename) { if(file_exists($filename)) {

[PHP] Re: adding -'s to a numeric string

2004-04-21 Thread Craig
Something like this would work: = "Adam Williams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, I have a form where I have a user entering in the date in a numeric > string. For today they would enter 04212004 and so on...I'm working on > this date within

[PHP] Re: Form Data Transfer b/w Pages

2004-04-21 Thread Craig
For ease of use, i would create a session and handle it that way or you could pass it through $_GET[] Query string. Would recommend $_SESSION though. Cheers "Sobajo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Two forms (form1 and form2 submit to the same controller.php file. The

[PHP] Re: strange urlencode/decode problem

2004-04-21 Thread Craig
http://ie.php.net/manual/en/function.get-magic-quotes-gpc.php use stripslashes() : Cheers "Victor spång arthursson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Perhaps I'm tired, perhaps I've missed something obvious, but I can't get this simple thing which I practically does

[PHP] Re: $PHP_SELF problem

2004-04-20 Thread Craig
http://ie.php.net/globals Instead of $PHP_SELF use $_SERVER['PHP_SELF'] Craig "Red Wingate" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: > > > Hi > > > > $thisFileName = $PHP_SELF; works in a

[PHP] Re: Parse error: parse error, unexpected '='

2004-04-20 Thread Craig
"Lasse Motroen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have received some code and am trying to run it. However, I get the > following error: > > *Parse error*: parse error, unexpected '=', expecting ')' > > It happens on this line when &$args=array() is reached: > > fun

Re: [PHP] Parse error, unexpected T_STRING!!

2004-03-04 Thread Craig Gardner
What do you have before line 73? On Thu, 2004-03-04 at 12:03, Enrique Martinez wrote: > Hello, I'm getting an error that says: > > Parse error, unexpected T_STRING on line 73 > > line 73 is: ?> > > this is what I have below line 73: > > Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/

RE: [PHP] resize an image with php

2004-02-20 Thread craig
> I want to resize an image before display it in the window. > Is there a php fonction which do it ? > > Thanks ! > this will actually resize the photo, hope it helps, Craig /*** ** Function: resizeImag

[PHP] functions and session variables

2004-02-18 Thread craig
Hi, I just want to verify something that seems counterintuitive to me. Do you have to pass session variables to functions? It would seem to me that they should be available anywhere. I took a cursory look through the manual, but didn't see anything relevant. Thanks, Craig -- PHP Ge

RE: [PHP] Image Quality Depreciation with GD

2004-02-17 Thread craig
varying values and leaving the parameter out > altogether. > > Any pearls of wisdom out there? if you are using imagecreate(), switch to imagecreatetruecolor(). I got a big improvement from that. don't think it's a pearl, but I hope it helps, Craig -- PHP General Ma

RE: [PHP] Re: mycrypt 3des (php vs .net)

2004-02-13 Thread craig
out the > documentation, it took me awhile to get it working and even longer to > figure out how it worked. Good luck, > Jas I did check out the .net documentation and it uses cbc, but maybe I'll try the other modes for kicks. -Craig > > Craig wrote: > > Hi all, > > >

[PHP] mycrypt 3des (php vs .net)

2004-02-13 Thread craig
data; ps. I can't use mcrypt_generic_deinit - i get 'Fatal error: Call to undefined function: mcrypt_generic_deinit()... ' thanks in advance, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] triple DES encryption

2004-02-09 Thread craig
Thanks, I wasn't looking for 3DES. That should do the trick for me. Craig > -Original Message- > From: Adam Bregenzer [mailto:[EMAIL PROTECTED] > Sent: February 9, 2004 10:36 AM > To: craig > Cc: Php > Subject: Re: [PHP] triple DES encryption > > > On

[PHP] triple DES encryption

2004-02-09 Thread craig
at it can't be done? TIA, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Surpressing a 'foreach' Error Message

2004-02-06 Thread craig
> craig <mailto:[EMAIL PROTECTED]> > on Friday, February 06, 2004 2:24 PM said: > > > if (is_array($project)) > > foreach ($project as $project_id => $value) { > > $fields[] = $project_id; > > $values[] = $value; > > } >

RE: [PHP] Surpressing a 'foreach' Error Message

2004-02-06 Thread craig
) > foreach ($project as $project_id => $value) { > $fields[] = $project_id; > $values[] = $value; > } > if (is_array($project)) foreach ($project as $project_id => $value) { $fields[] = $project_id; $values[] = $value; } } HTH, Craig -- PHP General Mailing List (htt

RE: [PHP] php-general list question - [Fwd: Delivery Report (failure) forphp-general@lists.php.net]

2004-02-05 Thread craig
r to keep getting these. > Anybody else getting this? > Yeah, I am getting bundles of these as well... -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Need a way to automate user logout

2004-02-05 Thread craig
> I can write a script in > perl, php, java, u name it, but how do I have it run on a set > schedule? > Thanks > > Christian you will want to use the cron command. run 'man cron' at a shell prompt to get the manual page that will explain the finer points. =) HT

[PHP] problem referencing a mysql object

2004-02-04 Thread craig
7;cPic1' before trying to use it, but nothing is working. There has to be a way to do this. Any help is greatly appreciated. -Craig while ($row = mysql_fetch_object($result)) { //other code... $count = 1; while ($count <= $row->tiPicCount) { echo &quo

RE: [PHP] Re: How check credit card or magnetic card number.

2004-02-02 Thread craig
> Hi, how i can check credit card or magnetic card number for > a site of > electronic commerce that i have to design. > > Sorry for my english. > > Pedro. > I think this should work for you, but it's not production tested yet. -Craig function verifyC

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
ve no idea of how to get the actual encoding. =( -Craig > > Cesar > > craig wrote: > > > check out http://www.php.net/manual/en/features.file-upload.php, > > it spells out the entire upload process > > > > specifally, you want: > > $_FILES['use

RE: [PHP] transactions

2004-01-29 Thread craig
> Is there anyway to do something similar to Transactions in mysql? Yes, use transactions http://www.mysql.com/doc/en/Transactional_Commands.html -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
check out http://www.php.net/manual/en/features.file-upload.php, it spells out the entire upload process specifally, you want: $_FILES['userfile']['type'] = The mime type of the file, if the browser provided this information. An example would be "image/gif". -

RE: [PHP] eregi_replace help needed

2004-01-29 Thread craig
mples. > > Thanks for the assistance! > > Nico > off the top of my head, I don't think '\s' is valid in a character class, so just use ' ' instead try eregi_replace("[0-9 ]{4,}" -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] random?

2004-01-29 Thread craig
p, but at least you know you're not imagining things ;) -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SOLVED: [PHP] random alphanumeric value generator

2004-01-26 Thread craig
I love this list! That's perfect! I was able to simplify the function down even more. Thanks a lot, Craig > -Original Message- > From: Matt Matijevich [mailto:[EMAIL PROTECTED] > Sent: January 26, 2004 4:01 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subje

[PHP] random alphanumeric value generator

2004-01-26 Thread craig
separate inserts, but both get the same MAX(uiIndex) value. Is there a better way to do this? TIA, Craig table defn: create table randomKey ( uiIndex int unsigned auto_increment not null primary key, cKeychar(20) unique ); function getKey() { //get random number into db. it is

Re: [PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
On Mon, 2004-01-26 at 10:11, Chris Hayes wrote: > At 17:03 26-1-04, you wrote: > >I'm sure how to frame the question. Here's the problem. > >I would like to store PHP code in a database. Then I would like to > >while-loop through the array executing the code something like this: > > > > >while($RS=

Re: [PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
On Mon, 2004-01-26 at 10:09, John W. Holmes wrote: > From: "Craig Jackson" <[EMAIL PROTECTED]> > > > This would require something like the equivalent of eval in javascript. > > Does PHP have that capability? > > Yes. Oddly enough it's calle

[PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
capability? Thanks Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] textfields showing php tags & code

2004-01-21 Thread craig
eatly appreciated. Craig function showForm($quantity='', $fname='', $lname='') { ?> Quantity: * First Name: * Last Name: *

RE: [PHP] Flash .swf outside webroot: width and height problems

2004-01-20 Thread craig
http://www.macromedia.com/go/getflashplayer"; type="application/x-shockwave-flash" width="200" height="640"> hope that helps, Craig > Thank you, John. > > toby > > - Original Message - > From: "CPT John W. Holmes&quo

RE: [PHP] preg_replce ' for use with mysql

2004-01-20 Thread craig
ect > of the preceeding back-slash, and the mysql query becomes > somthing like: > mysq_insert ("insert into students (id, address) values (3, '\\'')"); > > How do I get around this problem? Is there any function which helps > to insert everything into

RE: [PHP] Help with preg_replace

2004-01-19 Thread craig
slashes execpt the first and last that delineate the regex. $url = "/http:\/\/www.foo.com\/maxbid\/Unsubscribe.php?EmailAddress=[MAIL]/"; kinda ugly, but it'll get rid of that error! HTH, Craig > > Gives the error: > *Warning*: Unknown modifier '/' in* /test.ph

RE: [PHP] not sure why regex is doing this

2004-01-09 Thread craig
Thanks Kelly. That works just like I wanted, only starting the regex engine once. Guess I'll have to figure out lookahead. -Craig > -Original Message- > From: Kelly Hallman [mailto:[EMAIL PROTECTED] > Sent: January 9, 2004 11:24 AM > To: craig > Cc: Php > Subject:

RE: [PHP] Form validation: client- or server-side?

2004-01-09 Thread craig
the client, you still have to validate on the client side, which seems redundant to me. > > What are your preferred methods? I do an awful lot of > content management > with HTML forms, so it's not an entirely spurious question. I only use javascript for things that I can&

[PHP] not sure why regex is doing this

2004-01-09 Thread craig
s that I have to run the regex twice to replace both sets of ,, with ,NULL, and I really don't want to do that. Why isn't it getting them both with the first regex, and how should I modify it to catch them both? TIA, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] (OT?) form question

2004-01-07 Thread craig
Hi All, This may be more of an HTML question - can't find anything in the php manual, but I may not know where to look. Is it possible to put the cursor into a form element when a page loads without using javascript? Thanks, Craig -- PHP General Mailing List (http://www.php.net

RE: [PHP]{so far OT it boggles} BTML 2.0 released!!!

2003-11-07 Thread Craig Lonsbury
t for topics such as these! > I couldn't agree more. Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: High bandwidth application tips

2003-11-07 Thread Craig Lonsbury
sent, maintains code readablity, and doesn't adversely affect script execution time. Craig > -Original Message- > From: felix zaslavskiy [mailto:[EMAIL PROTECTED] > Sent: November 5, 2003 8:35 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: High bandwidth application tips

RE: [PHP] dictionary

2003-11-05 Thread Craig Lonsbury
are you using windows or *nix? There is a good dictionary (I think it is called dict) built into most *nix distros,and have yet to find a good dictionary for windows. maybe someone else knows a good one =) Craig > -Original Message- > From: pete M [mailto:[EMAIL PROTECTED]

RE: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Craig Lonsbury
; && $file != "..") { $filesArr[] = trim($file); } } closedir($handle); } return $filesArr; } hth, Craig -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: October 17, 2003 6:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How

  1   2   3   4   >