[PHP] PHP Unit Test - Code Coverage - Continuous Intergration?

2008-04-16 Thread Jay Paulson
Hi everyone, I¹m just not getting into unit testing and was wondering what tools are out there that will automatically run unit tests continuously and make reports if a test failed and how much/what code was tested. Currently in Java land I¹m using Hudson, ant, Junit, and Coberatura. Thanks!

[PHP] Setting Column Widths in Excel Using PHP?

2007-05-09 Thread Jay Paulson
I¹m exporting some data out of MySQL and providing it as a download in Excel. However, I need to set the widths of the columns. Does anyone know how to do this without the PEAR module? Thanks for any help!

[PHP] HTML form data to utf-8?

2007-02-20 Thread Jay Paulson
Just a general question that I don¹t know the answer to. I have users inputting data via an HTML form. I want to make sure that if they cut and paste from say Word that all the weird characters are converted to plain text (preferably utf-8 since that¹s what my database is). How would I go about

[PHP] memory_limit Setting?

2007-01-26 Thread Jay Paulson
Hi everyone, I¹m trying to upload a 25MB file via PHP and I¹m setting the memory limit way high so I don¹t get a fatal error from php (the error is below). What I find really odd about this is that the error message says that PHP tried to allocate almost 54MB. First question is why is PHP

Re: [PHP] [HELP] Fatal error when uploading large files!

2007-01-23 Thread Jay Paulson
Hi everyone, Hopefully you all can help! I¹m at a loss as to what to do next. I¹m running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the following PHP error when trying to upload a larger file. I have AllowOverride turned on in the httpd.conf file so my .htaccess file

Re: [PHP] [HELP] Fatal error when uploading large files!

2007-01-23 Thread Jay Paulson
Hi everyone, Hopefully you all can help! I¹m at a loss as to what to do next. I¹m running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the following PHP error when trying to upload a larger file. I have AllowOverride turned on in the httpd.conf file so my .htaccess file

[PHP] [HELP] Fatal error when uploading large files!

2007-01-22 Thread Jay Paulson
Hi everyone, Hopefully you all can help! I¹m at a loss as to what to do next. I¹m running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the following PHP error when trying to upload a larger file. I have AllowOverride turned on in the httpd.conf file so my .htaccess file is

[PHP] Memory Limit?

2007-01-19 Thread Jay Paulson
Hi everyone, Quick question ­ I¹m trying to increase the memory limit so that I can upload larger files to an application I¹m running. I¹m using Apache¹s resource .htaccess file to change PHP on the fly. Below is my .htaccess file. php_value memory_limit 30M php_value post_max_size 25M

[PHP] Error Handling Library?

2006-08-31 Thread Jay Paulson
I've been doing some research and was wondering if anyone out there has written a library for error handling? I haven't found anything as of yet but would love to hear suggestions! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] remove SimpleXML nodes

2006-08-31 Thread Jay Paulson
So I want to do... $xmlDatabase = new SimpleXMLElement($myXML); foreach ($xmlDatabase as $oneTable) { if ($oneTable['name'] == 'two') { /// HERE I WANT TO DELETE THE $oneTable NODE unset($oneTable); // -- and this doesn't work... } } I tried to do the

Re: [PHP] Re: Templates, PHP Frameworks, and DB Abstraction?

2006-07-03 Thread Jay Paulson
I'd like to get some feedback on what the list thinks is a good template engine other than smarty. I'd also like to do some quick prototyping using a PHP framework does anyone have any recommendations for one that is easy to pick up and run with? Finally, does anyone have any suggestions

[PHP] Templates, PHP Frameworks, and DB Abstraction?

2006-06-30 Thread Jay Paulson
I'd like to get some feedback on what the list thinks is a good template engine other than smarty. I'd also like to do some quick prototyping using a PHP framework does anyone have any recommendations for one that is easy to pick up and run with? Finally, does anyone have any suggestions for a

[PHP] Object Array?

2006-05-18 Thread Jay Paulson
I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I can't go through it. (i.e. I can't use the count

Re: [PHP] Re: Object Array?

2006-05-18 Thread Jay Paulson
PROTECTED] wrote: Try using var_dump rather than print_r... maybe it'll give you more accurate data (e.g. to figure out if it's an object, as Rob said, or an array). --Daniel Jay Paulson wrote: I tried with no success yesterday to get an answer to this question so I'll try again. I

Re: [PHP] Object Array?

2006-05-18 Thread Jay Paulson \(CE CEN\)
I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I can't go through it. (i.e. I can't use the count function to see how big it is and loop through it) This below should be an array:

Re: [PHP] Object Array?

2006-05-18 Thread Jay Paulson
sure there is a saying about 'when things are so simple, you just don't get' that's applicable here :-P KISS - Keep It Simple Stupid. Haha.. Jay Paulson wrote: I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using simpleXML

Re: [PHP] Object Array?

2006-05-18 Thread Jay Paulson \(CE CEN\)
I tried with no success yesterday to get an answer to this question so I'll try again. I have an object from using simpleXML and inside that object is an array holding even more objects. However, it's not acting like an array and therefore I can't go through it. (i.e. I can't use the count

[PHP] Simple XML array count??

2006-05-17 Thread Jay Paulson
I'm using SimpleXML to go through a Google search result and I'm not quite understanding something. The variable $xml-RES-R is an array of 9 items and each item is an object containing information (see var dump below). So when I try to do count($xml-RES-R); it returns a number or 1 instead a

[PHP] Run Apache/PHP/MySQL from CD?

2006-04-19 Thread Jay Paulson
I have no idea if this is possible or not but is there a way to run Apache, PHP, and MySQL from a CD? I'd like it to be possible to run it on Windows, Mac OSX and *nix. If it is possible could someone point me in the right direction? Thanks! -- PHP General Mailing List (http://www.php.net/)

[PHP] Strtodate() bug?

2006-04-03 Thread Jay Paulson
Hello, I've got some weird behavior using PHP 4.3.9. I use the function of strtotime(last Sunday); and it's returning the timestamp for last Saturday. However, if I use strtotime(-1 day); (I'm running this program on a Monday) it returns the correct timestamp for Sunday. Is this a bug in PHP

[PHP] (array)

2006-02-22 Thread Jay Paulson
Just came across some code I haven't seen before and can't find anything on php.net or google about it (maybe I'm not searching for the right thing?). What is the following doing? // $dataobject is holding a bunch of variables like: // $dataobject-var1 // $dataobject-var2 // etc...

[PHP] Last Sunday in September?

2006-02-17 Thread Jay Paulson
Hi, I'm building a program and I need to find the last Sunday in September for every year because the following Monday is the start of a new year for us. So 2006 ends on September 24th 2006 and the new year (2007) starts on September 25th 2006. I was thinking that using the strtotime() would get

Re: [PHP] str_replace ? \r

2006-02-07 Thread Jay Paulson
http://us3.php.net/manual/en/function.nl2br.php Instead of using br / I would use p/p tags. That's just me though. :) On 2/7/06 12:38 PM, Sam Smith [EMAIL PROTECTED] wrote: From a textarea on a web form I'm attempting to convert all returns(\r), from the users input, to br /, for db

Re: [PHP] can't output sql query with php code.

2006-02-06 Thread Jay Paulson
It always helps to have a different point of view to look at code sometimes. Else you'll go bonkers looking for that stupid semi-colon! :) On 2/6/06 2:18 AM, Paul Goepfert [EMAIL PROTECTED] wrote: Thanks everyone for your help. I should have seen the semi-colon at the end of the while

[PHP] PHP Frameworks?

2006-01-27 Thread Jay Paulson
Has anyone used any of the following frameworks? What is the general opinion of using frameworks etc? WASP - http://wasp.sourceforge.net/content/ Symfony - http://www.symfony-project.com/ Prado - http://www.xisc.com/ WACT - http://www.phpwact.org/ CakePHP - http://www.cakephp.org/ -- PHP

Re: [PHP] questions regarding PHP and Forms

2006-01-27 Thread Jay Paulson
1) I need to do vaildation on form values that I have entered into a form. Is there a way I can write the vaildation code on the same page as the form in php? Yes there sure is. :) if (isset($submit)) { // data validation etc. } else { // display html form } 2) I have a drop down

Re: [PHP] Best way to handle PREVIOUS and NEXT processing of database records retrieved

2006-01-26 Thread Jay Paulson
You could always use the LIMIT functionality in MySQL SELECT * FROM table LIMIT 0,25 Then just pass the variables for the limit to start at and how many you want returned in your query. SELECT * FROM table LIMIT $start,$num_returned So looking at records 26 through 50 your links would look

Re: [PHP] Basic OOP Question

2006-01-26 Thread Jay Paulson
Hi, This is my first post so a cheery hello, this script from php.net: [www.php.net] ?php class SimpleClass { // member declaration public $var = 'a default value'; // method declaration public function displayVar() { echo $this-var; } }

[PHP] Get timestamp?

2006-01-25 Thread Jay Paulson
For some reason my brain isn't working correctly today. How would I go about getting the timestamp of a day of the week from 7 weeks ago? In my case I'm getting the timestamp of last Sunday (no matter what day of the week it is currently) and I want to get the timestamp of the Sunday that

Re: [PHP] put method

2006-01-24 Thread Jay Paulson
http://us3.php.net/features.file-upload On 1/24/06 11:46 AM, sunaram patir [EMAIL PROTECTED] wrote: could anyone please tell me how to use put method to upload file to a remote server? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SOAP WSDL?

2006-01-24 Thread Jay Paulson
I'm messing around with SOAP with PHP 5 and I was wondering do I have to create my own WSDL's or can PHP create them for me like NuSoap does? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using mapping tools via PHP?

2006-01-23 Thread Jay Paulson
I was wondering if anyone has built a php web app that uses google maps, yahoo maps, and/or mapquest maps. What I am trying to do is create a web app that if someone inputs their zip or city and state or address the results will show how far away they are from one of our stores and have a map to

Re: [PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Jay Paulson
I don't know much about the -saveXML() method but after reading the PHP manual why can't you just do something like this: $xhtml = $dom-saveXML(); // strip out the ?xml and ? $html = str_replace(?xml, , $html); $html = str_replace(?, , $html); Would that even work? On 1/23/06 2:52 PM, Chris

Re: [PHP] DOM saveHTML() not outputting XHTML Strict

2006-01-23 Thread Jay Paulson
ACK! Of course I put errors in the code. But I just read if you want to strip out the first line that would be easy. Just use a regular expression and take it out. :) On 1/23/06 3:23 PM, Jay Paulson [EMAIL PROTECTED] wrote: I don't know much about the -saveXML() method but after reading

[PHP] Count of elements in XML

2006-01-20 Thread Jay Paulson
I was wondering if there is a way to get the number of foo elements in my XML below? This way I could loop through each element and print out the attributes. $string = a foo name=\one\ game=\lonely\1/foo foo name=\two\ game=\again\2/foo foo name=\three\ game=\blah\3/foo foo name=\four\

[PHP] SimpleXML

2006-01-18 Thread Jay Paulson
I'm a noob when it comes to parsing an XML file. I have a really simple file that I'm getting back from a SOAP service that I need to parse. I figure SimpleXML would be great! However, I'm having problems getting the name attribute for each column element. The XML is below along with the code

Re: [PHP] help plz

2006-01-16 Thread Jay Paulson
I have this book and have been very impressed with it. However, if you are a beginner programmer I would say not to get it until you understand the basic programming concepts and have a working knowledge of PHP. :) On 1/16/06 1:14 AM, Ligaya Turmelle [EMAIL PROTECTED] wrote: I personally

Re: [PHP] Parsing a large file

2006-01-13 Thread Jay Paulson
I have large log files from a web server (about a gig in size) and need to parse each line looking for a string, and when encountered push that line to a new file. I was thinking I could have PHP read in the whole file, but thinking it could be a major pain since I have about 20 log files to

Re: [PHP] Parsing a large file

2006-01-13 Thread Jay Paulson
On Fri, January 13, 2006 3:33 pm, Jay Paulson wrote: $buf = ; Probably better to initialize it to an empty array();... Yep right. while (!feof($fhandle)) { $buf[] = fgets($fhandle); ... since you are going to initialize it to an array here anyway. if ($i++ % 10 == 0

[PHP] Reading large files via PHP?

2006-01-11 Thread Jay Paulson \(CE CEN\)
I'm reading in a 66MB file into php so I can parse it and load it into a database. However, it is taking a long time for php to read the file. So long that the script times out. I know about the ini_set(max_execution_time, 120) or whatever length I want to set the time out for the script,

RE: [PHP] Reading large files via PHP?

2006-01-11 Thread Jay Paulson \(CE CEN\)
I'm reading in a 66MB file into php so I can parse it and load it into a database. However, it is taking a long time for php to read the file. So long that the script times out. I know about the ini_set(max_execution_time, 120) or whatever length I want to set the time out for the

RE: [PHP] Is there a way to display data from database for SelectOptions in a form?

2006-01-10 Thread Jay Paulson \(CE CEN\)
[snip]Let's look at it another way, why 70-80 lines of code when 4 will do it properly when done correctly?[/snip] I agree with this line of thinking especially for a new person to php. When I first read the solution that was so long I thought to myself great and this person is new to php and

[PHP] SOAP Problems.

2006-01-10 Thread Jay Paulson \(CE CEN\)
I'm trying to call a SOAP service where you pass it a couple of dates and it is supposed to return stuff. My testing code is below along with the errors I'm getting. What's strange is that it's not working in php but it works perfectly in Flash. The request it is sending is only sending one

RE: [PHP] SOAP Problems SOLVED!

2006-01-10 Thread Jay Paulson \(CE CEN\)
; } -Original Message- From: Jay Paulson (CE CEN) [mailto:[EMAIL PROTECTED] Sent: Tue 1/10/2006 11:32 AM To: php-general@lists.php.net Subject: [PHP] SOAP Problems. I'm trying to call a SOAP service where you pass it a couple of dates and it is supposed to return stuff. My testing code is below along

RE: [PHP] CSS Switching

2006-01-09 Thread Jay Paulson \(CE CEN\)
Why don't you make a prit.php file that handles all the dynamic content and displays it with the CSS file you want. jay -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: Mon 1/9/2006 11:58 AM To: php list Subject: [PHP] CSS Switching I am drawing a blank on how to

RE: [PHP] Dynamic Array Index using Variable

2006-01-09 Thread Jay Paulson \(CE CEN\)
You could use the isset() or the empty() functions. http://us3.php.net/manual/en/function.empty.php http://us3.php.net/manual/en/function.isset.php But do you want to check all the fields that are being submitted or just specific ones that you set in the $reqfields array? If you want to check

[PHP] PHP and SOAP newbie questions

2006-01-09 Thread Jay Paulson \(CE CEN\)
I recently got handed a project that requires me to use PHP to talk to a WSDL SOAP service. I'm not new to PHP but I am new to SOAP. I have the basic idea of how SOAP works but still have a few questions I am hoping you all can answer for me. Which library would be better to use? NuSOAP or

[PHP] Included php files in a cron job?

2006-01-06 Thread Jay Paulson \(CE CEN\)
I'm in the process of writing a PHP program that is going to be called once a week via a cron job. I don't have a place to really test this hence the reason why I'm asking about it here. My question is can my php program include other php files and still get executed correctly when the cron

[PHP] Converting IP Address to int value?

2006-01-06 Thread Jay Paulson \(CE CEN\)
I'm in the process of parsing through a apache access_log file and putting the information into a database. Right now I have the ip addresses going into a database as a character format xxx.xxx.xxx.xxx and then later I'm creating my queries to search for ip addresses xxx.xxx.%, which I think

[PHP] Parsing through an Apache Log File?

2006-01-04 Thread Jay Paulson \(CE CEN\)
Hello everyone! I've been given the responsiblity of coding an apache access_log parser. What my tasks are to do is to return the number of hits for certain file extensions that happen on certain dates with specific IP address. As of now I'm only going back 7 days in the log looking for this

RE: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread Jay Paulson \(CE CEN\)
Jay Paulson (CE CEN) wrote: Hello everyone! I've been given the responsiblity of coding an apache access_log parser. What my tasks are to do is to return the number of hits for certain file extensions that happen on certain dates with specific IP address. As of now I'm only going back

RE: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread Jay Paulson \(CE CEN\)
Jay Paulson (CE CEN) wrote: Hello everyone! I've been given the responsiblity of coding an apache access_log parser. What my tasks are to do is to return the number of hits for certain file extensions that happen on certain dates with specific IP address. As of now I'm only going back

RE: [PHP] Parsing through an Apache Log File?

2006-01-04 Thread Jay Paulson \(CE CEN\)
If this is just a one time thing you're looking to do, all of this may be over the top. However, if the bosses are going to want to review this data month in and month out, I think the time spent doing something like this will be worth it. As of now I've got it working and inserting the

[PHP] Question about including files and server load

2005-10-14 Thread Jay Paulson
I just started working with a new company and they handed me some of their php code for me to look over. I noticed that they have a TON of include files being called into their scripts. For example, instead of having one file called functions.php and then having all their functions in that one

Re: [PHP] creating a login/registration/admin function/app

2005-09-10 Thread Jay Paulson
You might also take a look at the following. http://phpgacl.sourceforge.net/ I know that's what Joomla (formly known as Mambo) is going to use in their 5.0 version. jay hi... i'm in the process of looking for/creating a function to allow me to perform user login/registration/etc, as

Re: [PHP] Easier way to clean GET Variables ?

2005-08-29 Thread Jay Paulson
Can anybody point to a good resource of a collection of filtering for common inputs such as those listed by Chris above?... I've searched for that and generally found one of two things: 1. Nothing useful. 2. A system so baroque and complex and with so much other baggage, it would be impossible

[PHP] PHP Polling script?

2005-08-25 Thread Jay Paulson
Does anyone know of a good polling script that is, obviously, written in PHP? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Polling script?

2005-08-25 Thread Jay Paulson
[snip] Does anyone know of a good polling script that is, obviously, written in PHP? [/snip] What are you polling? It's for a contest so that people can come in and read about the people who are entered and then vote on which one they think should win. I would like to at lease be able to

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Jay Paulson
I'm betting you'll have the SAME ISSUE, and that the problem has NOTHING to do with PHP whatsoever. And you'd win that bet. I thought that would be the proof I'd need to show that it wasn't PHP, but management has some notion that PHP might have somehow tainted IIS. Gotta love a management

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Jay Paulson
I've tried to tell the that there are Fortune 500 companies running PHP on Windows and IIS (there are, right?). Target, Tickmaster, Yahoo, Amazon, and the list goes on and on. Not too sure about this: http://uptime.netcraft.com/up/graph?site=amazon.com

Re: [PHP] Looking for CMS advice

2005-08-23 Thread Jay Paulson
Everyone has already told you about opensourcecms.org, which is a really good site to test things out. However, about 6 months ago I had to do research for the same kind of thing. As of now with the split of the Mambo dev team from the parent company Miro I think I would go with Dupral

Re: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Jay Paulson
Ugh, we're *never* going to make a decision. My boss just sent me this email: A *huge* THANK YOU! to everybody who replied; it was extremely helpful and, after my meeting with my manager this morning, she seemed to accept that the article was dated and had inaccurate information. Thanks for

Re: [PHP] php as standalone?

2005-08-23 Thread Jay Paulson
This is pretty cool stuff! This is compiled code for Windows only so no source is available? Therefore, making it so that people can't view your source? Damn... you said those words cross platform.. But I'll still take this opportunity to plug Winbinder again. If you're just working

[PHP] Special HTML characters question.

2005-08-22 Thread Jay Paulson
I have a problem that I'm sure some of you have run into before, therefore I hope you all know of an easy solution. Some of my users are cutting and pasting text from Word into text fields that are being saved into a database then from that database being displayed on a web page. The problem

Re: [PHP] Special HTML characters question.

2005-08-22 Thread Jay Paulson
Thanks for the reply. I would imagine there are a lot of special html characters that would need to be changed using regex. Therefore, spending my time making a regex to find a replace each one of them isn't a good way to spend my time or even if I did go that route I'm sure it's uses too

Re: [PHP] Special HTML characters question.

2005-08-22 Thread Jay Paulson
[EMAIL PROTECTED] To: Jay Paulson [EMAIL PROTECTED], php-general@lists.php.net Subject: RE: [PHP] Special HTML characters question. [snip] I have a problem that I'm sure some of you have run into before, therefore I hope you all know of an easy solution. Some of my users are cutting and pasting text

Re: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Jay Paulson
I've been coding in PHP since version 3 and I actually sold a telecommunications company to use it for their HUGE intranet back in 2000 (right before they went out of business in North America). They wanted to use Java and I talked them out of it for the simple fact that PHP was so easy to

[PHP] fopen for http://

2005-05-27 Thread Jay Paulson
Hello all- I was wondering if anyone knew of a way to call a web site using fopen. Let me tell you how things are set up and what I'm trying to do. I can call fopen to read a site and then echo it back out. That's not a problem. The problem I run into is when I try to go to a restricted

[PHP] Fwd: fopen for http://

2005-05-27 Thread Jay Paulson
Hello all- I was wondering if anyone knew of a way to call a web site using fopen. Let me tell you how things are set up and what I'm trying to do. I can call fopen to read a site and then echo it back out. That's not a problem. The problem I run into is when I try to go to a restricted

[PHP] PHP on a .NET enviroment machine: Conflicts?

2003-09-10 Thread Jay Paulson
Quick question to the community here. The company I work for got bought out and now they are wanting to migrate all the web sites that I have created in PHP to their Windows, IIS, .NET enviroment. I have been trying to talk to the people at corporate about putting PHP on their Windows

[PHP] Opinions on Micro$oft .NET

2003-07-31 Thread Jay Paulson
I know this is a little off topic but I really need some help with this. The company I work for just got bought out by a larger company. The larger company uses .NET from Micro$oft. I of course use all open source stuff for our web sites and now the new company wants to come in and pretty

[PHP] Return Character in a Text File?

2003-03-27 Thread Jay Paulson
I have a slight problem. Is there anyway to make a text file with a return character that doesn't show up in windows notepad as a gibberish character and actually puts a return in it? Right now I'm using the \n for the return but it doesn't get read in notepad as a return so the string data

[PHP] is this correct? regular expressions

2003-03-25 Thread Jay Paulson
just trying to say if $phone isn't all numbers set it to all zeros.. so is that right? cause i can't seem to get it to work. if (!ereg(^[0-9]$,$phone)) { $phone = 00; } thanks!

[PHP] Saving a file as ASCII?

2003-03-20 Thread Jay Paulson
Quick question... when saving a file using the fwrite() function in a Unix enviroment as a text file does it get saved as ASCII??? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Directory Permissions?

2003-02-26 Thread Jay Paulson
I was running fileperms() function to find out what a directory is chmod'ed to. However, this doesn't return anything because it has to check a file. My question is there a function that will return what a directory is chmod'ed to? Thanks! Jay -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] dreading OOP

2003-01-21 Thread Jay Paulson
The easiest way for me to explain and understand OOP was to think of it this way. You have an object and in that object contains functions that only pertain to that one object. See diagram below. Object1 | |_ function1 | |_ function2 . . etc Object2 | |_ function1 | |_

Re: [PHP] Detecting resolution

2003-01-21 Thread Jay Paulson
You have to use JavaScript for this. Sorry! but i've asked the same question on here a long time ago :) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 11:22 AM Subject: [PHP] Detecting resolution Does anyone know how to detect the

[PHP] Image Question

2002-04-08 Thread Jay Paulson
Hello everyone. I'm uploading an image, resizing it, then base64_encoding it to put the image into a data base.. then when I view it out of the data base using the base64_decode function it looks horrible. Below is the original image off of IMDB.com

Re: [PHP] Image Question

2002-04-08 Thread Jay Paulson
writers don't know the first thing about image editing and can't resize the image themselves. - Original Message - From: Rick Emery [EMAIL PROTECTED] To: 'Jay Paulson' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, April 08, 2002 5:19 PM Subject: RE: [PHP] Image Question First, why store

Re: [PHP] Image Question

2002-04-08 Thread Jay Paulson
this possiblity. Hope it helps. -Kevin - Original Message - From: Rick Emery [EMAIL PROTECTED] To: 'Jay Paulson' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, April 08, 2002 4:19 PM Subject: RE: [PHP] Image Question First, why store it in a database? Why not store it as a separate file

[PHP] Displaying Image with PHP

2002-03-29 Thread Jay Paulson
Hello-- I can't quite seem to get this to work. What I'm trying to do is pull data out of a MySQL db of an image that I had put into the db. When I originally put the image into the db I had to use the addslashes function so that it would be inserted into the db correctly. Now when I select

[PHP] Compile problems php 4.1.1

2002-01-14 Thread Jay Paulson
I'm trying to compile php 4.1.1 and when it gets to the --with-apxs option it errors out with the following: Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in

[PHP] php as cron

2001-12-10 Thread Jay Paulson
I'm trying to test php running as a cron job and I have installed php as a CGI in /usr/local/bin and I have edited my crontab file to call a php file every two minutes. However, it's not working and I was wondering if you all would know what's going on. Anyway, here's how I have things set

Re: [PHP] php as cron

2001-12-10 Thread Jay Paulson
, Jay Paulson wrote: I'm trying to test php running as a cron job and I have installed php as a CGI in /usr/local/bin and I have edited my crontab file to call a php file every two minutes. However, it's not working and I was wondering if you all would know what's going on. Anyway, here's

Re: [PHP] php as cron

2001-12-10 Thread Jay Paulson
: [PHP] php as cron Why not just use lynx to run it? */2 * * * * /usr/local/bin/lynx -dump crontest.php JR On Monday 10 Dec 2001 5:54 pm, Jay Paulson wrote: I'm trying to test php running as a cron job and I have installed php as a CGI in /usr/local/bin and I have edited my crontab

[PHP] file system question

2001-10-24 Thread Jay Paulson
Hello- I'm trying to write a php script that creates a directory and then copies uploaded files to that directory. That isn't hard but what is hard is the fact that the script tells me that i do not have permission to do any of these actions. I'm running red hat 7.1 and I have heard things

[PHP] anyone have...

2001-10-23 Thread Jay Paulson
anyone have a function that strips out all the characters in a string that are no a-z or A-Z? thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP] Getting the right hour?

2001-10-03 Thread Jay Paulson
I am trying to get the right hour using php's date() function. However, I don't know how to set the clock on my redhat machine via command prompt. I keep getting 18 for the hour and it should be 17. Anyone know how to set the time on the machine correctly? Thanks, jay -- PHP General

[PHP] quick question.

2001-09-26 Thread Jay Paulson
I was just wondering if I could call some functions out side of the class I'm making? The reason why I want to do this is so that I don't have to rewrite the functions as methods in the class and I don't want to get too far into what I'm doing before I find out it doesn't work. Thanks, Jay --

[PHP] htmlspecialchars() backwards?

2001-09-25 Thread Jay Paulson
hello- Is there a built in function that will reverse what htmlspecialchars() does to text? For example: $text = stuff goes here\ and \' there; $text = htmlspecialchars($text); //now all the special codes are in the $text var for the html and now I want to get //back to the orignal string of

[PHP] Screen Resolution in PHP?

2001-09-24 Thread Jay Paulson
Is there a way to get the client's screen resolution in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Screen Resolution in PHP?

2001-09-24 Thread Jay Paulson
ACK! Just saw a post that answered this question. Sorry bout this post should have checked with archives first. - Original Message - From: Jay Paulson [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, September 24, 2001 10:50 AM Subject: [PHP] Screen Resolution in PHP

Re: [PHP] Sessions just don't work on my machine. (Trying this again)

2001-09-24 Thread Jay Paulson
I had the exact same problem.. don't know if you had this advice yet or not but what I did is when I started a session I would grab the session id for that session and put it in a variable and then just pass that session id everywhere I went.. turn on the trans_id or add the session id to the end

Re: [PHP] How to increase number of supported servers?

2001-09-24 Thread Jay Paulson
what does this mean? Warning: Cannot use a scalar value as an array I look at the line that is causing the warning and it's this: $errorMsg[error] = ; thanks, jay [EMAIL PROTECTED] wrote: PHP 3.0.18 stops working after i add over 125 virtual hosts in my httpd.conf file. PHP 4.0.6 still

[PHP] what does this mean?

2001-09-24 Thread Jay Paulson
Warning: Cannot use a scalar value as an array what does that mean? i have in my code this: $errorMsg[error] = ; thanks, jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] GD Library help

2001-09-22 Thread Jay Paulson
Do all versions of the GD library for Linux that are version 1.6 and above not support any GIF formats? I have 1.8 and in the manual I thought that it was only version 1.6 that didn't support GIF format. However, when I run ImageCreateFromGIF() or ImageGIF() I get an error saying that it's not

[PHP] GD Library help

2001-09-21 Thread Jay Paulson
Do all versions of the GD library for Linux that are version 1.6 and above not support any GIF formats? I have 1.8 and in the manual I thought that it was only version 1.6 that didn't support GIF format. However, when I run ImageCreateFromGIF() or ImageGIF() I get an error saying that it's not

[PHP] Please help with files.

2001-09-21 Thread Jay Paulson
Hello everyone- Here's my problem.. I have a script that uploads an image and then resizes that image to a certain size etc. Then it takes that image and copies it to a spefic location. My problem occurs when trying to copy the file to the specific location because I get a permission denied

[PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson
Hello everyone- I'm trying to have multiple uploads in one form so my input tag looks like this: input type=FILE name=imageFile[] value= size=10 input type=FILE name=imageFile[] value= size=10 input type=FILE name=imageFile[] value= size=10 The problem I'm running into is that I know php

[PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson
Hello everyone- I'm trying to have multiple uploads in one form so my input tag looks like this: input type=FILE name=imageFile[] value= size=10 input type=FILE name=imageFile[] value= size=10 input type=FILE name=imageFile[] value= size=10 The problem I'm running into is that I know php

  1   2   >