[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

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

Re: [PHP] problem with sending AT command in php

2011-11-18 Thread a dehqan
Quadling wrote: > On 15 November 2011 15:12, Mike Mackintosh > wrote: > > > > > > On Nov 15, 2011, at 8:25, Richard Quadling wrote: > > > >> On 15 November 2011 11:50, a dehqan wrote: > >>> \n is for Linux > >>> \r is for Windows

Re: [PHP] problem with sending AT command in php

2011-11-15 Thread a dehqan
\n is for Linux \r is for Windows On 11/14/11, Richard Quadling wrote: > On 12 November 2011 20:02, a dehqan wrote: >> dio_write($handle, 'AT') & dio_write($handle, "AT") make firefox times out >> on Waiting for localhost ... . >> But dio_write($h

Re: [PHP] problem with sending AT command in php

2011-11-12 Thread a dehqan
dio_write($handle, 'AT') & dio_write($handle, "AT") make firefox times out on Waiting for localhost ... . But dio_write($handle, "AT\n") makes it prints AT exactly the same command or A > A , .. On Sat, Nov 12, 2011 at 10:02 PM, Negin Nickparsa wrote: > are you sure about ATD03518726535\

[PHP] problem with sending AT command in php

2011-11-12 Thread a dehqan
In The Name Of Allah The compassionate merciful Hello ; Am trying to send AT commands to my GSMmodem device , in linux with PHP Am sure it is /dev/ttyusb1 But with [URL="http://pastebin.com/aut4ygXf"]this code[/URL] device respond the same command and code prints that command e.g if we send ATD00

[PHP] Learn how to have a smooth skin

2011-09-04 Thread Learn how to have a smooth skin
Learn how to have a smooth skin. http://www.removehair.xhost.ro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to have a smooth hairless skin

2011-09-03 Thread How to have a smooth hairless skin
How to have a smooth hairless skin. Hairless in the bikini zone. Click here: http://www.removehair.tk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] executing external php script

2011-03-02 Thread ƒAƒ‹ƒxƒ‹ƒg
hi! what I want to do is execute php script and don't wait for output. found something like this - > /dev/null 2>&1 &`; ?> text - it works but I 'm curious about php synt

Re: [PHP] ldap_add - Server is unwilling to peform

2011-01-26 Thread a...@ashleysheridan.co.uk
You could add a line in to your code: include "ldap-blue-pill"; That should fix any performance issues ;) (note, I did try posting earlier with a much funnier reply, but the email was rejected because of a certain 'v' word!) Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] Installing PEAR

2011-01-25 Thread a...@ashleysheridan.co.uk
d into your app directories or in an include path that apache is aware of and things will just work, so that might be a viable solution if the repositories don't work out. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Shawn McKenzie" Date: Tue, Jan 25, 2011 1

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

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

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] 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] 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] 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] 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] 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] 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] 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] 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: 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] 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: [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] "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] "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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] enabling domdocument

2010-07-19 Thread Michael A. Peters
nfigure line in phpinfo() still says --disable-dom! Yes. I'm quite familiar with the rpm build process for php. The initial build of php is without support for any of the modules. Then the modules are built. So the configure command for the core php apache DSO has just about everything disa

Re: [PHP] Stumped - MDB2 & pgsql

2010-07-15 Thread Michael A. Peters
Michael A. Peters wrote: Michael A. Peters wrote: I need to switch from MySQL (where everything is peachy) to Postgresql - reason I need to switch is I need to use PostGIS and I don't see a need to run two databases. I got Postgresql installed (stock CentOS / RHEL 5) and installe

Re: [PHP] Stumped - MDB2 & pgsql

2010-07-15 Thread Michael A. Peters
Michael A. Peters wrote: I need to switch from MySQL (where everything is peachy) to Postgresql - reason I need to switch is I need to use PostGIS and I don't see a need to run two databases. I got Postgresql installed (stock CentOS / RHEL 5) and installed the postgresql php module and

[PHP] Stumped - MDB2 & pgsql

2010-07-15 Thread Michael A. Peters
I need to switch from MySQL (where everything is peachy) to Postgresql - reason I need to switch is I need to use PostGIS and I don't see a need to run two databases. I got Postgresql installed (stock CentOS / RHEL 5) and installed the postgresql php module and mdb2 driver. Restarted th

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Michael A. Peters
gories, without many of those mentioned filters, later grew to its current state. I don't know about the proposed scenario you give. But I do know when my own site felt a little sluggish, I implemented APC and a cron job that preloads all the queries at the beginning of the day. Any chang

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Michael A. Peters
Tommy Pham wrote: On Tue, Mar 23, 2010 at 3:33 PM, Per Jessen wrote: Tommy Pham wrote: On Tue, Mar 23, 2010 at 2:04 AM, Per Jessen wrote: Use the right tool for the right job - PHP is a scripting/interpreted language, it does not need threading (IMO of course). -- Per Jessen, Zürich (9.4

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Michael A. Peters
Rene Veerman wrote: But i've yet to find a way to keep global objects in memory between http requests, outside $_SESSION, which i believe is just stored to- and loaded from disk between http requests. You can store sessions in a cache and avoid the disk IO. -- PHP General Mailing List

Re: [PHP] PHP SMTP Mailers

2010-03-22 Thread Michael A. Peters
King Coffee wrote: Hi, I'm executing a third-parity standard PHP application on a Windows IIS 7 shared hosting server. I need to convert, or use, a SMTP mailer service. I found two SMTP PHP scripts - I think may work. The sourceforge.net PHPMailer project and the pear.php.net

Re: Fwd: Re: [PHP] any reason *not* to use PEAR DB module when accessing mysql?

2010-03-19 Thread Michael A. Peters
Nilesh Govindarajan wrote: On 03/20/2010 02:31 AM, Michael A. Peters wrote: Mattias Thorslund wrote: Robert P. J. Day wrote: (just a warning -- as a relative newbie to PHP, i'll probably have the occasional dumb question. just humour me.) i'm looking at some existing PHP code that

Re: [PHP] any reason *not* to use PEAR DB module when accessing mysql?

2010-03-19 Thread Michael A. Peters
Mattias Thorslund wrote: Robert P. J. Day wrote: (just a warning -- as a relative newbie to PHP, i'll probably have the occasional dumb question. just humour me.) i'm looking at some existing PHP code that accesses a mysql 5.0 db, and it's coded using the mysql

Re: [PHP] Re: PHP in HTML code

2010-03-19 Thread Michael A. Peters
ut if releasing php code for public consumption, I guess I'm a preacher asking people to get religion, because short tags do not belong in projects that are released to the public. Just like addslashes and magic quotes and most html entities should not be used in php code released for publ

Re: [PHP] XML functions

2010-03-06 Thread Michael A. Peters
Andre Polykanine wrote: Hello Ahmad and all, I will expand a little bit your question joining to it: what is the better technique to make an RSS feed on the website? The website is manually written, no CMS. I wrote a class to do it - http://www.phpclasses.org/browse/package

Re: [PHP] XML functions

2010-03-06 Thread Michael A. Peters
els it needs to do this, but it apparently does in some cases. For those cases, I currently use hackish workarounds where I remove the namespace with a preg_replace before import into the DOM and then add the namespace again using the DOM tools after it has been imported. Where I have run in

Re: [PHP] PEAR clases don't work with PHP 5.3

2010-03-05 Thread Michael A. Peters
Martín Marqués wrote: A few days ago I upgraded my development server with PHP 5.3, and found that some pear packages stopped working giving FATAL ERRORs, like this (this one is from package Image_Graph): PHP Fatal error: Call to undefined method Image_Graph_Plotarea_Element

Re: [PHP] svg 2 gif/png

2010-03-03 Thread Michael A. Peters
Michael A. Peters wrote: Michael A. Peters wrote: Michael A. Peters wrote: *snip* Is there an easy way around this? IE a php class/function that understands SVG w/ xlink and can replace the use tags with the polygons they refer to? If not, I'll have to try to write one, but I'd

Re: [PHP] svg 2 gif/png

2010-03-03 Thread Michael A. Peters
Michael A. Peters wrote: Michael A. Peters wrote: *snip* Is there an easy way around this? IE a php class/function that understands SVG w/ xlink and can replace the use tags with the polygons they refer to? If not, I'll have to try to write one, but I'd rather not ... I just di

Re: [PHP] svg 2 gif/png

2010-03-03 Thread Michael A. Peters
Michael A. Peters wrote: *snip* Is there an easy way around this? IE a php class/function that understands SVG w/ xlink and can replace the use tags with the polygons they refer to? If not, I'll have to try to write one, but I'd rather not ... I just did, haven't tested ye

[PHP] svg 2 gif/png

2010-03-03 Thread Michael A. Peters
I'm moving all of my dynamic image generation to svg. Not only does it look better, but it is less resource intensive on my server allowing me to generate the svg on demand instead of pre-generating (via cron) twice a month like I had to do with gd dynamic generation. However, some bro

Re: [PHP] Re: UK Project Opportunity

2010-02-17 Thread Michael A. Peters
Daniel Brown wrote: On Wed, Feb 17, 2010 at 16:23, Manuel Lemos wrote: What about you? How many times have you shared your Open Source code? HA! That's hilarious that you would say that to *me.* I actually laughed out loud. I'll probably do it a few more times before the

Re: [PHP] loadXML() and namespace

2010-02-17 Thread Michael A. Peters
Michael A. Peters wrote: It seems that if I use loadXML($string) and the $string has a namespace defined in it, domdocument is nuking the namespace and changing the nodenames from whatever to defaultwhatever. Example - http://www.w3.org/1998/Math/MathML";> *snip* would get

Re: [PHP] Re: UK Project Opportunity

2010-02-16 Thread Michael A. Peters
Nathan Rixham wrote: You make every interaction with your site a horrible, painful interaction that is purely there to get as many adverts as you can in front of people, so that you can bleed every cent possible from the hard work and effort of PHP developers and innocent users. In short, you

Re: [PHP] FTP Site

2010-02-16 Thread Michael A. Peters
Ben Miller wrote: Hi, I'm building a site for a client that has a need to allow their users to upload large files (up to 100mb or more) and store them on the server. I've never had a need to work with PHP's FTP functions until now and, before I go reading the manual to lear

  1   2   3   4   5   6   7   8   9   10   >