Re: [PHP] Storing values in arrays

2007-01-17 Thread Ryan A
Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 00:35 -0800, Ryan A wrote: > Hi, > > I think its easier to explain what I want to do.. so here goes: > I want to store values in arrays for one minute and then write them to file. > > For example, eve

Re: [PHP] Storing values in arrays

2007-01-17 Thread Ryan A
> Hey! > Thanks for replying. > > Instead of CRON i was thinking of having a file created and check the > creation time everytime someone logged in... if its less than 1 min > then don't do anything, if 1 min or more old... write file... But then it wouldn't be writ

Re: [PHP] Storing values in arrays

2007-01-18 Thread Ryan A
tedd <[EMAIL PROTECTED]> wrote: At 7:15 AM -0800 1/17/07, Ryan A wrote: >True, but thats not the most important part... I guess I wrote it >wrong, I meant that it should not write to disk before 1 minute... >anyway... about the "array saving" any ideas? > >Th

Re: [PHP] Storing values in arrays

2007-01-18 Thread Ryan A
Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 07:15 -0800, Ryan A wrote: > > Hey! > > Thanks for replying. > > > > Instead of CRON i was thinking of having a file created and check the > > creation time everytime someone logged in... if i

Re: [PHP] OT - Leaving

2007-01-24 Thread Ryan A
Who the f*/k are you? and why should we remember you Hehe just kidding, you may have not posted a lot in the last year but you have helped me many times before thatwhich I really appreciate. Thanks for your help mate, and I hope you have success in whatever you decide to do. Cheers! R

Re: [PHP] OT - Leaving

2007-01-24 Thread Ryan A
FYI, for the noobs, the John and Jason referenced in the email are John Holmes and Jason Wong. Yep, two of the "big" guys without who... many would have taken a muchh longer path to learning php, including me. I dont know if theres a "list heroes" list, but if there is

[PHP] Rory Browne from this php list (0.T)

2007-01-27 Thread Ryan A
Hello! As some of you might remember: a little while back I had a project to be done in PHP, which I asked if anyone on the list would be interested in completing for $800 USD. Rory Browne from the list got the job and around the 15th of Jan he told me he completed the work and was going to

[PHP] Reading from the htpasswd file

2007-02-02 Thread Ryan A
Hey, *** Warning: feeling a bit braindead today after working long hours yesterday so please excuse if some parts are crappy*** I have a pal who uses a htpasswd file for access to his site.. rather than using basic_auth he wants to change it to form based _without_ a DB (ie user comes to his

Re: [PHP] Reading from the htpasswd file

2007-02-03 Thread Ryan A
preg_* statements leave me pretty much clueless... I know, I should learn) If you (or anybody) wants to chip in any additional advise snippets, please go ahead. Cheers! R Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, February 2, 2007 8:17 am, Ryan A wrote: > I have a pal who uses a

[PHP] JS prompt -> php

2007-02-07 Thread Ryan A
Hey all! Quick question (and hopefully a simple one) I have a link on a page, when the client clicks that link it should show them a JS prompt and ask for their name (so far I have done this) When they write their name, I want that data to be sent to my php script via AJAX (yes?) so the page

Re: [PHP] JS prompt -> php

2007-02-08 Thread Ryan A
Hey Tedd, Thanks for replying. The problem is, I know how to do this via a drop down select box and a text box... I want to do this via a javascript prompt, which is where I am getting stumped. Cheers! R tedd <[EMAIL PROTECTED]> wrote: At 5:11 AM -0800 2/7/07, Ryan A wrote: >Hey all!

Re: [PHP] Re: JS prompt -> php [become 0T]

2007-02-10 Thread Ryan A
Hey Colin, Thanks for replying. I guess this has sidelined from php a bit now... so have added a OT in the subject line. Anyway, this is how I get the values from a select or a text box: var selectBox = document.forms[0].lang;user_input = selectBox.options[selectBox.selectedIndex

[PHP] Language construct

2007-02-20 Thread Balasubramanyam A
Hello all, I'm new to this group and I'm learning PHP. I want to know what is the exact definition for "Language Construct". Could someone please explain about this?

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-22 Thread Ryan A
hese work fine. > > > > Best Regards > > Scott. > > > > -- > 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] auction scripts?

2007-02-28 Thread Lisa A
I have a client that bought some property that he'd like to have a website and have people bid on the land? Does anyone know of any software or could write something simple for me to put this on his site? thanks, Lisa A -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] auction scripts?

2007-03-01 Thread Lisa A
I wasn't even aware of anything but Ebay, but the client has seen sites that have online bidding. I just wanted to see what was out there, because I didn't have a clue and don't have the time to spend on creating something, unless there was software out there. He just wants s

[PHP] Matching logins to an old htpasswd file

2007-03-03 Thread Ryan A
Hey, I have a old htpasswd file with a lot of logins in this format: test:dGRkPurkuWmW2 (test:test) test1:dGlAW3zdxeAG2 (test1:test1) now I have a login form what takes a POST "user" and a POST "pw"... but if you look at my above first example login.. the username and pass

[PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Ryan A
Hey all! Quick question, one of our sites already uses BASIC_AUTH to take the username and pass from clients, we were thinking of instead doing it via a login form (so we can also add a CAPTCHA later...if needed) what I would like to know is, by using a login form instead of a BASIC_AUTH are

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Ryan A
Hi guys, Thank you for your responses and your input. "At the end of the day the best way to secure data being transferred from client to server is to use SSL." THAT I know ;) was just wondering from a normal http page... and you answered that question perfectly...so thanks aga

[PHP] Array help

2007-03-04 Thread Ryan A
Hi! I have a login/password file with these kind of values: user1:pass1 user2:pass2 cat:dog love:hate I have opened the file and put it into an array with this code: (thanks to richard lynch from this list for idea and code snippets) $file = file_get_contents('a.htpasswd'); preg

Re: [PHP] Array help

2007-03-04 Thread Ryan A
Hey Stut, Thanks for replying. Will be making two versions, one with a DB and one to work with the file for the old school folks who dont want to convert their file and use "new fangled" databases... some people its easier to just not argue or try to convince... and however stupid

Re: [PHP] Array help

2007-03-04 Thread Ryan A
Hey! Thanks Stut, Tijnema. I'll test out the ideas you guys contributed to me.. after I finish a working copy will ask you guys to give it a look over ;) @Stut: The list is not in alphabetical order.. and 2, I have no idea of the size of the file (for the regex suggestion) but I am gue

[PHP] Login should not allow users to login if the application is logged in with the same login credentials

2009-08-27 Thread Balasubramanyam A
Hello, I've written a simple application, where users need to login to access the features of the application. I want to develop login system such that, if user is already logged in, the application should not allow the users to login with the same login credentials. How do I accomplish

[PHP] exec() problem

2009-11-14 Thread A. Mannini
Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l so i used exec("sudo run /usr/lib/mailman/bin/find_member -l ",$output) and set /etc/sud

[PHP] exec() problem

2009-11-14 Thread A. Mannini
Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l so i used exec("sudo run /usr/lib/mailman/bin/find_member -l ",$output) and set /etc/sud

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unescaped character that is causing an issue Thanks, Ash http

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] exec() problem [SOLVED]

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

[PHP] fpassthru() error after update

2009-12-12 Thread A. Mannini
Hi, i use fpassthru() to "stream" video files in my webserver. I worked fine for weeks but yesterday, after updating the webserver, i get the error "Allowed memory size of 268435456 bytes exhausted (tried to allocate 1729609729 bytes) in ." Now PHP version is 5.2.11. Any ideas? Thanks

Re: [PHP] fpassthru() error after update

2009-12-12 Thread A. Mannini
Vincent Tumwijukye ha scritto: This means that buffered video exceeded your memory limitof 260MB set in your php.ini. Consider increasing it to higher value, if your computer has say 1GB or more of RAM. Kind regards Dear Vicent, i know what the error message is saying but...before upgrading

Re: [PHP] a test (list is too quite)

2010-09-04 Thread a...@ashleysheridan.co.uk
http://www.bash.org/?quote=76416 Meant to post this on Friday, but it works well here too! Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "chris h" Date: Sat, Sep 4, 2010 19:42 Subject: [PHP] a test (list is too quite) To: On Sat, Sep 4, 2010 at 2:2

Re: [PHP] Error in initialising XML parser

2010-09-06 Thread a...@ashleysheridan.co.uk
PHO won't automatically include a class file by default. You either need to manually include it with a require, include it or require_once line, or use an automagical include script. As it stands, you're getting the error because php doesn't know where your class is. T

Re: [PHP] Hi

2010-09-06 Thread a...@ashleysheridan.co.uk
I think you should not focus so much on the file extension, as that is mostly meaningless if someone wanted to attack your system. Instead, you could wrap a call to the command line 'file' command, which gives mostly accurate information about a file. Basically it reads the first few

Re: [PHP] Hi

2010-09-06 Thread a...@ashleysheridan.co.uk
As far as I can remember It's supplied by the client user agent, hence the big issue with jpeg images uploaded by IE, as it uses a different type to all the other browsers. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Richard Quadling" Date: Mon,

Re: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-08 Thread a...@ashleysheridan.co.uk
Could it be that there are connection limits on the remote server? Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Bob McConnell" Date: Wed, Sep 8, 2010 18:24 Subject: [PHP] Broken pipes, time outs, PHP, and mail To: From: Dave M G > I have a set of

Re: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-08 Thread a...@ashleysheridan.co.uk
In order to help we really need to have a look at the code in question. You say the code is derived from another class you downloaded. Are you able to post the important bits of it in an email, or put it all on a pastebin? Thanks, Ash http://www.ashleysheridan.co.uk - Reply message

Re: [PHP] Handling multiple form fields

2010-09-10 Thread a...@ashleysheridan.co.uk
How are you deciding what form fields are being put in the form? There are plenty of scripts out there which can output and validate forms, but you might need to be a bit specific about what you want. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Abah J

Re: [PHP] re: logical AND assignments

2010-09-10 Thread a...@ashleysheridan.co.uk
Stay off those red pills David! Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "David Harkness" Date: Fri, Sep 10, 2010 18:54 Subject: [PHP] re: logical AND assignments To: "Robert E. Glaser" Cc: On Fri, Sep 10, 2010 at 8:22 AM, Robert E. Glaser wrote: > It's ha

Re: [PHP] newbie question about code

2010-09-10 Thread a...@ashleysheridan.co.uk
It's object oriented code. $code is an instance of class, and do_command() is a method if that class. I'd advise reading up on oop php. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Adam Williams" Date: Fri, Sep 10, 2010 19:27 Subject: [PHP] n

Re: [PHP] newbie question about code

2010-09-10 Thread a...@ashleysheridan.co.uk
" , "PHP General list" Bob- Yes, yes I did. And note that my Java code is incorrect, that should simply be public static void, no function. This is what I get for taking a week to code everything in Node.js. Regards, -Josh Joshua Kehn | josh

Re: [PHP] Disabling an extension on a perdir basis.

2010-09-11 Thread a...@ashleysheridan.co.uk
: "Richard Quadling" Date: Sat, Sep 11, 2010 11:11 Subject: [PHP] Disabling an extension on a perdir basis. To: "PHP General list" Hi. Can't seem to see a way to do this. Is there a way to do this? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html

Re: [PHP] Elegance is the goal... Sticky form submit help

2010-09-11 Thread a...@ashleysheridan.co.uk
For a month selector, using a loop to output the months is good, as you can then within the loop check for that value sent and set the selected html attribute for that select element. I should warn you that your code will throw a warning when no data has been posted to it. Consider using isset

Re: [PHP] Auto-generating HTML

2010-09-20 Thread a...@ashleysheridan.co.uk
Auto-generating HTML To: "PHP General list" Hey folks, I have the feeling this is a stupid question, but I can't even find anything about it. Maybe I'm just not searching for the right things. Here's the problem. I'm writing a lot of pages, and I hate going in

Re: [PHP] Auto-generating HTML

2010-09-20 Thread a...@ashleysheridan.co.uk
0, 2010, at 2:56 PM, Andy McKenzie wrote: > Hey folks, > > I have the feeling this is a stupid question, but I can't even find > anything about it. Maybe I'm just not searching for the right things. > > Here's the problem. I'm writing a lot of pages,

Re: [PHP] module add on Suse 10.3

2010-09-23 Thread a...@ashleysheridan.co.uk
n Suse 10.3 To: "PHP General" Hi everybody, I am using Open 10.3 with KDE 3.5.10 on an x86_64 system. I want to use the function "http_post_data()" from module "pecl_http" (in a script called from shell, which could be an important detail...). An

Re: [PHP] module add on Suse 10.3

2010-09-23 Thread a...@ashleysheridan.co.uk
[PHP] module add on Suse 10.3 To: Le jeudi 23 septembre 2010, a...@ashleysheridan.co.uk a écrit : > Suse uses yast2 iirc, which you can use to list and install php modules. > Search for 'php' in yast software manager module. -- Thanks Ash, I id'nt fin

Re: [PHP] Array question

2010-09-26 Thread a...@ashleysheridan.co.uk
I'd also like to add to that: $array = array(); $array[] = 'text'; $array[2] = 123; $array[] = 'hello'; Would output: $array( 0 => 'text', 2 => 123, 3 => 'hello', ); Note the missing index 1, as php makes a numerical index that is one gr

Re: [PHP] Php Newsletter script

2010-09-27 Thread a...@ashleysheridan.co.uk
It's probably worth noting that very few email clients in use actually observe xhtml. When creating html emails you have to step back a half dozen years for outlook, which is the current dominant client because of offices. Essentially, its back to basics, with tables for layout, font tags

Re: [PHP] Php Newsletter script

2010-09-28 Thread a...@ashleysheridan.co.uk
Still hit and miss though, outlook is just one if many email clients out there. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Richard Quadling" Date: Tue, Sep 28, 2010 10:17 Subject: [PHP] Php Newsletter script To: "a...@ashleysheridan.co.uk"

Re: [PHP] Which PHP 5.3 documentation generators have you found?

2010-09-29 Thread a...@ashleysheridan.co.uk
Does phpDocumenter not do the trick? I must admit, I've not tried anything specific to 5.3 (i can imagine the namespace thing would be a major part if the documentation) but its served me well with other php5 code. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message -

Re: [PHP] Syntax Error

2010-10-04 Thread a...@ashleysheridan.co.uk
Switching to pdo won't necessarily remove sql errors any more than using a php framework will remove php errors. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "kranthi" Date: Mon, Oct 4, 2010 09:04 Subject: [PHP] Syntax Error To: Cc: "chris

Re: [PHP] Connecting to MySql with PHP

2010-10-04 Thread a...@ashleysheridan.co.uk
Have you installed the php mysql module? Basically, it tells php how to connect to mysql. This question has come up a few times this week, have you tried installing something like xampp or easyphp rather than the individual software components: Apache, php & mysql. Thanks, Ash

Re: [PHP] Re: Continuance of the struggle (trying to understand)

2010-10-07 Thread a...@ashleysheridan.co.uk
It will only work if your listing supports php, but you should just be able to put the whole sure up on your hosting, give the upload directory the correct permissions ( its most likely a more secure Linux hosting than insecure windows hosting) Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] tedd's Friday Post ($ per line)

2010-10-07 Thread a...@ashleysheridan.co.uk
Surely it would have been a bit more sensible to work out the time the programmer had spent on the project and then calculate it as a percentage of the total time that programmer would spend on it to complete it (which might not be the whole duration of the project) Also, counting code lines

Re: [PHP] PHP and HBCI?

2010-10-08 Thread a...@ashleysheridan.co.uk
Fri, Oct 8, 2010 13:37 Subject: [PHP] PHP and HBCI? To: "PHP" Hello, is there a way to do HBCI banking with PHP? stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: zip and mac safari

2010-10-10 Thread a...@ashleysheridan.co.uk
Using the gz compression should be fine, as most browsers are able to open pages which use this compression mechanism. The only issue might possibly be windows, but I've had problems before on that where the built in xp zip reader wasn't able to 'see' the entire contents

Re: [PHP] Unknown Table i field list

2010-10-11 Thread a...@ashleysheridan.co.uk
That's the same query. One thing I did notice (and I wasn't sure if it was a typo as I saw a few in the original post) but you've used a period instead of a comma to separate the values in the query. It shouldn't produce the error you're seeing, but sometimes you neve

Re: [PHP] Scripts running twice

2010-10-12 Thread a...@ashleysheridan.co.uk
That's probably it then! Some browsers make multiple requests to speed up rendering of a page. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Alexis" Date: Tue, Oct 12, 2010 17:16 Subject: [PHP] Scripts running twice To: If you mean how am I

Re: [PHP] odd while behavior...

2010-10-16 Thread a...@ashleysheridan.co.uk
I wouldn't really use a while statement for this, but a for loop instead, as it needs less code: "; for($i =1;$i<=12;$i++) {     $dateformat = date("M", mktime(0,0,0, $i,0,0));     echo <<$dateformat $i HTML; } echo ""; ?> The other code was st

Re: [PHP] Questions from a Newbie

2010-10-17 Thread a...@ashleysheridan.co.uk
Linux can be run as a GUI, using a window manager. Aside from that, have a look at the manual pages on php.net, which give some good examples of how to use the various mysql functions. Also, on your development machine, its a good idea to turn on errors, as it can indicate where these problems

Re: [PHP] PDO working via Apache but not at the command line?

2010-10-18 Thread a...@ashleysheridan.co.uk
It's most likely because both cli and web modules are using different php.ini config files. See what the output of a phpinfo() call in both browser and command line. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Scott Baker" Date: Mon, Oct 18, 201

Re: [PHP] Formatting an ECHO statement.

2010-10-18 Thread a...@ashleysheridan.co.uk
Steady on now, this thread started as a php question, and has only deviated a little. Most people on the list don't work purely with php, and I for one dont mind the odd off-topic thread, especially when the majority of the list is made of good php threads. Thanks, Ash

Re: [PHP] I need some thoughts on code duplication and separation

2010-10-21 Thread a...@ashleysheridan.co.uk
Bit late to this one, but what about an mvc framework like codeigniter? It's perfectly acceptable to use if statements and loops in the view, which would solve your problem. You can set a trigger variable in the controller, and in the header view, check to see if its set and output

Re: [PHP] "My truth comes out" [1]

2010-10-21 Thread a...@ashleysheridan.co.uk
y truth comes out" [1] To: preg_match("/false/i", $string) ? false : true; On Thu, Oct 21, 2010 at 7:39 PM, Gary wrote: > Is there any nice way to convert a string containing either "TRUE" or > "FALSE" to a bool with the appropriate value? I know I can j

Re: [PHP] "My truth comes out" [1]

2010-10-21 Thread a...@ashleysheridan.co.uk
Because it is an if statement, just in a different form, and preg_match is more computational expensive than a direct string comparison. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Russell Dias" Date: Thu, Oct 21, 2010 11:03 Subject: [PHP] "My

Re: [PHP] Character encoding hell

2010-10-26 Thread a...@ashleysheridan.co.uk
s are saved as utf8, as that can sometimes solve some odd problems with character encoding. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Marc Guay" Date: Tue, Oct 26, 2010 18:00 Subject: [PHP] Character encoding hell To: "php-general" A

Re: [PHP] Character encoding hell

2010-10-26 Thread a...@ashleysheridan.co.uk
Where is the filename coming from? Is it hard-coded in the script or is your script reading it from a directory listing? Have you checked to see if that filename is what you think it is on the Linux server? Was Apache the web server both times, or was iis used on windows? If it was, look for

Re: [PHP] questions about if statements regarding a checkbox

2010-10-31 Thread a...@ashleysheridan.co.uk
What is the code you're using now? You have a syntax error, but without seeing the code, we are all left to guessing what the problem could be. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Ben Brentlinger" Date: Sun, Oct 31, 2010 03:56 Subject:

Re: [PHP] search is not case insensitive

2010-10-31 Thread a...@ashleysheridan.co.uk
This isn't a php question but a mysql one. Take out the lower() part of the sql statement, as like is case insensitive by default. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Dr Michael Daly" Date: Sun, Oct 31, 2010 04:47 Subject: [PHP] sea

Re: [PHP] include html

2010-10-31 Thread a...@ashleysheridan.co.uk
Hello, I am looking for a solution to inject some dynamic html into an iframe and rework the css from the results. Is there a way to do this in PHP? I am not talking about just using the src attribute of the iframe either. Basically, I want to call on a web page, grab the html code, replace th

Re: [PHP] a question about user and permission on linux

2010-10-31 Thread a...@ashleysheridan.co.uk
If its Apache on Linux (as most hosting will be) then the user will generally be either apache, www, or http. Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] a question about user and permission on linux

2010-10-31 Thread a...@ashleysheridan.co.uk
There isn't a php user. If php scripts are executed through the web server, they belong to the server. If they are cli scripts, then they belong to the user that executed them, or the user the process that executed them is running as. Thanks, Ash http://www.ashleysheridan.co.uk -

Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-01 Thread a...@ashleysheridan.co.uk
It's not to do with hosting, its an auto reply when you email sascha.braun which gave the same aware reply to me, and I'm on a Linux box at home! Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Ben Brentlinger" Date: Mon, Nov 1, 2010 08:29 Subj

Re: [PHP] Chinese words on a PHP web page

2010-11-04 Thread a...@ashleysheridan.co.uk
You could do it using the &1234; type codes, or copy it directly from another source, like a character map program. Bear in mind that if you do the latter, you'll need to output a utf 8 meta tag with the html output too. Thanks, Ash http://www.ashleysheridan.co.uk - Repl

Re: [PHP] Updating a GET variable

2010-11-09 Thread a...@ashleysheridan.co.uk
Don't think about it in those terms and you'll see why it wasn't working. Http is stateless, so unless you use sessions, it will 'forget' everything from page to page. What's wrong with just putting the url parameters in the link that you know you need, one by

Re: [PHP] question about preventing polling for more than once

2010-11-12 Thread a...@ashleysheridan.co.uk
daddy<http://polldaddy.com/account/home.php> has fascinating poll service. And I am just curious about how it prevents user from polling the same poll for more than once. Or more accurately, I am a dynamic IP user. And I found that if I have polled once for a certain poll and after some time, I ch

Re: [PHP] Re: String manipulation

2010-11-14 Thread a...@ashleysheridan.co.uk
on To: How would I write an IF statement that looks for the first space space (“ “) left of the 76th character in a string or , which ever comes first --- OR the end of the string (IE the string is less than 76 characters long? I specifically want is it’s character position in the stri

Re: [PHP] mysql help (sorry, a bit OT)

2010-11-16 Thread a...@ashleysheridan.co.uk
It's always best practice to have a staging server for testing these sorts of things. If in doubt, run it in a transaction, but don't commit it, I.e. roll it back. That way you'll see if it would run but nothing actually changes. Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] protecting email addresses on a web site

2010-11-16 Thread a...@ashleysheridan.co.uk
Sorry for top post on phone. Depending on the type of site and location an email address might be legally required. For example, a business website in the UK requires a value email address to be made accessible to all your visitors, which includes blind people, so no image-only addresses

Re: RES: [PHP] I am a Windows programmer and getting started on PHP

2010-11-19 Thread a...@ashleysheridan.co.uk
The reason you might run it on a vm is because not all operating systems are created equal. Things that work in Linux won't necessarily work on windows, and vice versa. If you're developing on the same type of platform as the live server, there is less chance of a problem rearing its

Re: [PHP] Fw: Spoofing user_agent

2010-11-25 Thread a...@ashleysheridan.co.uk
You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Ron Pigg

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread a...@ashleysheridan.co.uk
And the obvious difference, print returns true on success. I'm not sure what would cause an echo it print to ever fail, so it really doesn't make a huge difference. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Alexandru Patranescu" Date:

Re: [PHP] empty() in email message

2010-12-13 Thread a...@ashleysheridan.co.uk
How are these variables being given their values by php? If you're making use of register_globals then you're asking for problems. Perform some sanity checks on your data, like using a regex of /^\d+$/ to check for numerical values, and turn globals off; its a security breach waiting

Re: [PHP] All records not displaying...

2010-12-19 Thread a...@ashleysheridan.co.uk
re grabbing the first row with that $row= line, and not doing anything with it. Take that out and it should be ok. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Gary" Date: Sun, Dec 19, 2010 15:46 Subject: [PHP] All records not displaying... To: I have

Re: [PHP] Problem with Include

2010-12-19 Thread a...@ashleysheridan.co.uk
Is your server even set up to recognise .inc files as php? You can't just put any old extension on and expect the server to know what to do with it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Tamara Temple" Date: Sun, Dec 19, 2010 17:07 Subject: [PHP] Problem w

Re: [PHP] Problem with Include

2010-12-21 Thread a...@ashleysheridan.co.uk
(Apologies for top posting; on my mobile just now.) Not true. Refactoring code is one of the main tasks of a developer. None of us produce perfect code, and some code is less perfect than other code. It's instinct to want to fix bad code when we're maintaining it or having to add new

Re: [PHP] MP3 Player and PHP

2010-12-22 Thread a...@ashleysheridan.co.uk
You've missed a crucial part of php; its not a client-side language, its all run on the server. So you can't have a music player built in it running in a web browser. For that you need something like flash or java. There is a way potentially with html5, but not all support the tag

Re: [PHP] File-Upload per Drag-N-Drop?

2010-12-29 Thread a...@ashleysheridan.co.uk
On a slight tangent, but is that signature why I'm not able to read any of michelles emails on my phone? For some reason, only her emails get stuck and won't download, so I have to wait til someone else replies. To answer the question on this, I've not yet seen a cross platform

Re: [PHP] Regex for telephone numbers

2010-12-31 Thread a...@ashleysheridan.co.uk
Sorry for top-post, on phone. What about mobile phone numbers (cell phones you call them in the US) do they conform to the same format? I know there have been times myself when I've been without a landline number leaving me with only my mobile as a means of contact. Thanks, Ash

Re: [PHP] Re: Regex for telephone numbers

2010-12-31 Thread a...@ashleysheridan.co.uk
gt; Dear List - > > Thank you for all your help in the past. > > Here is another one > > I would like to have a regex which would validate that a telephone number is > in the format xxx-xxx-. > > Thanks. > > Ethan > > MySQL 5.1 PHP 5 Linux [Debian (sid)] &

[PHP] Blocking gethostbyname and Net_DNS2 behaviour

2012-09-11 Thread a m
Hi, I was using gethostbyname up until recently but switched to Net_DNS2 due to lack of support for a timeout. Now I discovered some "worrying" behaviour and hope someone here get shed some light onto it. I am running PHP inside an Apache 2 installation as module and noticed that o

[PHP] Re: Blocking gethostbyname and Net_DNS2 behaviour

2012-09-11 Thread a m
My apologies, it looks like it was a false alarm and the blocking actually comes from PHP's session manager. Sorry, Alexander On 11 September 2012 14:22, a m wrote: > Hi, > > I was using gethostbyname up until recently but switched to Net_DNS2 > due to lack of support for

[PHP] generate a thumbnail with imagick and place a logo on top

2012-10-03 Thread A Freund
Hello, I have a problem creating thumbnails with imagick. The code is working ok and the thumbnail is generated in the right size etc but when I try to place a PDF logo on the thumbnail it turns half transparent. I guess it has something to do with that the PDF file is generated in InDesign and

[PHP] Problem with variables

2013-06-25 Thread Fernando A
Hello, I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Thank you, very much! Ferd

Re: [PHP] Command line PHP

2011-01-07 Thread a...@ashleysheridan.co.uk
(sorry for top post, still not worked out how not to on phone) Can you not just code it like you normally would any app that doesn't use a framework? I've been writing some cli data importers at work. Basic really, with only classes used that I need, no framework needed (its very s

Re: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread a...@ashleysheridan.co.uk
give them their own pid (i believe, but not tested this) that let's you track them more easily. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Tanoor Dieng" Date: Mon, Jan 17, 2011 10:23 Subject: [PHP] How to get cpu consumption of a php script To:

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread a...@ashleysheridan.co.uk
you could use the chown method in php, which should do what you need. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Moses" Date: Tue, Jan 18, 2011 09:44 Subject: [PHP] [PHP]: permission problem www-data To: Hi Everyone, I am creating a file in PHP sc

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread a...@ashleysheridan.co.uk
Because the web server is what runs php as a module, and the web server has its own user for security reasons. You could try chmod but that is generally a last resort. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Moses" Date: Tue, Jan 18, 2011 10:

Re: RES: [PHP] email address syntax checker

2011-01-21 Thread a...@ashleysheridan.co.uk
ed in that! Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Alejandro Michelin Salomon" Date: Fri, Jan 21, 2011 12:14 Subject: RES: [PHP] email address syntax checker To: "'Donovan Brooke'" Cc: Donovan: Try this function EmailC

<    1   2   3   4   5   6   7   8   9   10   >