Re: [PHP] Imagick question

2009-11-05 Thread Ashley M. Kirchner
Brady Mitchell wrote: I'm sure it can be done, but without seeing your code we can't really help. Easily solved. From the PHP manual (http://www.php.net/manual/en/function.imagick-roundcorners.php): newPseudoImage(100, 100, "magick:rose"); $image->setImageFormat("png");

Re: [PHP] How do I get reliable COMPUTERNAME?

2009-11-05 Thread Jim Lucas
Andrew Ballard wrote: > I want to store the name of the computer that is executing a script in > some log tables. (Our servers are load balanced, and I'd like to be > able to determine which physical machine is serving each request.) > > On my development machine (Windows PC running the debugger i

Re: [PHP] Creating a Dynamic PHP/CSS Page (newbie design question)

2009-11-05 Thread cool
SORRY FOR THE EXTRA 2 BAD pre SENDS (accident...) Thank for all the help! Getting there... as a baby step - I'm trying this: (part of this is from - http://sperling.com/examples/pcss/) 1 - I created this style sheet page called css.php with these contents: .test1 {

Re: [PHP] Imagick question

2009-11-05 Thread Ashley Sheridan
On Thu, 2009-11-05 at 12:22 -0700, Ashley M. Kirchner wrote: > Brady Mitchell wrote: > > I'm sure it can be done, but without seeing your code we can't really > > help. > Easily solved. From the PHP manual > (http://www.php.net/manual/en/function.imagick-roundcorners.php): > > >

Re: [PHP] How do I get reliable COMPUTERNAME?

2009-11-05 Thread Andrew Ballard
On Thu, Nov 5, 2009 at 2:03 PM, Jim Lucas wrote: > Andrew Ballard wrote: >> I want to store the name of the computer that is executing a script in >> some log tables. (Our servers are load balanced, and I'd like to be >> able to determine which physical machine is serving each request.) >> >> On m

Re: [PHP] Creating a Dynamic PHP/CSS Page (newbie design question)

2009-11-05 Thread Shawn McKenzie
c...@hosting4days.com wrote: > SORRY FOR THE EXTRA 2 BAD pre SENDS (accident...) > > > Thank for all the help! > > Getting there... as a baby step - I'm trying this: > > (part of this is from - http://sperling.com/examples/pcss/) > > 1 - I created this style sheet page called css.php with thes

Re: [PHP] Creating a Dynamic PHP/CSS Page (newbie design question)

2009-11-05 Thread Ashley Sheridan
On Thu, 2009-11-05 at 14:13 -0600, Shawn McKenzie wrote: > c...@hosting4days.com wrote: > > SORRY FOR THE EXTRA 2 BAD pre SENDS (accident...) > > > > > > Thank for all the help! > > > > Getting there... as a baby step - I'm trying this: > > > > (part of this is from - http://sperling.com/examp

Re: [PHP] Imagick question

2009-11-05 Thread Ashley M. Kirchner
Ashley Sheridan wrote: Fill the background with white before you create the corners. Well, I tried that, with no luck. This is my actual code: $width = 150; $height = 150; $im = new Imagick('original/' . $filename); $im->thumbnailImage($width, $height, true); $im->s

RE: [PHP] Custom function for inserting values into MySQL

2009-11-05 Thread Daevid Vincent
> -Original Message- > From: Shawn McKenzie [mailto:nos...@mckenzies.net] > Sent: Thursday, November 05, 2009 6:14 AM > To: Daevid Vincent > Cc: 'Allen McCabe'; 'PHP General' > Subject: Re: [PHP] Custom function for inserting values into MySQL > > Daevid Vincent wrote: > > > > > >>

Re: [PHP] Creating a Dynamic PHP/CSS Page (newbie design question)

2009-11-05 Thread tedd
At 8:16 PM + 11/5/09, Ashley Sheridan wrote: On Thu, 2009-11-05 at 14:13 -0600, Shawn McKenzie wrote: > > Getting there... as a baby step - I'm trying this: > > > (part of this is from - http://sperling.com/examples/pcss/) > > You need to do the header() before anything else. I'm

Re: [PHP] Free tech talk by Percona tonight in Palo Alto, CA

2009-11-05 Thread Michael Shadle
On Tue, Nov 3, 2009 at 10:17 AM, Sam Ghods wrote: > Hi all, > > I would like to invite everyone to a Box.net sponsored free tech talk (and > free dinner!) in Palo Alto tonight on Goal Oriented Performance > Optimization, given by Peter Zaitsev of Percona, the leading MySQL/LAMP > performance consu

[PHP] question about smarty

2009-11-05 Thread Sudhakar
i am using smarty template engine at work place, following is the situation i already have 1 template that has already been created example = http://localhost/sites/template1.com this works fine following is the folder structure i have for smarty on xampp 1. C:\xampp\htdocs\sites\template1.com

Re: [PHP] Free tech talk by Percona tonight in Palo Alto, CA

2009-11-05 Thread Sam Ghods
You can see the slides from the talk here: http://assets.en.oreilly.com/1/event/27/Goal%20Driven%20Performance%20Application%20Paper.pdf Sam Ghods s...@box.net Box.net - Vice President of Engineering office: (877) 269-6736 ext. 60 fax: (650) 529-0392 On Nov 5, 2009, at 2:45 PM, Michael Sha

[PHP] Function Not Working...Little help

2009-11-05 Thread Don Wieland
Hello, I am trying to get this function working but it gives me a PHP error (blank page): function Validate_Page_Nav($LastPage, $ErrorPage) { $trimmed = str_replace($staffroot, '', $_SERVER['SCRIPT_NAME']); $resul = $db->query("SELECT * FROM Page_Access WHERE URI = '$trimmed'") or die("fai

Re: [PHP] Why getcwd() returs different results?

2009-11-05 Thread Raymond Irving
Here's an example from the PHP website: This demonstrates the behaviour: Outputs: cwd: /path/to/my/site/docroot/test cwd: / http://php.net/manual/en/function.register-shutdown-function.php It's a known problem but I can't see why this can't be fixed Fro

[PHP] Preview button to show PDF without submitting post data?

2009-11-05 Thread Dave M G
PHP Users, I have a page that generates a PDF document using PHP. It takes form data filled in by the user to fill out the PDF When the user clicks "submit", it emails that PDF document to the intended recipient. However, I would like to add a "preview" function as well. But for a variety of rea

Re: [PHP] question about smarty

2009-11-05 Thread Fernando Castillo Aparicio
I'm not sure where is the problem, but can't you just define every changing part in your template as variables and assign them as needed from php? If you need to change the image url, just make it a variable, like in background:url(images/{$img}) Then you just assign the variable as needed in e

Re: [PHP] Preview button to show PDF without submitting post data?

2009-11-05 Thread Fernando Castillo Aparicio
You could just open in a new window a php script that generates the "preview" pdf with a content-type header for pdf. header("Content-type: application/pdf"); Or if the "preview" pdf is not dinamic, just point the url to the pdf. No javascript needed, just a link, o a submit button on a form wi