Re: [PHP] Decoding Barcode Images

2011-10-10 Thread Shaun J. Farrell
zxing has a java commandline app that you can run.. simple to use great results. http://code.google.com/p/zxing/ Shaun www.brewerydb.com On Oct 10, 2011, at 2:47 PM, Matthew Pounsett wrote: On 2011-10-10, at 14:42, Floyd Resler wrote: I've been trying to find a solution for decoding

[PHP] PHP5 cgi Suexec htaccess rewrite issue

2011-09-29 Thread Shaun Morrow
I am running a server with cPanel on and want to have php run as a cgi with Suexec enabled I cannot seem to rectify an issue, when I set the handler to cgi, my rewrite rules on one of my sites stop working Sample url: http://examplesite.com/ad/123-abcde/ The rewrite rule for this is below;

Re: [PHP] text insertion

2011-08-10 Thread Shaun Farrell
You could try using markdown too. Sent from my iPhone On Aug 10, 2011, at 3:57 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Chris Stinemetz chrisstinem...@gmail.com wrote: How do I preserve text formatting when text is inserted into a database table? For example: I am using

[PHP] call_user_func_array how to use on object php = 5.3

2010-06-28 Thread Shaun Morrow
I am working on code that implements a delegate design pattern, this makes use of the call_user_func_array function. I am having trouble with this particular line in PHP 5.3 return call_user_func_array(array($delegate, $methodName), $parameters); $delegate is an object, and not simply the class

[PHP] Delete File With Any File Extension

2010-06-15 Thread Shaun Thornburgh
Hi, I need to delete a file with any file extension where i know the name of the file, is it possible to use regular expressions with the unlink function? Thanks _

[PHP] W3C Validator and Post Arrays

2009-04-02 Thread Shaun Thornburgh
Hi, We are getting errors when trying to vaildate our HTML due to the [ character when using Post Arrays: Line 173, Column 65: character [ is not allowed in the value of attribute id …e=filters[calling_url] id=filters[calling_url] value=categories-bulk-ear Does anyone know of a way

RE: [PHP] Re: Sending a POST variable to an ASP page

2008-08-28 Thread shaun thornburgh
Date: Wed, 27 Aug 2008 15:07:53 -0600From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [PHP] Re: Sending a POST variable to an ASP page well that would constitute a particular reason :) On Wed, Aug 27, 2008 at 2:55 PM, shaun thornburgh [EMAIL PROTECTED] wrote: Date: Wed, 27 Aug 2008 14:45:42

[PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh
Hi guys, I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(dmtrk.net, 80, $errno,

RE: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh
Date: Thu, 28 Aug 2008 16:21:19 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending $_POST vairable to an ASP page [snip] I need to send post variables to an ASP page. I have the following code which isn't producing any

RE: [PHP] Problems sending $_POST vairable to an ASP page

2008-08-28 Thread shaun thornburgh
Date: Thu, 28 Aug 2008 16:24:58 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending $_POST vairable to an ASP page [snip] Unfortunately I don't have curl installed on my server. [/snip] Unless you can open a socket or a curl

[PHP] Sending a POST variable to an ASP page

2008-08-27 Thread shaun thornburgh
Hi, I need to send a post variable to an ASP page, can I do this within my PHP script? I don't need to view the page, or get any acknowledgment back, just send the single POST variable... Thanks for your advice _ Get Hotmail

RE: [PHP] Sending a POST variable to an ASP page

2008-08-27 Thread shaun thornburgh
Date: Wed, 27 Aug 2008 14:13:23 -0400 To: php-general@lists.php.net From: [EMAIL PROTECTED] Subject: Re: [PHP] Sending a POST variable to an ASP page At 5:54 PM + 8/27/08, shaun thornburgh wrote: Hi, I need to send a post variable to an ASP page, can I do this within my PHP

RE: [PHP] Re: Sending a POST variable to an ASP page

2008-08-27 Thread shaun thornburgh
To: php-general@lists.php.net Date: Wed, 27 Aug 2008 14:07:31 -0500 From: [EMAIL PROTECTED] Subject: [PHP] Re: Sending a POST variable to an ASP page shaun thornburgh wrote: Hi,I need to send a post variable to an ASP page, can I do this within my PHP script?I don't need

[PHP] Variable Names

2007-11-29 Thread Shaun
] = $subvalue; //echo value: .$key.br; } } else { $_SESSION['ses-app-form']-$key = $value; //echo value: .$key. = .$value.br; } } } Any Ideas? Cheers, Shaun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Removing PHPSESSID - CGI Install

2007-05-31 Thread Shaun
Hi, I have PHP installed as a CGI module on my server. I want to stop PHPSESSID from appearing in the URL when a users cookies are turned for just one account. My hosting company says that this is impossible - they would have to change php.ini and that would affect every account on the server.

[PHP] Including files from another site

2006-04-17 Thread Shaun
Hi, I have created a CMS where all sites on our server are administrated from one central site, and HTML content is stored in the CMS database. I want users to all control their sites database functions from the CMS site, but I want to keep the database and database admin scripts in the

Re: [PHP] Including files from another site

2006-04-17 Thread Shaun
is best for your site. Have a look at some relevant code examples: http://www.weberdev.com/AdvancedSearch.php?searchtype=titlesearch=auth berber -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 12:46 PM To: php-general@lists.php.net Subject: [PHP

Re: [PHP] Including files from another site

2006-04-17 Thread Shaun
take you tomorrow. PHP code examples : http://www.weberdev.com PHP MySQL Forums : http://www.weberforums.com -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 2:52 PM To: php-general@lists.php.net Subject: Re: [PHP] Including files from another

Re: [PHP] Including files from another site

2006-04-17 Thread Shaun
place to have to worry about changing files. HTH, Wolf Shaun wrote: I see your point, the only problem is that the user will have already logged once into the CMS, logging in again would be a little frustrating and not very user friendly... Weber Sites LTD [EMAIL PROTECTED] wrote

Re: [PHP] Including files from another site

2006-04-17 Thread Shaun
to host primary images so that nobody could phish your site. Paypal and chase are really lamely set up which is making phishing easier for people who use them. My $.02 Wolf Shaun wrote: Hi, Thanks for your reply, just had a thought: How secure would it be if I made sure that the URL

Re: [PHP] Including files from another site

2006-04-17 Thread Shaun
Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, April 17, 2006 5:45 am, Shaun wrote: I have created a CMS where all sites on our server are administrated from one central site, and HTML content is stored in the CMS database. I want users to all control

[PHP] Include Problem

2006-04-15 Thread Shaun
Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or

[PHP] Include Problem

2006-04-15 Thread Shaun
Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or

Re: [PHP] Include Problem

2006-04-15 Thread Shaun
Mark Charette [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shaun wrote: Warning: main(/cms/templates/footer.php): failed to open stream: No such file or directory in /home/m/y/mysite/public_html/cms/news/index.php on line 38 Most assuredly the file isn't there (do you have

Re: [PHP] Include Problem

2006-04-15 Thread Shaun
- From: Shaun [mailto:[EMAIL PROTECTED] Sent: 15 April 2006 20:05 To: php-general@lists.php.net Subject: [PHP] Include Problem Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates

[PHP] Common Files

2006-04-15 Thread Shaun
Hi, We have a dedicated UNIX server running FreeBSD, is it possible to set a directory where we can place a set of common files that can be used by all of our web sites? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Sessions and Frames

2006-04-05 Thread Shaun
Hi, I have a site that uses frames. The frameset loads another site (both on the same server) in the lower frame window. Every time the page changes in the lower frame the session id changes, how can I stop this happening? Thanks for your help -- PHP General Mailing List

Re: [PHP] Sessions and Frames

2006-04-05 Thread Shaun
Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, April 5, 2006 1:33 pm, Joe Wollard wrote: If you can't avoid them, keep it simple - just store the ID in one place, like a session cookie. Doing so will make sure that if the session ID gets changed in one

[PHP] Blocking Values From an External Source

2005-12-16 Thread Shaun
Hi, I have a script on my site for processing values sent from a contact form and emailing them to the webmaster. The script has been abused by spammers and my hosting company has recommended that I change the script to only accept information posted from my own URL. Could someone tell me how

[PHP] foreach $_FILES

2005-12-14 Thread Shaun
Hi, I have a form on my site with many file fields for users to upload files. I am trying to verify that for each file uploaded it corresponds with the name of the file field i.e. tr tdFile_1.CSV:/td tdinput type=file name=File_1.CSV/td /tr tr tdFile_2.CSV:/td tdinput type=file

[PHP] Forwarding $_POST Values

2005-12-09 Thread Shaun
Hi, I have a server with all my clients websites on. However I have some clients who have their own servers. I want to be able to have a form on my site that allows users to log into their webmail, however if the client has their own server I need to forward the $_POST values to a login script

[PHP] Eval To String

2005-12-07 Thread Shaun
Hi, Is it possible to return the result of eval function to a string rather than outputting directly to the browser? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: GD Graph tutorial?

2005-12-06 Thread Shaun
Gustavo Narea [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Ashley. Ashley M. Kirchner wrote: Does anyone know of a good GD tutorial for creating graphs? I like this one: http://www.nyphp.org/content/presentations/GDintro/ Regards. -- Gustavo Narea. PHP

Re: [PHP] Count and Preg_Replace Using Version 4.4.1

2005-12-04 Thread Shaun
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sun, Dec 04, 2005 at 07:00:00PM -, Shaun wrote: comex [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] form'.$count.'... You can use preg_replace_callback or the e pattern modifier to let you run php

Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Shaun
/xhtml; head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / titleUntitled Document/title /head body ?= print_r($_POST); ? /body /html Any ideas? Terence [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shaun wrote: Hi, How can I get the form values submitted from

Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Shaun
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I have made an example of this now. If you click on this link: http://www.assertia.com/iframe.html and then click on 'Click Here'. I am trying to display the form results in the parent window, but I am having no

[PHP] Submit Form Values To Parent

2005-12-01 Thread Shaun
Hi, How can I get the form values submitted from an iframe where the target is the parent window? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with Frames and Sessions

2005-11-28 Thread Shaun
Hi, I have a frameset with a left column and a main column. I have a login script with a form in the left column. When I log in I get a menu in the left column which targets to the main column. My problem is that when I click on links in the left column nothing appears in the main frame,

[PHP] Adding links to HTML for a CMS

2005-11-26 Thread Shaun
Hi, I am trying to create my own CMS. To being with I want to let users edit anything within a p tag. I want to have a menu to the left and display the webpage in the rest of the page, and for each set of p tags I want the user to be able to click on the link to edit that paragraph. My

[PHP] Intersecting Dates

2005-11-26 Thread Shaun
Hi, Given a start day and month and end day and month (i.e. 01-01 to 31-03) how can one check if another set intersects these dates? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Uploading more than one file

2005-11-21 Thread Shaun
the name of all the input fields are the same. I need to make sure that the file uploaded is correct by comparing the file name to the value requried by the form field name. Is there a way around this? Thanks for your help. Shaun -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Convert Feet to Metres

2005-11-02 Thread Shaun
Hi, I am trying to create a function that will convert metres to feet and vice versa. After searching Google I have found that 1 meters = 3.2808399 feet. However if someone enters 10.5 to mean 10 feet and 5 inches this is not the same as 10 feet and half a foot as there are 12 inches in a

[PHP] Type of form element

2005-10-28 Thread Shaun
Hi, I have some checkboxes on my page which correspond with boolean fields in my database - actually they are TINYINT's in which I store a 0 or 1 in for false and true values respectively. Is it possible to loop through all $_POST values to see if it is a checkbox? If so then for that element

[PHP] Help with a regular expression for 0,1 or 2 decimal places

2005-10-24 Thread Shaun
Hi, I am trying to create a regular expression for a width of a room, the value can be a whole integer (up to 999) with up to 2 decimal places -when it is stored in the database mysql will pad the value accordingly. /^[0-9]{1,3}.?[0-9]{0,2}?$/ The only problem I have found with above is that

[PHP] Inserting NULL Integer Values

2005-10-18 Thread Shaun
Hi, Up to this point in time I used to construct my insert statements like this $qid = mysql_query('INSERT INTO MYTABLE ( column1, column2, ) VALUES ( '.$value1.',

[PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread Shaun
12:15:41 -0400, Shaun [EMAIL PROTECTED] wrote: Hi, Up to this point in time I used to construct my insert statements like this $qid = mysql_query('INSERT INTO MYTABLE ( column1, column2

Re: [PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread Shaun
Hi all, Thanks for your replies, rather than check each vaule by name I am trying to produce a more dynamic solution: foreach ($_POST as $key = $value) { if ($value == '') { $_POST[$key] == 'NULL'; } } I was expecting $_POST[$key] to be the same as $key, however this isnt the case:

[PHP] Cross Tabulation

2005-09-24 Thread Shaun
Hi, The following article describes cross tabulation within MySQL and ends with a Perl application that automates the process, does anyone know of a PHP version? http://dev.mysql.com/tech-resources/articles/wizard/index.html Thanks for your advice. -- PHP General Mailing List

[PHP] REGEX Help Please

2005-09-19 Thread Shaun
Hi, I am trying to implement a regular expression so that I have a number between 0.00 and 1.00. the following works except I can go up to 1.99 $regexp = /^[0-1]{1}.[0-9]{2}/; Can anyone help here please? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Encrypt Files

2005-09-09 Thread Shaun
Hi, Is it possible to encrypt files that are being uploaded via the move_uploaded_file() method? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cleaning a resultset

2005-09-08 Thread Shaun
Hi, I have a resultset from a query and need to remove some rows after doing some php processing then insert into another table i.e. /** Get data**/ $qid = mysql_query('SELECT ...); /** Clean data **/ while( $r = mysql_fetch_object( $qid ) ) { } How can i generate a new resultset /

[PHP] Saturdays and Sundays

2005-09-01 Thread Shaun
Hi, Is it possible to get the number of saturdays and sundays for a given month / year? Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem With Inner Loop

2005-08-29 Thread Shaun
Hi, The following code is attempting to display a list of work types for all the users in my database. However it only loops through the inner loop once and I can't work out why, can anyone help here please? Thanks for your help table ?php include('application.php'); $staff_qid =

[PHP] Generate CSV File and force download

2005-05-12 Thread Shaun
Hi, Is it possible to create a csv file from a query and force the user to download it by outputting it to the browser, I dont want it saved on the server! Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Same sessions / different domains

2005-05-12 Thread Shaun
$_SERVER['HTTP_HOST'] Mbneto [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I need to access a website (written in php) using two different domains (www.foo.com and www.bar.com). I must see the same content. Since the site uses session and cookie variables I was wondering if

[PHP] How do I link to the root directory of the server?

2005-05-05 Thread Shaun
Hi, I have a file called application.php and in this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG-wwwroot = http://www.mydomain.com; $CFG-dirroot = /usr/home/myaccount/public_html; $CFG-admindir = $CFG-wwwroot/admin; $CFG-claimsdir_adm

[PHP] Linking to the Root Dir - LAMP

2005-05-05 Thread Shaun
Hi, I have a file called application.php and this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG-wwwroot = http://www.mydomain.com; $CFG-dirroot = /usr/home/myaccount/public_html; $CFG-admindir = $CFG-wwwroot/admin; $CFG-claimsdir_adm

[PHP] Re: How do I link to the root directory of the server?

2005-05-05 Thread Shaun
Sorry for double posting, these took an hour to appear in my newsreader and I thought there was a problem with the first one I sent Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a file called application.php and in this file I define all of the directories

[PHP] Call a Function Held in a $_GET Var

2005-04-06 Thread Shaun
Hi, If I have a function name held in a $_GET variable for example ...func=print_user_list how can I call the function dynamically? ie. $_GET['func']() Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SSL XML File Download Problem

2005-04-05 Thread Shaun
Hi Chris, I have turned off friendly messages, but I get the same message... Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shaun mailto:[EMAIL PROTECTED] on Friday, April 01, 2005 11:20 AM said: This was working fine until i added an SSL certificate to my site

[PHP] SSL XML File Download Problem

2005-04-01 Thread Shaun
Hi, I have a site that allows users to download xml files. I have the following php script which prints the results of the query to the browser. As the header is chaged to XML it forces the browser to ask the user if they want to download the file rather than outputting the results straight to

[PHP] Create MDB File

2005-03-28 Thread Shaun
Hi, Does anyone know if its possible to create an MDB file from a Mysql database using a PHP script, I have only managed to find Access to Mysql conversion programs so far... Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Create MDB File

2005-03-28 Thread Shaun
. Regards Johannes On Monday 28 March 2005 22:08, Shaun wrote: Hi, Does anyone know if its possible to create an MDB file from a Mysql database using a PHP script, I have only managed to find Access to Mysql conversion programs so far... Thanks for your help -- # Johannes

[PHP] Ensure only one instance of a script is running

2005-03-16 Thread Shaun
Hi, I have a script that inserts data from files uploaded to our server. I need to make sure that only one instance of this script runs at anyone time, can anyone tell me how I can do this? Many thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Help with REGEXP please

2005-03-04 Thread Shaun
Hi, Please could someone tell me how i can extract the information from a string that is after 'ID_' and before '_FN' Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DB INSERT CRON

2005-03-03 Thread Shaun
Hi, I have a web based system that allows users to upload XML files and insert them into the database, however some of these files are large and are causing the webserver to timeout. Is it possible to create a cron job that can insert the xml files say every hour, then the users of the site

[PHP] DB INSERT CRON

2005-03-03 Thread Shaun
Hi, I have a web based system that allows users to upload XML files and insert them into the database, however some of these files are large and are causing the webserver to timeout. Is it possible to create a cron job that can insert the xml files say every hour, then the users of the site

[PHP] Delete last 15 chars from a file

2005-03-02 Thread Shaun
Hi, I am trying to create an XML file, it will be done in stages so if the file isn't present I will add the line: ?xml version=1.0 ? root_element Then for each line I add I add the following child_elementdatachild_element But for various reasons the application won't know when

[PHP] Help with a query please - unable to error check!

2005-02-16 Thread Shaun
Hi, I have a problem with a query, I get the following error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 23 If I echo the query to the screen and run the query to the database via SSH

[PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
Hi, I have a database that contains encrypted data using Mysql function ENCODE(). Certain users will be allowed to view this data and I will allow them to download a CSV file contain the decrypted data using the Mysql DECODE() function. However I don't want this file to be left on the server,

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
Hi Matt, Thanks for the reply, I know how to delete a file I just wanted to know if its possible to ensure that its deleted automatically as soon as the user has downloaded it. Thanks... Matt M. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a database that contains

Re: [PHP] Delete a file immediately after download

2005-02-15 Thread Shaun
Hi Marek, Thanks for your reply, could you tell me how I would go about this please? Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shaun wrote: Hi, I have a database that contains encrypted data using Mysql function ENCODE(). Certain users will be allowed

[PHP] Ensure a number is three digits long

2005-02-13 Thread Shaun
Hi, I have am trying to create functions to convert strings to ascii and vice versa: function string_to_ascii( $str ) { for( $i=0; $i strlen( $str ); $i++ ) { $asc .= ord( substr( $str, $i ) ); } return $asc; } This function works fine, however I need to ensure that the ASCII

[PHP] Convert a string to ASCII

2005-02-11 Thread Shaun
Hi, Is it possible to create an ascii representation of a string with php, i had a look on the site but with no luck :( Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert a string to ASCII

2005-02-11 Thread Shaun
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] Is it possible to create an ascii representation of a string with php, i had a look on the site but with no luck :( [/snip] You mean like this? __ ^(picture of a

Re: [PHP] Getting two queries into one result set

2005-02-02 Thread Shaun
Hi guys, Thanks for your replies but neither UNION or REGEXP can be used with SHOW TABLES... Any ideas? Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Marek Kilimajer wrote: Shaun wrote: Hi, I have a query where I select all table names where the table name has

[PHP] Getting two queries into one result set

2005-01-26 Thread Shaun
Hi, I have a query where I select all table names where the table name has PID_1 in i.e. SHOW TABLES LIKE '%PID_1%'; However there may be cases where I need to search for tables where the table name is PID_1 or PID_2. In MySQL this can't be done in one query, so how can I do two queries and

[PHP] Use a query twice

2005-01-20 Thread Shaun
Hi, I have the following query: $result = mysql_query(SELECT * FROM Users); while( $r = db_fetch_array( $result ) ){ echo $r['Name']; } Is it possible to use the same result set to loop through the values form the begining or do I have to create the $result varible again? Thanks for your

[PHP] Data Enryption

2005-01-12 Thread Shaun
Hi, I have site that allows users to upload private information to our server. We would like to encrypt the data for security reasons and only allow certain users to be able to un-encrypt the data and view it. I have looked at the PHP encryption functions and they appear to be one way

[PHP] Removing a return character

2004-12-10 Thread Shaun
Hi, I have a system that scans through a CSV File and inserts each row into a database. I have just noticed that some rows have a return character in them - a small square - and this is causing errors in the mysql query. Does anyone know how I can remove such chracters? -- PHP General

[PHP] Magic Quotes Issue

2004-12-07 Thread Shaun
Hi, I have been investigating the problem of apostrphes in a mysql insert / update. I use a db_query function for all my queries: function db_query($query) { $qid = mysql_query($query); return $qid; } It appears after some research that the best way around the problem is to check whether

[PHP] Problem with parameter count in strstr()

2004-11-30 Thread Shaun
Hi, I am trying to ensure that all data added to each element of $my_data_array has no commas, however I get an error message saying Warning: Wrong parameter count for strstr() $my_data_array[] = strstr( $data[1], ,, ); strstr( $data[2], ,, ).', '. strstr(

[PHP] Re: Problem with parameter count in strstr()

2004-11-30 Thread Shaun
Sorry, I was confusing strstr with strtr! Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Shaun [EMAIL PROTECTED]: I am trying to ensure that all data added to each element of $my_data_array has no commas, however I get an error message saying Warning

[PHP] Holding an array in a session

2004-11-19 Thread Shaun
Hi, I have created an array of tables in my database and put it into a session using the following code: $_SESSION['ses_csv_files'][] = array(); $qid = mysql_query(SHOW TABLES); $num = mysql_num_rows($qid); for ($i = 0; $i $num; $i++) { $r = mysql_fetch_array($qid);

[PHP] Getting the date of Monday from a week number and year

2004-11-03 Thread Shaun
Hi, is it possible to get php to calculate the date of the monday given a week number and the year? I have looked http://uk.php.net/strtotime here and can find refererence to everything but this! Thanks for your help, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] List of Dates Grouped by Week

2004-10-26 Thread Shaun
Hi, I am creating an online timesheet application. Most parts are done, however I have a problem displaying a list of unapproved timesheets. Here is my timesheet table: mysql DESCRIBE Timesheets; +---+-+--+-+++ | Field

[PHP] Substr

2004-10-25 Thread Shaun
Hi, I have a string as follows: pid_1_date_2004_10_25 pid tells me the Project_ID and date tells me the date(!). I need to extract this information from the string so to get the date I need everything after 'date_' as follows: substr(strstr($key, 'date_'), 4) However, to get the Project ID I

[PHP] Strange Array Error

2004-10-21 Thread Shaun
Hi, I have been trying for the past two hours to understand why I get an error with the following code: ?php $test_array[] = array(); $i = 0; while($i 7){ $test_array[$i] += $i; echo '$day_total[$i] = '.$day_total[$i].'br'; } ? Fatal error: Unsupported operand types in

[PHP] 1st day of the Week

2004-10-20 Thread Shaun
Hi, I am trying to use the strtotime function to get dates for the first and last days of a given week: ?php echo date(Y-m-d, strtotime(last monday, strtotime(2004-10-18))).'br'; echo date(Y-m-d, strtotime(sunday, strtotime(2004-10-18))); ? Using the code above works fine until the date

[PHP] Regular Expression for a UK Mobile

2004-10-15 Thread Shaun
Hi, Could anyone help me with a reugular expression for a UK mobile phone number? So far I have tried this but with no success snip $regexp = /^447[0-9]{9}$/; if(!preg_match( $regexp, $_POST[mobile_number] )){ $error = Invalid Mobile Number; /snip The number nust be 11 numbers long, be

[PHP] User Defined Forms

2004-10-14 Thread Shaun
Hi, I am creating a site where users record details of their clients and record their progress. The whole point of the system is to reduce the amount of paper work and store everything online. The problem here is that each user will have their own forms to fill in on their clients, some will

Re: [PHP] User Defined Forms

2004-10-14 Thread Shaun
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I am creating a site where users record details of their clients and record their progress. The whole point of the system is to reduce the amount of paper work and store everything online. [/snip] How much time have

Re: [PHP] User Defined Forms

2004-10-14 Thread Shaun
Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have interviewed a few users and it has become instantly apparent that they all work differently and record slightly different information about their clients making it impossible to produce a general set of forms

[PHP] Problem with a time comparison loop

2004-10-09 Thread Shaun
Hi, I am trying to create an outlook style day view calendar. I loop through the hours in the day (00:00 - 23:00) and compare it to a diary table for the user. If the users 1st appointment isnt until 10:00 then the hours print out until that appointment then continue looking for the next

[PHP] Using before a variable

2004-09-03 Thread Shaun
Hi, I have noticed that some of the functions in a tutorial I am studying have an in the variable parameters i.e. function add($id) { /* function body */ } I would be most grateful if some can shed some light on this as i cant fnd any reference to this in the PHP manual... Thanks -- PHP

[PHP] $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread Shaun
Hi, How can I get the URL of the page I am on without the 'www.' i.e. just mydomain.com? I need to enurse this is correct in case the user types in the domain without using the 'www.'. I have looked at using substr but if the user leaves out the 'www.' then substr($_SERVER['HTTP_HOST'], 4) would

[PHP] Destroying a Session

2004-08-25 Thread Shaun
Hi, I am writing a shopping cart and am using a session called $_SESSION[orderinfo] to store the order information. I also have a function I use to clear the session when the payment has been authorized: function clear_orderinfo() { global $_SESSION; unset($_SESSION[orderinfo]); } However

[PHP] Communicate with Outlook

2004-08-25 Thread Shaun
Hi, Is it possible for a PHP application to communicate with an Outlook calendar? I would like to create a web based application that shows staff availability... Thanks for any advice offered. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Destroying a Session

2004-08-25 Thread Shaun
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] function clear_orderinfo() { global $_SESSION; unset($_SESSION[orderinfo]); } However this function doesnt seem to work and the session remains active, is there another way to clear a session? I'm not triffically

[PHP] Holding links in a database

2004-08-07 Thread Shaun
Hi, I have a table in my database that holds links for individual pages on my site: mysql DESCRIBE Page_Links; +---+--+--+-+-++ | Field | Type | Null | Key | Default | Extra |

  1   2   3   4   >