Do any experienced PHP programmers in London fancy helping me improve my
PHP?
I'd like to know where my code could be improved and to be shown how an
experienced programmer would approach a new site.
I'd rather pay the right person a high amount than find someone cheap!
Thanks,
Tom
PS - May as we
2009/3/13 Robert Cummings
> On Fri, 2009-03-13 at 17:16 +0000, Tom Chubb wrote:
> > Do any experienced PHP programmers in London fancy helping me improve my
> > PHP?
> > I'd like to know where my code could be improved and to be shown how an
> > experienced prog
2009/4/17 Jay Blanchard
> [snip]
> I was thinking that you create a form with one input box, which would
> insert
> into the search box for the lmgtfy link. One of the questions I have is
> how
> would I convert or insert a + sign in between the search words.
>
> For example, if I created the in
"Sometimes I'm the windshield and sometimes I'm the bug"
Ha ha! Love that!
2009/6/3 PJ :
> The code:
> ...snip
>
>
> accès client name="title" value="" size="10" />
> mot de passe
> value=" entrez " />
> Inscription
>
> snip...
>
> PROBLEM 1: On Firefox3, the first input (accès client) does not
2009/6/5 Leonard Burton
> HI All,
>
> Has anyone used Google Calendar (of course via PHP) to allow clients
> to schedule appointments from the business's webpage? If so, would
> you please tell me how you made it so it would only show the client
> times which were available and of course not lis
fully
>> -
>> I would be sceptical of any webhost which rolls out RCs on production
>> servers).
>>
>> If you need to know what version of PHP you're running, use:
>> phpversion() or phpinfo()
>>
>> -Original Message-
>>> From:
http://lmgtfy.com/?q=javascript+calendar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/6/26 Gautam Bhatia :
> hello all,
> Is there anyway in php by which i can get the total play
> time of a mp3 , I found some information while doing the google thing
> using some 3rd party plug ins like getID3 but without any luck, Any help
> in this case would be helpful. Thank you
2009/7/3 Luke
> 2009/7/3 Daniel Brown
>
> > On Thu, Jul 2, 2009 at 23:27, Jason Carson wrote:
> > > Hello all,
> > >
> > > Do I have to add session_start() at the beginning of every page so that
> > > the $_SESSION variables work on all pages or do I use session_start()
> on
> > > the first page
2009/7/3 Ashley Sheridan
> On Friday 03 July 2009 09:41:40 Tom Chubb wrote:
> > 2009/7/3 Luke
> >
> > > 2009/7/3 Daniel Brown
> > >
> > > > On Thu, Jul 2, 2009 at 23:27, Jason Carson
> wrote:
> > > > > Hello all,
> > >
Hi List,
Just wanted to pick your brains please?
I'm trying to standardise on the way I query databases and move away from
the Dreamweaver built-in functions (which I know you all hate!) ;)
I've been on this list for about 5 years now and I don't think I've ever
heard anyone mention the Pear packag
2009/7/14 Eddie Drapkin
> On Tue, Jul 14, 2009 at 2:29 AM, Tom Chubb wrote:
> > Hi List,
> > Just wanted to pick your brains please?
> > I'm trying to standardise on the way I query databases and move away from
> > the Dreamweaver built-in functions (which I know
2009/7/15 Areba Collins
> Hello guys, i have a quick one:
>
> Im working on an app that reads email and converts it into a post on a
> forum, everything works fine except the threaded comments at the
> bottom. I would like to delete everything that is from a previous
> email (which usually begins
2009/7/16 Thijs Lensselink
> Anybody noticed php.net is down?
>
> It's responding to pings. But no pages load.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
UK servers are working: uk2.php.net
Hi gang,
I'm trying to create a script to read the files in a folder (approx
2000) and get the filename, path and last modified date in a tabulated
format to copy into excel. (We have been issued a CD and need to get
all files documented and assigned to an owner.)
I've tried loads of different scr
2009/8/25 Ashley Sheridan :
> On Tue, 2009-08-25 at 12:06 +0200, Ralph Deffke wrote:
>> I would say
>> foreach( $dirTree as $key => $value ){
>> echo $key ."";
>> foreach( $value as $v){
>> echo $v .";
>> }
>>
2009/8/25 Ralph Deffke :
> I would say
> foreach( $dirTree as $key => $value ){
> echo $key ."";
> foreach( $value as $v){
> echo $v .";
> }
> }
>
> something like that
>
> ralph_def...@yahoo.de
> "Tom Chubb" w
I've been playing about more and now I have the following code:
$folder ){
echo "\n"; //Don't need folders as they're shown with the files
foreach( $folder as $file){
echo str_replace("./", "", $key) . "\t" . $file . "\t\n"; //Pad
out with a tab for easy import into excel
}
}
pri
2009/8/26 Ashley Sheridan :
> On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
>> I've been playing about more and now I have the following code:
>>
>> > error_reporting(E_ALL);
>> ini_set('display_errors', true);
>>
>> function getDirec
2009/8/26 Ashley Sheridan :
> On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote:
>> 2009/8/26 Ashley Sheridan :
>> > On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
>> >> I've been playing about more and now I have the following code:
>> >>
&
/Tender Docs/<<>>BAA Works Terms v1.1 (22.05.08).pdf<<>>29/07/2009
/Tender Docs/<<>>Health and Safety Questionnaire 14/08/2009
--
Tom Chubb
t...@tomchubb.com | tomch...@gmail.com
07912 202846
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
aces, etc) to line up field data (although field values should really
> be enclosed in quotation marks if you go down this route just in-case)
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
>
Thanks Ash,
I've learnt quite a lot trying to get this wo
2009/8/26 hack988 hack988 :
> your means "Health and Safety Questionnaire"is directory?
> so you want it display like this
> full dir path <> filename<>date
>
Yes.
I did try using if(is_dir($file)) { insert tab } but couldn't get it to work.
Also tried counting the length of the $file value and an
2009/8/26 Steve :
> Ashley Sheridan wrote:
>>
>> On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote:
>>
>>>
>>> 2009/8/26 Ashley Sheridan :
>>>
>>>>
>>>> On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
>>
On 06/03/07, Helder Lopes <[EMAIL PROTECTED]> wrote:
Hi people
How to php give to me a list of all files in one directory to make an
editor???
http://php.net/readdir
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think I'm missing something, but this works:
http://arubaguide.org/arubaguide/index.php?page=advertise
and if I put in a type such as:
http://arubaguide.org/arubaguide/index.php?page=advertisd
I get the 404 error page.
I think the problem with using $_GET[catcode]???
On 30/03/07, Dwayne He
Windows XP SP2
PostgreSQL 8.1.4
Apache 2.0.58
PHP 5
--
Tom Chubb
[EMAIL PROTECTED]
looking at 8 of them from
phpclasses.org and sourceforge and I'm sure someone out there knows exactly
what I'm looking for.
Thanks in advance,
Tom
--
Tom Chubb
[EMAIL PROTECTED]
2009/9/4 Daevid Vincent
>
>
> > -Original Message-
> > From: Lupus Michaelis
> > [mailto:mickael+...@lupusmic.org
> ]
> > Sent: Friday, September 04, 2009 7:46 AM
> > To: php-general@lists.php.net
> > Subject: Re: [PHP] Converting URL's to hyperlinks.
> >
> > Daevid Vincent a écrit :
> >
!niBgo
/*
$str = "Bingo!";
str_shuffle($str);
*/
:)
2009/10/18 Paul M Foster
> On Sat, Oct 17, 2009 at 01:41:03AM -0400, Brian Hazelton wrote:
>
> > I am in charge of an email newsletter list and making sure it gets sent
> > out in time. My problem is I have never done broadcast emailing and
> > right now we have 400 subscribers but want to build
I think I'm missing something here really obvious!
I am using a script where you get a variable from one page and post to
another.
I've just realised that some people are jumping straight to the second page
(it rates higher in search engines) so the variable (yourname) remains
unset.
I want to use
Pete,
I thought I should send you another reply as I felt that depending on your
experience, you may not fully understand the resonses from other members.
Firstly, create a new .php file and using the following source code:
*
Untitled Document
*
Try:
http://www.1phpstreet.com/vb/scripts/ShowCode.asp?txtCodeId=318&lngWId=8
Regards,
Tom
-Original Message-
From: adwinwijaya [mailto:[EMAIL PROTECTED]
Sent: 14 May 2004 07:39
To: PHP
Subject: [PHP] tracking ip and its location
Hello PHP,
Is there any function/class to search the l
This may sound a bit cheeky, but I've spent most of today looking for some
examples of sockets.
I've managed to create a socket and it's connecting ok, but next I need to
find a way of sending an ASCII string to the remote computer and echo-ing
the results back to my screen.
(Using a text box to su
Does anyone know a quick way to find the full path on a shared hosting plan
to use in an include file?
Thanks,
Tom
I am trying to design a custom form script and I've stumbled across a small
problem.
I want to implement a file upload into the form, but rather than posting to
another file I want to refresh the form and then show that there has been a
file uploaded.
I know about changing the form action to:
Bu
If you use ISSET together with a hidden field when posting a form to itself
to enter a second-state, is there a way of using it again to get to a
third-state.
Basically, I'm trying to convert a 3 file script into a single file and
first I check to see if it's been submitted and then using ELSE I e
Sorry if anyone else gets this, but I'm not receiving any emails at the
moment and wanted to check my subscription.
I am trying to design a form that posts the data to a DB, but being new to
PHP/MySQL, it takes me ages to hand write the code and I'm sure there must
be an easier way to do it?
My form has 100 fields using 20 rows and 5 columns and it's taking me ages
to write the code for it.
Can anyone advise how
database table
also has a datepost so I can select from the week ending when I posted them.
Thanks to everyone who has responded.
Tom
-Original Message-
From: Robert Sossomon [mailto:[EMAIL PROTECTED]
Sent: 24 June 2004 15:30
To: 'Tom Chubb'; [EMAIL PROTECTED]
Subject: RE: [PHP] Po
How can I query a MySQL table to get the latest results from a date field?
Basically, I am inserting several records at a time at the end of each week.
I want to have a page that displays the results for the last week only.
The date format in the field is -MM-DD
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 25 June 2004 12:15
To: Tom Chubb
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Date Select
>How can I query a MySQL table to get the latest results from a date field?
>Basically, I am inserting several records at a time at the
I ave a strange problem with my error reporting!
I have set php.ini to: error_reporting = E_ALL but I don't see any errors.
(After I was happy things were working on my Apache Test Server, I uploaded
to my web host and discovered errors.)
Thanks,
Tom
--
PHP General Mailing List (http://www.php
I've read the manual for the mail function and extensively searched google,
but I can't work out how I can email an html page (actually a php page).
I want to query a DB and the email the displayed table to the user.
Any help most appreciated.
Tom
--
PHP General Mailing List (http://www.php.net
Please can someone let me know their opinion on the following:
I have written some code for submitting a top 20 music chart online.
I use the following to insert into mysql:
INSERT INTO chart (name, chartpos, artist, title, label) VALUES
('$name', '1', '$artist', '$title', '$label'),
('$name', '
timesheets
instead of different files every week.
What I'd like to know is which function I can use on PHP4?
Is it PDF_begin_page_ext?
Any help appreciated.
Thanks,
Tom
--
Tom Chubb
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
produced in a wp/ocr package. You need to be
> able to run exec() or shell() to use itext, but its free and quick. Let me
> know if you want more info.
>
> George in Edinburgh
>
> > -Original Message-
> > From: Tom Chubb [mailto:[EMAIL PROTECTED]
> > Sent: 2
n(): Couldn't open stream {
> > > pop.gmail.com:995/pop3}INBOX<http://pop.gmail.com:995/pop3%7DINBOX>in
> > > c:\arquivos de programas\easyphp1-8\www\index.php on line 4
> > > Fatal error: Maximum execution time of 30 seconds exceeded in
> > c:\arquivos de
> >
Me too.
Guess a lot of us can learn something here from another's misfortune.
Thanks Robert and good luck
On 09/11/2007, Edward Kay <[EMAIL PROTECTED]> wrote:
>
>
> >
> > I'd be interested in reading this thread. OK with me to keep it
> > on the list.
> >
>
> Ditto.
>
> --
> PHP General Mailing L
Hi all,
I have a working gallery script which reads a directory then shows all
thumbnails, each linking to the full size image.
I'm trying to change it so that the page shows an image (fullsize)
then links to the previous/next images in the sequence & then all the
thumbnails below (the bit that's w
On 27/11/2007, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> Tom Chubb wrote:
> > Hi all,
> > I have a working gallery script which reads a directory then shows all
> > thumbnails, each linking to the full size image.
> > I'm trying to change it so that the p
Photo Gallery", there are TON of scripts out
> there.
>
>
>
>
> On Nov 27, 2007 7:20 AM, Tom Chubb <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > On 27/11/2007, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> > > Tom Chubb wrote:
> > &g
Please can someone help me understand the following:
I have 4 images with a .jpg extension in a folder.
The following reads all four:
$files = glob("thumbs/{*.gif,*.jpg,}",GLOB_BRACE);
All good, however, I noticed that if the extension is in capital
letters, eg .JPG it doesn't work. Apparently thi
On 29/11/2007, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Thu, 2007-11-29 at 17:19 +0000, Tom Chubb wrote:
> > Please can someone help me understand the following:
> > I have 4 images with a .jpg extension in a folder.
> > The following reads all four:
> > $
On 31/12/2007, Mary Anderson <[EMAIL PROTECTED]> wrote:
> in my scrolling list?
>
> Here is the offending code (abbreviated)
>
> Italy
> Japan
> Jersey
> Jiangsu
> Jiangxi
>
> I have data series which have a location specified. I wish to edit the
> data series. I select the location from the da
On 15/01/2008, Adam Williams <[EMAIL PROTECTED]> wrote:
>
> I'm having users enter dates in MM-DD- format. is there a way to
> check if what they have entered is invalid (like if they enter 1-15-2008
> instead of 01-15-2008) ?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubs
Can anyone tell me how to wrap the results of highlight_file so it
doesn't mess up the size of my table div?
I tried the following and doesn't work!
if ($ext == "phps") {
$showcode = highlight_file($pathtoscripts . $_GET['file']);
echo wordwrap($showcode, 70);
} else {
echo "Nice try, bu
On 16/01/2008, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Tom Chubb schreef:
> > Can anyone tell me how to wrap the results of highlight_file so it
> > doesn't mess up the size of my table div?
>
> use CSS to control the visual display in the browser.
> not to me
On 24/01/2008, Stut <[EMAIL PROTECTED]> wrote:
>
>
> On 24 Jan 2008, at 15:42, Eric Butera wrote:
> > I used to be hardcore pop only but now that I use gmail I don't care
> > about any other mail client. It beats Thunderbird and Mail.app hands
> > down. If you don't look at the right hand side yo
On 30/01/2008, Per Jessen <[EMAIL PROTECTED]> wrote:
>
> philip wrote:
>
> > Hi everyone,
> >
> > I need assistance using sendmail or mail() as my web hosting service
> > does not allow opening sockets.
> >
> > This is the code I use:
>
> Philip, please state what sort of problems you are having.
On 31/01/2008, Mike Morton <[EMAIL PROTECTED]> wrote:
>
> I have been using:
>
> $nextSaturday= date("m/d/Y",strtotime("next saturday"));
>
> For months long time now with out problems, but in the last two days, it
> went kind of funky. It is now returning:
>
> 02/09/2008 instead of the expected 0
ot;next wednesday"));
> 02/13/2008
>
> print date("m/d/Y",strtotime("next thursday"));
> 02/07/2008
>
> So from today to next Thursday, the dates are all 1 week off?
>
> On 1/31/08 11:03 AM, "Tom Chubb" <[EMAIL PROTECTED]> wrote:
>
I am looking to buy a Mac in a couple of weeks primarily for writing music
using Apple Logic Studio 8 which will run absolutely fine on a MacBook.
However, I am considering installing something like MAMP and using that as
my development server too at which point I'm wondering whether I should
inves
On 31/01/2008, philip <[EMAIL PROTECTED]> wrote:
>
>
>
> Nathan Nobbe wrote:
> > On Jan 30, 2008 2:47 AM, Per Jessen <[EMAIL PROTECTED]> wrote:
> >
> >> Philip, please state what sort of problems you are having. mail() and
> >> sendmail are both easy to use from php.
> >> And please don't post ano
On 31/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote:
>
> On Thu, January 31, 2008 11:29 am, Tom Chubb wrote:
> > I am looking to buy a Mac in a couple of weeks primarily for writing
> > music
> > using Apple Logic Studio 8 which will run absolutely fine on a
On 31/01/2008, Colin Guthrie <[EMAIL PROTECTED]> wrote:
>
> Tom Chubb wrote:
> > Thanks for all your responses.
> > Rich, I guess you're right! Anyway PHP is only a hobby for personal
> sites,
> > so I shouldn't really worry too much but wanted to get a g
Can anyone recommend anything that would be good to use on an existing
mailing list that is a few years old and didn't have any bounce handling?
On 27/03/2008, Manuel Lemos <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> on 03/26/2008 02:28 PM Al said the following:
> > I'm scripting a simple registry w
>
>
> Do any of you know?
>
>
>
> And what % of the web market share does PHP take?
>
>
>
>
>
> Thanks,
>
> Thiago Pojda
>
>
Wasn't there something you could append to any file in the URL that
would show if it had been parsed using PHP?
"remote" and "local".
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Are you using the correct syntax?
Make sure you are specifying the remote file first, then the local file.
ftp_put($conn_id, $remote_file, $file, FTP_ASCII)
--
Tom Chubb
[EMAIL PROTECTED]
gh and I created a regexp, but I found that some people
call the img tag differently such as:
Does anyone have experience of this? How can I create a regexp that will
find it in every case?
Thanks in advance.
Tom
--
Tom Chubb
[EMAIL PROTECTED]
General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Tom Chubb
[EMAIL PROTECTED]
07915 053312
= ' http://dinki.mine.nu/weblog/';
else $url_test = $_SERVER['HTTP_REFERER'];
$new_title = return_title ($url_test);
//print $new_title;
$new_name = stripslashes("$new_title\n");
$new_URL = stripslashes("$referer\n");
fwrite($fp,$new_URL);
fwrite($fp,$new_name);
fclose($fp);
$fp = fopen($filename, "r");
$file = implode('', file ($filename));
$foo = preg_split("//",$file);
$number = count($foo);
//print $number;
if ($number > 11) {
fclose($fp);
$fp = fopen($filename, "w");
$count = $number - 10;
while ($count < $number) {
$print1 = $foo[$count];
$print2 = $foo[$count+1];
print " ";
print " $print2 <http://arif-blog.blogspot.com$print1/>"; //print $count;
$count += 2;
$new_name = stripslashes("$print2");
$new_URL = stripslashes("$print1");
fwrite($fp,$new_URL);
fwrite($fp,$new_name);
}
fclose($fp);
}
//print_r($foo);
else {
$count = 1;
while ($count <= $number) {
$print1 = $foo[$count];
$print2 = $foo[$count+1];
print " ";
print " $print2 <http://arif-blog.blogspot.com$print1/>"; //print $count;
$count += 2;
}
fclose($fp);
}
?>
On 05/07/06, Brian Dunning <[EMAIL PROTECTED]> wrote:
I have the source of a web page stored in $here and I want to set
$this to whatever appears between '' and ''. Example:
$here contains (amid tons of other stuff): This is a statement.
I want to set $this to "This is a statement." Seems simple but I'm
banging my head against a wall and can't figure out how to do it...
can anyone help out a dude on the 4th of July?? :) :)
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Tom Chubb
[EMAIL PROTECTED]
07915 053312
I know this will be really simple, but I'm struggling to get my head round
the use of imagedestroy()
I have some code which uploads an image, resizes to create a smaller image
and thumbnail then deletes the source image.
My question is which images need to be destroyed?
I've read the even reusing
On 15/08/06, John Meyer <[EMAIL PROTECTED]> wrote:
I have a script to list the files in a directory:
And all I am getting are "1"s. I think I'm doing it right, what is the
disconnect?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
This is a really stupid question, but I've not been able to find an
answer for it.
I have always thought that your max upload size is limited to the
value in the php.ini file.
However I recently changed a site to a new server which had problems
with memory on one of the image resizing scripts.
I m
I have just encountered a fatal error using file_put_contents() on a PHP4 box.
After a bit of research I found a simple function within the php.net
user comments.
I just wanted to know what happens if I then tried to run this script
on a PHP 5 box, whereby I'd be defining a function that already
e
Posts like this are what makes this list so great!
It's better to read this here than experience it first hand!
Thanks Tedd, for highlighting the problem.
Tom
On 14/11/06, tedd <[EMAIL PROTECTED]> wrote:
At 9:13 PM + 11/14/06, Stut wrote:
>Ok, so badscript.php is a bad name for this script.
On 15/11/06, Programmer <[EMAIL PROTECTED]> wrote:
Problem solved: the reason print($url) caused the program to work is because
the page calling Secure_Login no longer existed and therefore the print
forced a die--I assume. I included a die in the redirect function and all
was well. Including d
I am trying to read the contents of a "PHP" page for an audio player
and put it into a textarea to be copied and pasted into an "HTML"
page.
The trouble is the textarea shows unparsed PHP code and I just want the HTML.
The code is:
$player = file_get_contents('player.php');
//Strip out unnecessa
r, you're almost certainly asking the
> wrong question. -- Rasmus Lerdorf, BDFL of PHP
indeed eval is probably not the answer.
>
> (Hmmm...)
>
> Any help much appreciated.
>
> Tom
>
--
Tom Chubb
[EMAIL PROTECTED]
07915 053312
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bject ok, but I'm
echoing variables in player.php.
$song_url & $song_title, are read from a seperate file after upload
and that is what's being updated by this script, but the textarea was
showing the php code.
Thanks for your patience, guys.
T
On 16/11/06, Jochem Maas <[EMAIL PRO
Choose one of the following, but if you are getting warnings,
something is wrong and you should address it.
On 16/11/06, Stein Ivar Johnsen <[EMAIL PROTECTED]> wrote:
Hi..
How can I hide Warning messages so they are not shown on screen..:
Warning: Call-time pass-by-reference has been deprecat
On 17/11/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
Tom Chubb wrote:
> Confused!
> I'm now getting:
> file_get_contents(http://www.tnhosting.co.uk/scripts/gclub/player.php)
> [function.file-get-contents]: failed to open stream: Connection
> refused in
> /home/site
Very interesting!
I have a reseller account and on another site, the DNS entries were
messed up by the host. Could be a similar problem.
Thanks
On 17/11/06, Stut <[EMAIL PROTECTED]> wrote:
Tom Chubb wrote:
> Confused!
> I'm now getting:
> file_get_contents(http://www.tnh
The host support team told me that:
Our servers do not allows a HTTP connection onto itself. This is a
security precaution to stop recursive code. You can try to reference
the code by path rather than HTTP
...which works fine!
On 17/11/06, Tom Chubb <[EMAIL PROTECTED]> wrote:
Very inter
What would be the best way to retrieve a list of files from an upload
folder that are called "id" where the extension could be .doc .txt or
.pdf
For example, I have a folder where people can upload a document and
the document is renamed as their user id. They can upload a PDF, DOC
or TXT file. The
, GLOB_BRACE) as
$filename){
$pics[]=$filename;
}
vincent
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Tue 28/11/2006 10:59
To: Tom Chubb
Cc: [php] PHP General List
Subject: Re: [PHP] Readdir
Tom Chubb wrote:
> What would be the b
On 28/11/06, Dave Goodchild <[EMAIL PROTECTED]> wrote:
Hi all. I am building a web app and as part of it advertisers can upload
their ad image and website URL to go with their ad. Is there a good way to
detect whether that site is a porn site via php?
--
http://www.web-buddha.co.uk
I remember
Got it working fine. Thanks Vincent and Jochem for pointing me in the
right direction. Here is the code I used in case anyone's
interested...
$cv";
echo "";
}
echo "\n";
$i++;
}
?>
On 28/11/06, Tom Chubb <[EMAIL PROTECT
Please can you help me. I've created a page where problems are posted into a
database and I am using the datetime format in MySQL and trying to find the
best way to display it in the 17/03/06 format.
I've found a way of doing it (so you don't think I haven't googled, RTFM)
but don't think it's the
Thanks guys.
On 17/03/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
>
> select date_format(date,"%d/%m/%y") as date from table
>
> It'll show in 17/03/06 format
>
> select date_format(date,"%d/%m/%Y") as date from table
>
>
to have my include files in a
> >>>> common place that works and keeps the links right.
> >>>>
> >>>> Scandog
> >>>
> >>>
> >>> Ok, I this may only help part of your problem. Within your "menu.php"
> >>> file, you could make all the links absolute:
> >>>
> >>> Place A
> >>> Place B
> >>>
> >>> instead of relative:
> >>>
> >>> Place A
> >>> Place B
> >>>
> >>> That means you can use only 1 menu.php file and all the links will
> >>> work from wherever. Of course, this does not fix this issue:
> >>>
> >>> or
> >>> or
> >>>
> >>>
> >>> for each of your files that includes the menu. Maybe another clever
> >>> person has an idea.
> >>>
> >>> ~Philip
> >
> > --PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Tom Chubb
[EMAIL PROTECTED]
07915 053312
t;
> > Scandog
> >
>
> I didn't see anybody else mention this, so:
>
> $mydir = dirname(__FILE__);
> include($mydir . '/../nav/menu.php');
>
> works every time and you don't have to rely on document_root being set
> properly etc.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Tom Chubb
[EMAIL PROTECTED]
07915 053312
Image3:
I've been slaving away for an hour and it's probably something really
obvious but I'd really appreciate it if someone could point it out to me
please?
Previously I was getting an "image1 cannot be null" error which I couldn't
work out either. That's gone, but I still can't work out what's going on.
Many thanks,
Tom
--
Tom Chubb
[EMAIL PROTECTED]
07915 053312
[EMAIL PROTECTED]> wrote:
>
> why do you have single quotes around year?
> -B
>
> Tom Chubb wrote:
>
> >I'm working on an insert record page with a multiple file upload script
> of
> >which I understand the fundamentals.
> >However, on submission I am ge
the field in the DB isn't numeric this would be
> > '{$_POST['model']}'
> >
> > Dan
> >
> > ---
> > http://chrome.me.uk
> >
> >
> > -Original Message-
> > From: Joe Henry [mailto:[
t it out? Is it just as a regulat font, or do I need
> some special bar code lib?
>
> Thanks for your time
>
> Best regards Emil
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Tom Chubb
[EMAIL PROTECTED]
07915 053312
I can't work out how to load the text from a recordset result into a
variable for sending using mail in a script.
I have a script which creates a dynamic table then I want to load the
table's HTML into a variable which will be echoed in the mail function.
I can't work out how to do this.
I've trie
1 - 100 of 129 matches
Mail list logo