Re: [PHP] PHP connection to external application

2008-06-12 Thread Steven Macintyre
On Thu, 2008-06-12 at 21:20 +1000, hce wrote: > Hi, > > What is the best way for a PHP web application to connect to an > external application written by C in Linux OS? > > (1) Can PHP directly call external C functions, or similar solution? > > (2) Can PHP pass messages to message queue which

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Steven Macintyre
On Thu, 2008-06-12 at 16:27 +0530, Yashesh Bhatia wrote: > Aschwin: > > Hi i tried > > -- > //echo ''; > //echo 'window.location.href="3.html";'; > //echo ''; > header("Location: 3.html"); > exit; > -

[PHP] joins issues again

2008-04-08 Thread Steven Macintyre
Hi all, I have the following SQL statement; SELECT count( salesID ) AS count, branch_name, company_name, branch.branchID FROM sales LEFT JOIN IGuser ON sales.IGuid = IGuser.IGuid LEFT JOIN branch ON IGuser.branchID = branch.branchID LEFT JOIN company ON branch.com

[PHP] mysql joins

2008-03-25 Thread Steven Macintyre
I have three tables, namely; User - UID - Firstname - Surname - Tel - Cell - Email Tracker - UID - Points Winners - UID - Datetime (-00-00 00:00:00) I need to get the following information from the above tables (in my logical sense) All users from user with sum(points) as points and d

Re: [PHP] php cron to check and remove files

2008-03-13 Thread Steven Macintyre
>Do you already have some code? Do you got stuck somewhere? No, i didnt even know where to start with the flow; but sitting on the toilet produces wonderfull ideas! I have the following in mind; list the entire directory into an array, using a foreach to check on the db if the file exists, th

[PHP] php cron to check and remove files

2008-03-13 Thread Steven Macintyre
Hi, I need to be able to do the following procedure; retrieve all items from a mysql db table, then check to see if the files from that table exist on the server (images), if not, to "clean up" and remove the physical file - so that only the files from the db exist. This will run via cron Ha

[PHP] getenv ... i think

2007-11-22 Thread Steven Macintyre
Hi all, http://steven.macintyre.name/myscript.phps is my code as it stands The purpose of the code is as follows; Its for a non-profit company - wanting to offer "support" banners for users who pay for them right ... as in donation. They want to be able to restrict those banners to a certain

RE: [PHP] while-do +array

2007-10-31 Thread Steven Macintyre
> Your subject line says "while-do" + array, following code contains > a > "do-while" loop. Apologies :) > We can't debug the script very well without a > sample > input since we don't know how many times the loop "should" run. To > debug > yourself, try using print_r() to see exactly what the f

[PHP] while-do +array

2007-10-31 Thread Steven Macintyre
Hiya, I have the following code ... which only seems to result in one item ... which is incorrect ... can anyone spot my problem? if ($armbase != "") { $options = explode(",", $armbase); $text .= ''; $get_endRow = 0; $get_co

RE: [PHP] duration of mp3 file

2007-07-11 Thread Steven Macintyre
Shyte ... The files are VBR ... I will read up and when I find answer - will revert to list with it as well.. Ps. Everyone is a bunny to me :P S > -Original Message- > From: Jim Moseby [mailto:[EMAIL PROTECTED] > Sent: 11 July 2007 03:55 PM > To: 'Steven Macint

[PHP] duration of mp3 file

2007-07-11 Thread Steven Macintyre
Allow bunnies ... Any takers on this ... I JUST want the duration of the mp3 file - with a small function if possible ... I honestly don't want to use a class like http://www.phpclasses.org/browse/package/112.html The coding is terrible and SERIOUSLY over inflated for what I want. Anyone know of

[PHP] voucher manipulation

2007-04-24 Thread Steven Macintyre
d a unique voucher number. Now, I have looked at ImageCreateFromjpeg etc ... but ... cant figure out how to place the text on it within the specified areas. It will then be emailed to the user. Does anyone know of an idea out there already I can take a look at ... or some advice? Kind regard

RE: [PHP] PHP4 and PHP5

2007-02-26 Thread Steven Macintyre
"This tutorial shows how to install and configure Apache2 with PHP5 and PHP4 enabled at the same time. Because it is not possible to run both PHP5 and PHP4 as Apache modules, we must run one of them as CGI, the other one as Apache module." http://www.howtoforge.com/apache2_with_php5_and_php4 That

[PHP] RE: [PHP-DB] NOT NULL query

2007-02-26 Thread Steven Macintyre
SELECT * FROM table WHERE field_3 IS NOT NULL > -Original Message- > From: Ron Piggott [mailto:[EMAIL PROTECTED] > Sent: 26 February 2007 02:56 PM > To: PHP DB > Subject: [PHP-DB] NOT NULL query > > Is it possible to do a SELECT query where field_3 isn't null? What > would the syntax loo

[PHP] array issues

2007-02-26 Thread Steven Macintyre
Hi all, I am working on a project for someone and with the brief I received before - I created a record per action with the following information; Artist[tab]artist[tab]artist[tab] etc as a entry for "artists" Then I have the same for titles etc ... What I have been doing is creating the array

[PHP] array within array

2007-02-08 Thread Steven Macintyre
Hi all, I have an array ($articles) that contains content in this format Text More text I am currently calling the creation of the array as such; $articles = split("Section break", $mystring); <-- this works NOW ... I need to split each item in the articles array into its own array (newsarray)

[PHP] file_get_contents

2007-02-06 Thread Steven Macintyre
Hiya, I need to be able to read a file into a string - I have used the above command and it works ... now ... I need to read a file into a string - that requires a username and password to access the authentication is normal HTTP basic realm Any ideas? Kind Regards Steven Macintyre

[PHP] readfile()

2007-01-11 Thread Steven Macintyre
ox Created") { Do more stuff } else { Tell user that there was a problem } How is this done ... At current - the "MailBox Created" and error message if there is always displays raw on the screen as if its outputting that buffer Kind Regards, Steven Macintyre http://steve

[PHP] convert w date to l format

2007-01-06 Thread Steven Macintyre
sist? Kind Regards, Steven Macintyre http://steven.macintyre.name -- http://www.friends4friends.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Some advice / points / help

2007-01-05 Thread Steven Macintyre
anyone start me off on the correct route to get this done. The layout does not have to be exactly like that - but - the days across top have to - so if there are gaps in "time slots" etc we can handle that This is way beyond my level of knowledge and have NO idea where to

RE: [PHP] Formatting time :/

2007-01-02 Thread Steven Macintyre
Thanks Stut, Perfect! Kind Regards, Steven Macintyre http://steven.macintyre.name -- http://www.friends4friends.co.za > -Original Message- > From: Stut [mailto:[EMAIL PROTECTED] > Sent: 02 January 2007 02:59 PM > To: Steven Macintyre > Cc: php-general@lists.php.ne

RE: [PHP] Please help me

2007-01-02 Thread Steven Macintyre
> When I send a mail using php using mail(), and using html tags in > message > body , these tags are being displayed as it is. > Please let me know if there's any way of how to tackle with this. I use phpmailer for all my email sending ... Never had a problem with it S -- PHP General Mailing

[PHP] Formatting time :/

2007-01-02 Thread Steven Macintyre
nd Regards, Steven Macintyre http://steven.macintyre.name -- http://www.friends4friends.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

2006-12-27 Thread Steven Macintyre
> imagecopyresampled might help you... I use that and it works > without > problems. > Hi Peter, " I have done some searching via google and some answers say change copyimageresampled to copyimageresized etc" I have tried your suggestion with the same results ... that is what I was using first

[PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

2006-12-27 Thread Steven Macintyre
Now ... afaik my new sizes are proportional to the big ones ... but it pixelates :( However, Using an image 1600 x 1200 (96 dpi) 24 depth it works and there is no pixilation Can someone perhaps assist now? Kind Regard

[PHP] random selection from each subfolder

2006-12-21 Thread Steven Macintyre
and combine it to a "master" array and use that ... Good thinking? Better suggestions? Kind Regards, Steven Macintyre http://steven.macintyre.name -- http://www.friends4friends.co.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] um ... arrays

2006-12-21 Thread Steven Macintyre
Hi ... I have the following; $files = array(); $curimage=0; if($handle = opendir($dirname)) { while(false !== ($file = readdir($handle))){ if(eregi($pattern, $file)){ $filedate=date ("M d, Y H:i:s", filemtime($file));

Re: [PHP] What is the GD library and what can I do with it ?

2004-05-11 Thread Steven Macintyre
Pete wrote: Hi, What is the GD library ? How can I install it. I have PHP integrated as a module. Judging by the discussion that people have here the GD library sounds interesting. How do I know if my shared host has it ? Thank you. phpinfo(); ?> Then see ... -- Regards, Steven Mac Intyr