[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).

[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 tyr...@gmail.com wrote: 2012.07.19. 20:21, Daniel Brown danbr...@php.net ezt írta: Forwarding to php-webmas...@lists.php.net, as it's not a general user issue where it pertains to php.net. On Thu, Jul 19, 2012 at 2:02 PM, Kris Craig

[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 tyr...@gmail.com 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

[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 kris.cr...@gmail.com wrote: On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs tyr...@gmail.com wrote: Btw. we were asked by the to join the league as we

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

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-22 Thread Kris Craig
. 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 kris.cr...@gmail.com wrote: I've had a few emails from people making the same request, so what I'm gonna do

Re: [PHP] Re: Independent Contractor Suggestions

2010-10-21 Thread Kris Craig
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 li...@pruimphotography.com wrote: On Oct 20, 2010, at 8:47 PM, Kris Craig wrote: I hope this helps

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:

[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.. ?xml version=1.0 encoding=UTF-8? rss version=2.00 xmlns:itunes=http://www.itunes.com/dtds/podcast-1.0.dtd; etc.. I

RE: [PHP] $_GET and multiple spaces.

2008-01-14 Thread Churchill, Craig
)); 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 named addressee and may be confidential.You should only read, disclose, transmit, copy

[PHP] $_GET and multiple spaces.

2008-01-13 Thread Churchill, Craig
a single space between the two names which I understand is 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

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

[PHP] Sessions - going back in browser

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

[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 expired, I was reading through the manual and came

[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

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 === ?php require_once(includes/app.php); which is

[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

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

2004-12-13 Thread Craig Slusher
-- 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

Re: [PHP] PHP cross platform IDE

2004-12-13 Thread Craig Slusher
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 out there anyway. Are there any cross

Re: [PHP] Byte Array

2004-12-13 Thread Craig Slusher
/) 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

Re: [PHP] empty() problem

2004-12-12 Thread Craig Slusher
/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- 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

Re: [PHP] array_merge_recursive

2004-12-10 Thread Craig Slusher
, visit: http://www.php.net/unsub.php -- 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

[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 have an in the variable parameters i.e

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
== 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 register_globals=Off I have 2 test pages a1.php and a2.php

[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. I've also tried php4.3.8 CGI (same

[PHP] Re: Checking for form submission

2004-08-04 Thread Craig Donnelly
basically 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 evertime, whether a form has been submitted

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 PROTECTED] wrote

[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 when the time is midnight

[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.webmasters-central.com/t/cron.shtml HTH

[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 syntax but obviously missing something. Would anyone mind a quick

[PHP] Re: MySQL QUERY Results Not Appearing

2004-06-30 Thread Craig Donnelly
' to whatever the fields are you are querying. you could also: pre ?php print_r($result); ? /pre HTH Craig Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all... Despite being able to make a connection to the server and execute a query I am unable to do this through

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 mailto:[EMAIL PROTECTED] on Tuesday, June 29, 2004 5:58 PM said: I wrote a php script that accesses a database, and I am wondering about securing the

[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 things- ie links on my sites, whether

[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 the database except one entry

[PHP] Re: how to insert form data

2004-06-02 Thread Craig Donnelly
?php include(connect.php); $name = $_POST['name']; $quote = $_POST['quote']; $sql = mysql_query(INSERT INTO whosaid (name,quote) VALUES (' . $name . ',' . $quote . ')); ? HTH Craig Bigmark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to learn how

[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 = ?php function calendar($date) { //If no parameter is passed use the current date. if($date == null)

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

Re: [PHP] Re: clearing new pages

2004-05-27 Thread Craig
?php echo Hello; echo meta http-equiv=\Refresh\ content=\2;url=b.php\\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

[PHP] Re: combining string values

2004-05-27 Thread Craig
Concatenate using: . ?php $stringA = Hello from; $stringB = over here!; $stringC = $stringA . . $stringB; ? 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

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 Just wait. There are

[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 PROTECTED] Hi, I've

[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: ?php // Start the session session_start(); Which looks OK to me, but it returns: Parse error: parse error, unexpected T_STRING in

[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? Brian Dunning [EMAIL PROTECTED] wrote

[PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Craig
); ^^^ 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 Al [EMAIL PROTECTED] wrote in message

[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 seen and

[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 someone explain to me the value of using defined custom constants

[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. i have a server with ms IIS and i have

[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 if I

[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 question is, does

[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 recompile my webserver so I cannot include wddx

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 too early on a Monday for Craig :) --Sam -Original

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.714285714

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

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: input type=submit value=submit disabled Hi Yes this is correct But

[PHP] Re: insert twice pb

2004-04-23 Thread Craig
Try this and see what happens: ?php if(isset($_POST['empfullname']) isset($_POST['empmidname']) isset($_POST['empbdate']) isset($_POST['emptitle']) isset($_POST['departement'])) { $empfullname = $_POST['empfullname']; $empmidname = $_POST['empmidname']; $empbdate =

[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() : ?php echo stripslashes(urldecode($_GET[strSQL])); ? 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

[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: adding -'s to a numeric string

2004-04-21 Thread Craig
Something like this would work: = ?php function dateConvert($date) { $newdate = ; $newdate .= substr($date,0,2); $newdate .= -; $newdate .= substr($date,2,2); $newdate .= -; $newdate .= substr($date,4,4); return $newdate; } echo dateConvert(04212004); ?

[PHP] SOAP function call

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

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

2004-04-20 Thread Craig
?php $args = array(a,b,b); $keys = array(0,1,2); function array_key_remove($args,$keys,$replacement=NULL) { echo Foo!; } ? 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:

[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 file just a few lines after the program start. $thisFileName

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: ?xml version=1.0 encoding=iso-8859-1 ? this is what I have below line 73: !DOCTYPE html PUBLIC

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: resizeImageJPG Parameters

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

RE: [PHP] Image Quality Depreciation with GD

2004-02-17 Thread craig
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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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

2004-02-13 Thread craig
()... ' thanks in advance, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-02-13 Thread craig
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, I am truly hoping that someone can help with this. I am making the ecommerce site

[PHP] triple DES encryption

2004-02-09 Thread craig
that 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] 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 Mon, 2004-02-09 at 12:36, craig wrote: Hi

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

2004-02-06 Thread craig
= $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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net

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; } } you're missing a curly brace after the if (). my bad, that's what

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. =) HTH, Craig -- PHP General Mailing List

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

2004-02-05 Thread craig
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

[PHP] problem referencing a mysql object

2004-02-04 Thread craig
' to look like '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 img src

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 verifyCC($name='', $type='', $number='', $expmonth

RE: [PHP] random?

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

RE: [PHP] eregi_replace help needed

2004-01-29 Thread craig
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] 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. -Craig -Original Message

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
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['userfile']['type'] = The mime type of the file, if the browser provided this information

[PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
the equivalent of eval in javascript. Does PHP have that capability? Thanks Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 called eval(). Imagine that... ---John Holmes... -- PHP General

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

[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

[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] Subject: Re: [PHP] random

[PHP] textfields showing php tags code

2004-01-21 Thread craig
are greatly appreciated. Craig function showForm($quantity='', $fname='', $lname='') { ? form action='orderX.php' method='post' name='orderForm' table border='0' tr td align='right'Quantity:/td tdinput name='quantity' type='text' size='3' value='?php echo

RE: [PHP] preg_replce ' for use with mysql

2004-01-20 Thread craig
, '\\'')); How do I get around this problem? Is there any function which helps to insert everything into the mysql database as it is (does auto-escaping). Couldn't be simpler, just use mysql_escape_string. It escapes a string for use in a mysql_query. -craig Nirnimesh. IIIT-Hyd. India. -- PHP

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

2004-01-20 Thread craig
=menu.swf?index=3 param name=quality value=high embed src=menu.swf?index=3 quality=high pluginspage=http://www.macromedia.com/go/getflashplayer; type=application/x-shockwave-flash width=200 height=640/embed /object hope that helps, Craig Thank you, John. toby - Original Message - From

[PHP] not sure why regex is doing this

2004-01-09 Thread craig
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

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

2004-01-09 Thread craig
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't do with php, and I can validate with php. that's my 2 cents worth, Craig -- Matt Grimm Web

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] not sure why regex

[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] Re: High bandwidth application tips

2003-11-07 Thread Craig Lonsbury
, 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 Take a look here: http

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

2003-11-07 Thread Craig Lonsbury
couldn't agree more. Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] Sent

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

2003-10-17 Thread Craig Lonsbury
[] = 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 can i print out the files

[PHP] nested require_once

2003-10-16 Thread Craig Lonsbury
than sorry. thank you, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Credit Card Validation

2003-10-08 Thread Craig Lonsbury
here, it is coming up soon for me =) hth, Craig -Original Message- From: Nathan Taylor [mailto:[EMAIL PROTECTED] Sent: October 8, 2003 2:04 PM To: php-general Subject: [PHP] Credit Card Validation Hey guys (and gals), I am sure this has been asked many times before, but I couldn't seem

  1   2   3   4   >