[PHP] Sessions/Browser back button

2002-11-25 Thread Craig
I remember seeing threads debating this before, but is there anyway to disable/prevent a user from heading back in the browser and getting the "WARNING: Page has Expired" notice? Cheers Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File Write Permission Errors - HELP! URGENT!!!

2002-11-25 Thread Craig
you must give the same permissions to the folder also. "Phil Powell" <[EMAIL PROTECTED]> wrote in message 0ca201c2947e$44690a80$dcbe6444@scandinawa1bo6">news:0ca201c2947e$44690a80$dcbe6444@scandinawa1bo6... Hi I have the following code that breaks: // PLACE NICK INTO NICKNAMES.TXT AND START OFF

[PHP] Re: Php Search Engine

2002-11-25 Thread Craig
hotscripts.com <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am in need of a search engine. I'd rather do one in PhP. Is there one > available that I can see or at least get the code for? > > I'm a newbie to php. :) > > > Krystal -- PHP General Mailing

[PHP] Re: If statement w/ multiple conditions

2002-11-26 Thread Craig
Something like this will work... <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'll be trying to use a routine that checks 4 seperate variables for > content and need to know the easiest method to do so. The function works > on 2 conditions; either al

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Craig
Something like this will work... <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > The db will include these 4 rows even though they don't store data. > Eventually they will contain data for contact info as soon as the users > log in and it prompts them for i

[PHP] Identifying users

2002-11-27 Thread Craig
. Anyone any Ideas? Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] images

2002-11-29 Thread Craig
I can do this with one fine, but I thought there may be some sort of GD function that would tackle this. Thanks for any help, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: array with session

2002-11-29 Thread Craig
on (http://www.php.net/print_r) If you do : This produces a nice formatted look at the the session arrays/structures - same goes for all arrays. Hope that helps, Craig "Laurence" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >

[PHP] Re: array with session

2002-11-29 Thread Craig
Files are attached.. Craig "Craig" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You should have session_start(); on every page that you want to hold the > session. > > The way I would do what you are trying to ac

[PHP] Re: Help on OOP

2002-12-09 Thread Craig
I found this to be a good beginners tutorial on the subject http://www.onlamp.com/pub/a/php/2002/07/18/php_foundations.html Craig "Mohd_q" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I can't distinguish between objects, clas

[PHP] Months of the year

2003-01-06 Thread Craig
01 Thanks Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Word Count

2003-01-23 Thread Craig
Is there a way to count the number of words in a string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Word Count

2003-01-24 Thread Craig
between them. > > > -- > Maxim Maletsky > [EMAIL PROTECTED] > > > > "Craig" <[EMAIL PROTECTED]> wrote... : > > > Is there a way to count the number of words in a string? > > > > > > > > -- > > PHP General Mailing List

[PHP] tets

2003-04-03 Thread Craig
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MSSQL using Sybase FreeTDS

2003-04-03 Thread Craig
: Line 1: Incorrect syntax near 's'. (severity 15) in /var/www/html/clients/pages/add_client.php on line 17 Has anyone experienced this, and if so know of a possible solution?? I have used addslashes() etc but still no joy. Thanks in advance. Craig -- PHP General Mailing

[PHP] Imgs in Database

2003-06-04 Thread Craig
me? Regards, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Imgs in Database

2003-06-05 Thread Craig
Just for your info..I researched this a bit further..and with a little help from the manual, the following works a treat.: Cheers, Craig 0) { $result = mssql_fetch_array($sqry_img); Header ("Content

[PHP] MSSQL - Previous/Next Paging Results

2003-06-10 Thread Craig
MSSQL seems to be a little bit messier that MySQL..e.g limit clause etc Anyone know of articles/examples that specifically deal with this issue? Any insight appreciated. Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Standalone PHP Client?

2003-06-24 Thread Craig
Have a look here, this may help: http://www.triplehash.com/content.php?id=26 Regards, Craig "Galen P. Zink" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, having a solid product that people can look at offline has been a > major selling

[PHP] Creating a calender / diary

2002-07-24 Thread Craig
entry is at 10:15 for example. Any ideas??? Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Bus Schedule / Time table

2002-09-27 Thread Craig
I have been given the task to program a site in php that displays the timetable of a local bus company Does any one have any suggestions into where to look for any info or advice? Thanks craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Select values in an array???

2002-10-29 Thread Craig
m6) is being displayed on the page how do i create an array of all the items in a list on the page? any help would be gratefully appreciated craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Select values in an array???

2002-10-29 Thread Craig
. > I've used it without "multiple" many times > - Original Message - > From: "John Nichel" <[EMAIL PROTECTED]> > To: "Rick Emery" <[EMAIL PROTECTED]> > Cc: "Craig" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Se

[PHP] finding a value in an array

2002-11-04 Thread Craig
will highlight the item if the option value is in the array of the IDs, but with no luck, either all the ids are highlighted or none at all Does any one have any suggestions into how to do this Thanks Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: PHP driven frame

2002-11-05 Thread Craig
Why do you nee to use frames? Wouldn't it be asier to set hidden fields in the second form and submit the values of the first form to these hidden fields. Personally I would submit the form into the same page "Chris Rehm" <[EMAIL PROTECTED]> wrote in message news:3DC770B4.9060502@;javadisciple.

[PHP] ACT Based Contact Management System

2002-11-19 Thread Craig
Does anyone know of any sites that offer a web based contact management system that works in a similar way to ACT? I want to implement such a system that connects to a mysql database -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Version of Outlook????

2002-11-22 Thread Craig
Does Any one of a web based version of Microsoft Outlook/MSN Hotmail address book and scheduler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Version of Outlook????

2002-11-22 Thread Craig
ficial has been made. There are some similar apps > though, very good ones actually. > > > -- > Maxim Maletsky > [EMAIL PROTECTED] > > > > "Craig" <[EMAIL PROTECTED]> wrote... : > > > Does Any one of a web based version of Microsoft Outlook/MSN Hot

[PHP] Testing PHP on a local machine

2002-06-24 Thread Craig
me into the right direction, relvant websires etc??? Thanks Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function echo ' '

2002-06-25 Thread Craig
Can you use or is this bad coding? "René moonen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Use the escape character to output double quotes > > echo ''; > > René > > Martin Johansson wrote: > > >Is there a way to express php variables inside an echo '

[PHP] Re: Testing PHP on a local machine

2002-06-26 Thread Craig
Thanks for pointing me in the right direction However, just have a few other questions:- Do i need to install apache if i use the windows self extracting version? Can all this be also done on a laptop? Thanks for all the advice Craig "Craig" <[EMAIL PROTECTED]> wrote i

[PHP] Generating word documents based on fields in a browser

2002-07-10 Thread Craig
Is this possible I want to create a form, similar to an invoicing system that generates a word document that the user can print out Any help would be gratefully appreciated. craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating word documents based on fields in a browser

2002-07-10 Thread Craig
I know that php can open files. What I was wondering is if it can :- Start Word Open a Word template Generate fields in the template based on hidden fields and generate the page "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 10 Jul 2002

Re: [PHP] Generating word documents based on fields in a browser

2002-07-10 Thread Craig
I need to be able to keep a record of documents created. I have found this but failed to get it to work Version)\n"; $word->visible = 1 ; $word->Documents->Add(); $word->Selection->Typetext("This is a test"); ?> does anyone recognise this? -- PHP General Mailing List (http://www.php.net

Re: [PHP] Generating word documents based on fields in a browser

2002-07-11 Thread Craig
Thanks for all the info, i have found a temporary solution which i am currently going to develop If anyone is interested, I found the following at http://www.pscode.com/xq/ASP/txtCodeId.625/lngWid.8/qx/vb/scripts/ShowCode.h tm Thanks Again Craig -- PHP General Mailing List (http

[PHP] Customise Index page using PHP????

2002-07-11 Thread Craig
Is there a way to create a customised version of the index directory structure using php? Eg listing all the pages in the specific directory when an index page isnt created? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Customise Index page using PHP????

2002-07-11 Thread Craig
I want to acheive something like this http://www.claviga.com/index.php?pageid=18 -- 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

[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

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&

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

[PHP] textfields showing php tags & code

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

[PHP] PHP and if statement if a page isnt there using iframes

2002-04-18 Thread Craig
i am using iframes to display a page within a page the iframe is named and the page is dynamic the iframe displays a page using generated php. is there a way of using php to redirect to "nopage.php" if the page does not exist? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: PHP editor for windows

2002-04-22 Thread Craig
the new ultradev (MX) contains what you need there is a trial download on the macromedia site "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > www.phpide.de > > It's called PHP Coder. Don't get the versions by Maguma (last time I u

[PHP] Displaying dates

2002-04-25 Thread Craig
How can i display a dynamic page showing last month and next month and the month before eg this moth is how do i add 1 to the month or -1 to the month? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Need help with File Upload

2002-04-25 Thread Craig
have you included the MAX_FILE_SIZE hidden field? If yes try increasng the value to above the image size "Walter Enzenhofer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi there, > > i´m sorry to post that stupid message, but i really need help in finding th

[PHP] If value is divisible by 2

2002-04-30 Thread Craig
I am trying to write an if statement that says if the value $foo is divisible by 2 then echo "text" i have tried mod but it isnt recognised any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Page Numbers

2002-04-30 Thread Craig
Any one know how to display, go to page number on a record list page eg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Getting only 255 chars from SQL Server

2002-05-13 Thread Craig
Varchar can only be set to a maximum of 255 Try setting the column to long text "Unknown Sender" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have an SQL Server database running on a server on the internet. I > need to have php connecting to the db and ret

[PHP] Looking for web based email

2002-05-17 Thread Craig
I am in the process of developing a website with a webmail system similar in functions to hotmail Does anyone have any suggestions for where to start? thanks craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for web based email

2002-05-17 Thread Craig
gurable. Its open source > and developing at a rate of knotts. > Its very easy to install, although it does currently require cookies... > but Im urging them to shy away from that ;) > - Dan > > > http://nocc.sourceforge.net/ > > -Jared > > > > -Original Me

[PHP] email password and username

2002-03-20 Thread Craig
I am trying to create a system where a user can retreive there user name and password details. The problem is that the user name /password is in one table and the contact details are in another. The contact details are refrenced to the username. I want to acheive the following: 1. A user enters

[PHP] File Upload

2002-03-26 Thread Craig
I have developed a file upload facility that allows a user to upload a html file to a site. Is there a way to also upload images within the page without creating several file uploads. The images vary between 0 and x . Any help would be grateful Craig -- PHP General Mailing List (http

[PHP] Re: which php book 2 buy ?

2002-03-26 Thread Craig
php and mysql web development ISBN 0-672-31784-2 Its got a good example of a php shopping cart system in it too "Septic Flesh" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I wanna buy a book from amazon . . .but don't know which one.. > Do you know where I

[PHP] Re: PHP- something i don't undestand

2001-07-18 Thread craig
Do it like this $sqry_linx = mysql_query("SELECT * FROM linx ORDER BY 'linkcat'"); $link = mysql_fetch_array($sqry_linx); "Yassel Omar Izquierdo Souchay" <[EMAIL PROTECTED]> wrote in message 001c01c10eff$1235ce50$2401020a@yois">news:001c01c10eff$1235ce50$2401020a@yois... > Hi > I'm having >

[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

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

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

[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

[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

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

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

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

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

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

[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

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

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

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

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] 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] 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; > > } >

[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] 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] 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] 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, > > >

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

[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

  1   2   3   4   >