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

[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 a href=? echo $address; ? 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 'a href=\$address\'; René Martin Johansson wrote: Is there a way to express

[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 in message [EMAIL PROTECTED

[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 ? $word=new COM(word.application) or die(Cannot start MS Word); print Loaded word version ($word-Version)\n; $word-visible = 1 ; $word-Documents-Add(); $word-Selection-Typetext(This is a

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] Creating a calender / diary

2002-07-24 Thread Craig
, or if an 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] 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 used,

[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 ?php echo date(j-M-Y H:i); ? 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 the

[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 Prev 1|2|3|4|5|6... Next -- 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

[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
n 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 Message- From: Craig [mailto:[EMAIL PROTECTED]] I am in the process of de

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

[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, classes, and functio

[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
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... words, for a programming language, are nothing more than just the spaces. So, as previousely was shown - could the mount of spaces in the string to get the amount of `words' in between them. -- Maxim Maletsky [EMAIL PROTECTED] Crai

[PHP] Imgs in Database

2003-06-04 Thread Craig
on this for 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 ?php // Function to convert Hex to Binary function hex2bin($hexdata

[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 point in the past. The customers we

[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
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 List (http://www.php.net/) To unsubscribe, visit

[PHP] Select values in an array???

2002-10-29 Thread Craig
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
multiple many times - Original Message - From: John Nichel [EMAIL PROTECTED] To: Rick Emery [EMAIL PROTECTED] Cc: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 9:33 AM Subject: Re: [PHP] Select values in an array??? You do if you want to select multiple

[PHP] finding a value in an array

2002-11-04 Thread Craig
this Thanks Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

[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
lar 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 Hotmail address book and scheduler -- PHP General Mailing List (http://www.php.net/) To uns

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

[PHP] Re: If statement w/ multiple conditions

2002-11-26 Thread Craig
Something like this will work... ?php if(empty($_GET['1']) empty($_GET['2']) empty($_GET['3']) empty($_GET['4'])){ echo All vars are EMPTY; }else{ echo Some vars contain Content; } ? [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'll be

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Craig
Something like this will work... ?php if(empty($_GET['1']) empty($_GET['2']) empty($_GET['3']) empty($_GET['4'])){ echo All vars are EMPTY; }else{ echo Some vars contain Content; } ? [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The db will

[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
joined together. 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 Header(Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0); Header(Expires: Thu, 19 Nov 1981 08:52:00 GMT

[PHP] Re: array with session

2002-11-29 Thread Craig
. Hope that helps, Craig Laurence [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hello everyone, I'm trying to get some images value from a checkbox putting them in a session to preserve the data. The array works perfectly without the sessi

[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 achieve is go the $_SUPERGLOB

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

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

[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

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

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

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

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

[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

[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

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

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

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

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

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

[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

  1   2   3   4   >