Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Steve Finkelstein
It required creating my own 'Custom Profile' which allowed me to manipulate the Font and/or Size. As soon as I modified those, it worked fine. Thanks for the assistance all. Pain in the butt issue! /sf On 3/3/08, Sancar Saran <[EMAIL PROTECTED]> wrote: > On Monday 03 March

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Steve Finkelstein
l Vogel <[EMAIL PROTECTED]> wrote: > Richard Lynch schrieb: > > > On Sun, March 2, 2008 11:07 pm, Steve Finkelstein wrote: > > > >> Hi all, > >> > >> I know this isn't a forum for Zend IDE, but since there's probably a > >>

Re: [PHP] Weird Zend IDE Issue

2008-03-03 Thread Steve Finkelstein
]> wrote: > Steve Finkelstein schreef: > > Hi all, > > > > I know this isn't a forum for Zend IDE, but since there's probably a > > decent population here using it, I figured I'd ask away. > > > > I'm using 5.5.1 Professional on Mac OSX

[PHP] Weird Zend IDE Issue

2008-03-02 Thread Steve Finkelstein
Hi all, I know this isn't a forum for Zend IDE, but since there's probably a decent population here using it, I figured I'd ask away. I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that all left brackets, (eg: [ ) are not showing up in the code editor. I have a screenshot of it

[PHP] Anyone jump from Studio 5.5.x -> Zend Eclipse?

2008-03-01 Thread Steve Finkelstein
Hi all, I've tried googling around to find some blogs with decent information on whether Zend Eclipse is mature enough to make the jump over from 5.5.x just yet. Admittedly, I've dropped Zend Studio as of late and been writing all of my code in TextMate -- but at the end of the day when a project

[PHP] Storing user ID in a cookie security precautions

2008-02-25 Thread Steve Finkelstein
Hi folks, I just completed my first reading of Advanced PHP Programming by George Schlossnagle and was very impressed and thankful for the wealth of information with examples provided by George. With that said, there is a chapter dedicated to Authentication using client-side cookies and encryptin

Re: [PHP] More than one values returned?

2008-02-19 Thread Steve Edberg
return array(1,2); } list($a,$b) = test(); works as above. Works fine with complex arrays as well: function test() { return array(1,array('a','b')); } list($a,$b) = test(); steve -- +--- my people are the people of the dess

[PHP] Uploading PDF

2008-02-14 Thread Pastor Steve
quot;>$filename</a> WARNING: This link will not be available anywhere else. "; } else { echo "Possible file upload attack!\n"; } echo ''; echo 'Here is some more debugging info:'; print_r($_FILES); print ""; ?> Thanks

[PHP] Order directory output

2008-02-08 Thread Pastor Steve
quot;); $filehead = fgets($fh); fclose($fh); echo " $filehead "; } } echo " "; // close directory closedir($dh); } } ?> Thank you, -- Steve Marquez

Re: [PHP] fgets???

2008-02-08 Thread Pastor Steve
I think I may have written the question wrong. I only want to display the first line. It is a news story with a headline. I only want to display the headline in the link. The output I want is: The But I am getting: The file looks like this. Does that make more sense? Thanks, -- Steve M. on

[PHP] fgets???

2008-02-08 Thread Pastor Steve
Is it possible to read each line of data from a file? I have a text file that has several lines on it. I only want to display the first line only. The file I have looks like this. But outputs: "The file I have looks like this." Here is my code: Breaking News Please che

[PHP] Directory

2008-02-07 Thread Steve Marquez
, -- Steve M.

Re: [PHP] how to display photos of the day?

2008-01-29 Thread Steve Edberg
xt to nothing. The cronjob could be written in any language, but since this is a PHP list you'll have to promise to write it in PHP ;) steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis

Re: [PHP] Rename

2008-01-24 Thread Pastor Steve
file. I couldn¹t find anything like that there. Thanks, -- Steve M. on 1/24/08 2:46 PM [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > i believe you will find what you're looking for by searching or > browsing the documentation found at: > > <http://www.php.net/manual/en

[PHP] Rename

2008-01-24 Thread Pastor Steve
Does anyone know if there is a way to move all the files in one directory into another? Thanks, -- Steve M.

[PHP] if

2008-01-24 Thread Pastor Steve
Greetings, Can anyone point me in the right direction on this? I want a link to an image that appears below the link after it is clicked. I think it would be an ³if² statement, but I am not sure where to start. Thanks, -- Steve M.

Re: [PHP] Foreach

2008-01-18 Thread Pastor Steve
order in which each record will appear on the page. I hope this makes more sense. I wish I knew more, and then I would be able to formulate my questions better. Thank you so much for your help. Steve M. on 1/17/08 10:07 PM David Giragosian ([EMAIL PROTECTED]) wrote: > On 1/17/08, mike <

[PHP] Foreach

2008-01-17 Thread Pastor Steve
tion in name and order to update the database. So far, I can only get one or the other. Is there a way to do this? Thanks for your help. -- Steve M. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Count

2008-01-17 Thread Pastor Steve
that the user has the choice of any record. The idea would be to order the content by the highest number. I hope this makes more sense. -- Steve M. on 1/17/08 1:54 PM Richard Heyes ([EMAIL PROTECTED]) wrote: >> > I am wanting to create an select menu for displaying the order of the ite

[PHP] Count

2008-01-17 Thread Pastor Steve
makes sense. -- Steve M.

Re: [PHP] var_dump() results

2008-01-13 Thread Steve Edberg
de isn't an exact cut-and-paste, as using single quotes (eg, mysql_pconnect('$host', '$login', '$passwd') does not interpolate variables, so that line will not work unless your username is actually '$login', etc. Which it probably isn't.

Re: [PHP] XML Data merging

2008-01-12 Thread Steve Edberg
e's a possibly-useful article: http://www.xmlhack.com/read.php?item=1681 Disclaimer: I've never used any of those tools, so YMMV, IANAL, RTFM, LOL, etc... steve -- +--- my people are the people of the dessert, ---+ | Steve Edberg

Re: [PHP] ereg help!

2008-01-08 Thread steve
s like xyz.php.txt . >(otherwise I'd just use a straight str_replace). Thanks Guess i was just trying to over think it. Have not done much with files. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ereg help!

2008-01-08 Thread steve
I have a dir of html files that link to websites, i would like to read the dir and print a list of those files as a link. Which the script i have does. I would like to take this one step further and replace the ".html" extension with ".com" so it winds up being: website.com instead of website.ht

[PHP] Re: ./configure APC problems with 3.0.16 and what happened to --enable-apc-pthreadmutex???

2008-01-07 Thread steve
I take it back.. if I use --enable-apc-pthreadmutex I get file locks, but if I don't use the option at all, I get pthreadmutexes. I'm guessing pthead became the new default? On Jan 7, 2008 1:59 PM, steve <[EMAIL PROTECTED]> wrote: > > When configuring APC 3.0.16 I see this

[PHP] ./configure APC problems with 3.0.16 and what happened to --enable-apc-pthreadmutex???

2008-01-07 Thread steve
When configuring APC 3.0.16 I see this, which I don't recall seeing before: checking dlfcn.h presence... no configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: dlfcn.h: proceeding with the compiler's result checking for dlfcn.h... yes Also --en

Re: [PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread Steve Finkelstein
d the > entire page. > > Remember it's all just Javascript trickery with CSS that works great > on Safari browsers (and works almost identical actually now in > Firefox...) > > It's very easy to implement, I had some initial confusion too how it > routes the requests

[PHP] iphone.facebook.com PHP inquiry

2008-01-07 Thread Steve Finkelstein
Hi folks, Probably the most impressive application I've run into for the iPhone has to be Facebook's implementation. I'm looking for ways to improve my application to be as responsive as theirs. Unfortunately it has quite a way to go. Does anyone know how this form of 'routing' works? For instanc

Re: [PHP] Incorporating a PHP/MySQL based search

2007-12-12 Thread Steve Finkelstein
Thanks Tedd... looks like a promising link. I'll take a look! On 12/12/07, tedd <[EMAIL PROTECTED]> wrote: > > At 5:36 PM -0500 12/8/07, Steve Finkelstein wrote: > >Hey folks, > > > >One area I lack experience in is writting a solution to index/search on a >

[PHP] Heritage web solutions

2007-12-10 Thread Steve Finkelstein
Hi everyone, I was curious if anyone has had the opportunity to work with or for heritage web solutions? If so, would you be able to share your two cents with any experience with them? Thanks! - sf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Advice with some code

2007-12-10 Thread Steve Finkelstein
Hi all, I'm having a brain freeze with some simple code that I wrote and now trying to refactor. I have a block of code that looks like this: public function backup() { $fname = "$this->dbName.sql.$this->zip"; $this->cmd = "mysqldump -Q -u $this->dbUser -p$this->db

[PHP] Incorporating a PHP/MySQL based search

2007-12-08 Thread Steve Finkelstein
Hey folks, One area I lack experience in is writting a solution to index/search on a site. Would anyone be kind enough and point me in the right direction as far as any books which discuss some simple solutions or articles/blogs on the web? Clearly I'm not looking for anything as complex as Google

Re: [PHP] Professional inquiry for you freelancers

2007-12-06 Thread Steve Finkelstein
7, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Dec 6, 2007 3:23 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Steve Finkelstein wrote: > > > Thanks for your humble opinions. Appreciate the feedback! > > > > humble? > > People on this list a

[PHP] Professional inquiry for you freelancers

2007-12-05 Thread Steve Finkelstein
Hi all, Going to cut it short and to the point. Do most of you freelancers get by with enough work that does not require front-end UI/design? Do you find it easier to get more work when you're strengths in design are just as creative as your programming capabilities? These are questions I'm enter

Re: [PHP] checkbox unchecked

2007-12-02 Thread Steve Edberg
e using 0/1 does have the advantage of 'doing the right thing' if a "if ($_GET['foo'])" creeps into your code, though. As would using 'Y'/''. That being said, I've used 0/1 along with y/n in the past; it depends on whether I'm thinking l

Re: [PHP] Join question

2007-11-30 Thread Steve Edberg
s to count for something :-) Please keep all replies on the list, Jochem. ;-P HA! It was too good not to share. Programming Rocks you say? It's not that old... http://www.rocksclusters.org/wordpress/ :) It appears to be a Friday... - steve -- +--

Re: [PHP] Rewind foreach loop

2007-11-29 Thread Steve Edberg
7;=>'slurm', 'b'=>'fry', 'c'=>'leela'); $Keys = array_keys($NotJustNumbers); $Count = count($Keys); for ($i=0; $i<$Count; $i++) { $value = $NotJustNumbers[$Keys[$i]]; if ($value == 5 && some_other_test()) {

Re: [PHP] two small issues with php mail

2007-11-20 Thread Steve Edberg
Personally At 1:31 PM -0500 11/20/07, Jason Pruim wrote: I prefer>Honestly for me... top posting, side>On Nov 20, 2007, at 1:19 PM, Michael McGlothlin wrote: posting.>> >>I hate top posters. Pure evil. -steve >>

[PHP] Not Null?

2007-10-31 Thread Steve Marquez
Greetings, I have a script that looks for the variable to be NULL and then execute. Is there a way for the script to look for anything or something in the variable and then execute? Ex: If (Œ$a¹ == Œ ANYTHING¹) { some action }else{ some other action } Thank you for any help. -- Steve M.

[PHP] Configuring 5.2.4 for Mac OSX and Webstar

2007-10-29 Thread Steve Meredith
mmand unknown" error, type in "sudo chmod a+rx configure" and retry. Wait for the script to complete. 6. Type in "make" and hit return/enter. Wait for the compile to complete. Results, no compiled php to copy to! Last login: Sat Oct 20 15:58:53 on console Welcome to Darwin

[PHP] Handling profile view counters

2007-10-06 Thread Steve Finkelstein
Hi all, I'm contemplating on a proper way of handling a counter for profile views on my auto dealership website. I'm currently confused with the type of algorithm to approach this with. Say a user has a registered session, and views profile a). I can increment the counter for that vehicle. The us

[PHP] http://go-pear.org?

2007-10-04 Thread Steve Brown
I'm trying to install Pear on OSX, but http://go-pear.org/ doesn't seem to be resolving. Pear manual states I should: curl http://go-pear.org/ | php but this fails and dig go-pear.org reveals that the name does not resolve. Is there a package somewehre I can download and install? -- PHP Gen

[PHP] Alternate Colors in Rows

2007-10-03 Thread Steve Marquez
Greetings, I am attempting to alternate the colors of the container DIV. Anyone know how to do this? $optone Edit Delete $study_title $date "; } ?> Thank you very much, -- Steve M.

[PHP] Conditional jump menu

2007-09-27 Thread Steve Marquez
Does anyone know how to create a field based on a menu choice? When the menu is selected, then another field is created with an associated number. For instance: Selection = Collie Field = 1 Selection = AkitaField = 2 And so on... Thanks, -- Steve M.

Re: [PHP] Re: Data request

2007-09-25 Thread Steve Edberg
ost that old (totters off to get some Geritol and scream at the kids on my lawn) steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center

[PHP] Questions about overloading and visibility in PHP5

2007-09-18 Thread Steve Brown
I've been doing a bunch of reading about objects and overloading in PHP5, but I've got a couple of questions that I can't seem to find the answer to online. Suppose the following code in PHP5.2.4: $name to $val...\n"; $this->{$name} = $val; } public functi

[PHP] GD Library

2007-09-13 Thread Steve Marquez
Greetings, I am running PHP 4.4.7 without the GD Library and need it to run. I am very novice on PHP, and am using a Mac with 10.3.9. Can anyone point me in the right direction? Thank you so much, -- Steve M.

[PHP] Dealing with auto-increment in MySQL

2007-09-03 Thread Steve Finkelstein
How're you folks dealing with records that are auto incremented in MySQL after a delete is made? I've noticed the only way to get a sequential order back is to truncate the table completely. Do you use logic in your code to find a missing ID and insert new records based on that? Or do you just ign

[PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Steve Brown
Recently, I've been doing a lot of benchmarking with Apache to compare different OSes and platforms. I did a stock install of Ubuntu 7.04 Server w/ Apache2 and PHP5. To do the test, I used ab to fetch the following document: PHP Web Server Test I ran ab in a loop 12 times with 10,000 con

[PHP] Photo upload framework/library for PHP

2007-08-18 Thread Steve Finkelstein
Hi all, Can anyone suggest a photo upload/framework type library I can incorporate seamlessly into a PHP project I'm working on? I'd like for users to have an elegant UI to upload photos of their vehicles into my application. Mutli-file and progress bars would be a plus. I'm looking to integrate

[PHP] Code Igniter for 'novices' ?

2007-08-09 Thread Steve Finkelstein
Hi all, This isn't a 'which framework is better than the other' question. I'm a novice developer and I'm looking to conform to an MVC model for my applications. I was wondering if anyone would be kind enough and has used code igniter, to respond to me and let me know their thoughts on it, and if i

[PHP] Sorting files in a directory

2007-08-08 Thread Steve Marquez
sort ($file_array); foreach($file_array as $key => $value) { echo "".$value.""; } } } echo ""; // close directory closedir($dh); } } ?> -- Steve Marquez

[PHP] include_path issue

2007-08-08 Thread Steve Finkelstein
Hi all, I have rudimentary application which has an index.php that looks like this: ini_set( 'display_errors', true ); require_once'include/Model.php'; Immediately after that include/Model.php is processed, Model.php consists of this: require_once 'DB/DataObject.php'; Thi

Re: [PHP] Not quite OT but maybe close... Help with MySQL

2007-08-08 Thread Steve Edberg
'it just imports the first row of my file' - as in, what does your LOAD DATA statement look like? Were there any warnings/errors generated? You were doing a LOAD DATA on a tab- or comma-delimited file, right? MySQL can't eat raw Excel files. steve -- +--

Re: [PHP] Rejecting File Upload

2007-08-04 Thread Steve Edberg
P can refuse to accept files larger than a specified size, which isn't exactly what you're asking: http://us.php.net/manual/en/features.file-upload.php For more information, documentation sets in multiple languages are available here: http://www.php.net

[PHP] XHTML/CSS templates for developers

2007-08-04 Thread Steve Finkelstein
Hi all, I was curious if anyone could provide some insight on tools which allow developers who strictly focus on server-side programming and not UI, to quickly implement XHTML/HTML templates with proper div placement. Drag and drop would be preferable. I'm currently working on a project which no

[PHP] Strategy when working with designer(s)?

2007-07-23 Thread Steve Finkelstein
Hi all, This is more of a conceptual based inquiry. I'm currently working on some projects which require me to build system 'X' prior to any (X)HTML/CSS/graphics are available to me. A lot of the time, I just garble up default tables/forms/images to replace what the designer will be ultimatel

[PHP] PHP not working after Mac 10.3.9 install

2007-07-23 Thread Steve Marquez
Greetings, I am a very novice user of PHP. I have run PHP 4 on my Powerbook for about three years. When I installed Mac OS 10.3.9, PHP does not work. I forgot how to get it running again. Can anyone help me with this? Thanks, -- Steve Marquez

[PHP] Symfony versus CakePHP?

2007-07-20 Thread Steve Finkelstein
All, I'm terribly sorry if this is a redundant inquiry. I'm a rather inexperienced developer who's catching on quickly, and looking for a framework to build out a project I've been assigned. I'm more of a read a book and try things out type of learner. My question to those with more experien

RE: [PHP] magic quotes

2007-07-17 Thread Steve Perkins
without having to worry about different .htaccess files for each. Ta Steve -Original Message- From: Richard Heyes [mailto:[EMAIL PROTECTED] Sent: 17 July 2007 12:25 To: Phil Princely Cc: php-general@lists.php.net Subject: Re: [PHP] magic quotes > What do people on this list usually do w

RE: [PHP] SMS questions

2007-07-15 Thread Steve Perkins
Sorry, www.textit.biz Cheers -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: 13 July 2007 17:52 To: php-general@lists.php.net Subject: Re: [PHP] SMS questions Might want to retry that link, it's broken. - Dan ""Steve Perkins"" <[EMAIL PROTE

FW: [PHP] SMS questions

2007-07-13 Thread Steve Perkins
M. Nixon Sent: 13 July 2007 09:17 To: Steve Perkins [mailto:[EMAIL PROTECTED] Subject: FW: [PHP] SMS questions Hi Steve Hope you're doing fine. It is possible. In short, you have seen how a SMS message is sent using a operators Name label i.e. the Messages says who it's from e.g. TE

RE: [PHP] mail function from and reply to address problem

2007-07-12 Thread Steve Perkins
PHP, or point the finger ! I suspect eliminate but you never know.. That's where I think I'd start anyway. Send uz an update when you have some answers. Steve -Original Message- From: Tanner Postert [mailto:[EMAIL PROTECTED] Sent: 13 July 2007 00:33 To: php-general@lis

RE: [PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Steve Perkins
From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 11 July 2007 21:29 To: Steve Perkins Cc: php-general@lists.php.net Subject: Re: [PHP] PHP5 objects access/instantiation model (correction) You probably ought to have: class mysql_driver extends generic_driver { } Seems like that would be the

[PHP] PHP5 objects access/instantiation model (correction)

2007-07-11 Thread Steve Perkins
OK, so that came out fairly illegible. Try again: Hi, new to PHP5 (and the forums evidently !) and I have a question about the object model. I want to be able to create a class which is allows abstraction from specifics. So for one example, imagine a generic database connection wrapper which can

[PHP] PHP5 objects access/instantiation model

2007-07-11 Thread Steve Perkins
Hi, new to PHP5 and I have a question about the object model. I want to be able to create a class which is allows abstraction from specifics. So for one example, imagine a generic database connection wrapper which can have multiple drivers depending on the database used. Some of the functionalit

Re: [PHP] Suggestion re: PHP Brain Teasers

2007-07-05 Thread Steve Edberg
At 7:37 PM -0400 7/5/07, Robert Cummings wrote: On Thu, 2007-07-05 at 16:27 -0700, Steve Edberg wrote: Proposal - Perhaps we could separate Brain Teasers, Obfuscated PHP challenges, and what-have-you to a separate mailing list, say php-fun (php-phun? PHPhun?)? Maybe you could also include

[PHP] Suggestion re: PHP Brain Teasers

2007-07-05 Thread Steve Edberg
y leads to obfuscation. And one should eschew obfuscation. - steve, eschewing away... -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL

RE: [PHP] Re: Swear filter ideas

2007-06-28 Thread Steve Edberg
urse >:) So really, words are only offensive to those who somehow infer a secondary meaning. What that inference is, I've yet to understand. I can say the baby pooped, had a bowel movement, or dirtied its diaper, but as soon as you say the baby shit its diaper... people give you a funny look.

Re: [PHP] Swear filter ideas

2007-06-28 Thread Steve Edberg
D] think you [EMAIL PROTECTED] are ??'; } - st&[EMAIL PROTECTED] -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMA

[PHP] PHP tailing a log

2007-06-07 Thread Steve Finkelstein
Hi all, Does PHP happen to have something similar to Perl's File::Tail -> http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm? I'm looking to be able to tail a file on the server side and somehow figure out how to use AJAX to keep the file consistently updated through to the client. Any su

[PHP] Patterns

2007-06-07 Thread Steve Marquez
way to do this? Thanks, -- Steve M.

[PHP] Image Information

2007-06-06 Thread Steve Marquez
Greetings, I am trying to get information (width, height, file size) from an image before it is uploaded. Is there a way to do that? Thank you, -- Steve Marquez

Re: [PHP] Strings

2007-06-05 Thread Steve Marquez
I got it to work! I just had to place the HTML elements outside of the PHP code. Thanks for your help. -- Steve Marquez on 6/5/07 2:02 PM Jochem Maas ([EMAIL PROTECTED]) wrote: > Robert Cummings wrote: >> > On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote: >>> >>

Re: [PHP] Strings

2007-06-05 Thread Pastor Steve
.) > $image = ""; > if ($image == NULL) { > print "False"; > } else { > > ?> > > > } > ?> It works if $image is not NULL. However, if it is empty, then it gives me an error. I am very much so a novice and appreciate your patience. Thank

[PHP] Strings

2007-06-05 Thread Steve Marquez
The following code works: However, this does not: ²; } ?> It seems that if I add a string, rather than just the variable, then does not work. I am getting an unexpected T_IS_EQUAL error. -- Thanks, Steve Marquez

Re: [PHP] Single Sign On

2007-06-04 Thread Steve Edberg
/ - useful. steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics programming/database/sysadmin

Re: [PHP] Streaming download to IE doesn't work

2007-06-02 Thread Steve
That's why you comment your code. Take the extra time and put a bit of effort into explaining yourself. Add in a paragraph explaining what's going on, link to whatever solution you found on the web (who knows it might still exist), and just outright bloat it with comments. You might find it anno

Re: [PHP] Re: Too many records to display in one web page

2007-05-30 Thread Steve
Very true. I completely forgot to mention that :( "Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Steve wrote: >> The way I handle it: >> >> Step 1- >> Add SELECT SQL_CALC_FOUND_ROWS to the front of your initial query and add &g

[PHP] Re: Too many records to display in one web page

2007-05-29 Thread Steve
The way I handle it: Step 1- Add SELECT SQL_CALC_FOUND_ROWS to the front of your initial query and add the pagination limit to the end (LIMIT 200, 400 or whatever range you want to display.) Step 2- Do a 2nd query: SELECT FOUND_ROWS() immediately after. What does this do? It will return your

[PHP] Web Application Design Literature

2007-05-28 Thread Steve Finkelstein
Hello - I'm looking for recommendations on literature which will give me ideas on best practices for design and implementation of web applications, with if possible, PHP as its core reference language. Syntax has never been the challenge for me, like for most, it's always been the most practical

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread Steve Finkelstein
Might I suggest using an IDE to develop your code in. It would be able to spot simple oversights such as syntax errors. I personally use Zend Studio, however if you aren't looking to invest in a license, there are plenty of open source solutions out there. Cheers, - sf James Lockie wrote: > Paul

[PHP] Re: showing source

2007-05-18 Thread Steve
Not that it really matters in this scenario, but if you rename a file to .phps you should be able to navigate to it in a web browser and have nice, highlighted syntax. It's pretty nice for internally viewing a file, but obviously I wouldn't recommend doing this with live files that contain sens

[PHP] Re: Send HTML from PHP scripts ...

2007-05-18 Thread Steve
Might want to put a small bit of effort in first... http://us.php.net/manual/en/function.mail.php Example 1075 ""Kuldip Mond"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I am looking to send a HTML page via a PHP script. The currentl method I use is : mail(

[PHP] Re: Question on Portfoilo's

2007-04-11 Thread Steve
If you're working under an NDA or on code that doesn't belong to you, you'll most likely need to hit up the hobbiest side of programming to build your portfolio. Sit down, plan some app that would make your life easier (or someone else's), go through the design process, and then code it to impl

[PHP] Re: PHP editor

2007-04-11 Thread Steve
You could always opt to use emacs or vi. ""Jonathan Kahan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I beleive this is in the realm of php (I have learned my lesson from last > time). Does anyone have recomendation for any free (I.E. permanently free > not 30 d

[PHP] Re: Curious Problem with $_POST

2007-04-10 Thread Steve
Is it possible that your zip file is bigger than your max filesize allots? Most likely isn't the problem, but worth doublechecking. "Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a form for uploading files. It is intended to upload photos. I have >it listed at the

[PHP] Re: finding a particular record within a MySQL result set

2007-04-04 Thread Steve
Maybe I'm way off here, but when you're looking for his numbered place in the record set, can't you just count the people before him? ID NAME STATE DATE 1 JoeMaine 2006-02-12 2 JimMaine 2006-01-12 3 James Maine 2006-03-12 4 John Maine 2005-05-12 5 Jordan Maine 2006-02-11 Pse

[PHP] Re: storing functions

2007-04-04 Thread Steve
The way I organize my stuff is that I have all of my object code, functions, and what not in a specific folder within their own separate files. If there is enough of a certain category of files to flood the directory, I will place those in their own subdirectory. I have separate grouping files t

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
Sorry for the really rough example. I just re-read my message and realized how much stuff (closing tags, etc) I forgot to include. The general idea should be fairly clear, though. ""Steve"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The point

Re: [PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
along and doesn't see the field name. They fill in their username and password and hit submit. The information passed looks like: $_POST['name'] = 'steve'; $_POST['password'] = 'mypassword'; $_POST['lastname'] = ''; All of the fields a

[PHP] Re: Alternative/Addition to using a CAPTCHA

2007-03-30 Thread Steve
I read something (I think on Slashdot) a while back about another method that could be used to avoid CAPTCHAs. Basically on top of your standard form field, you place some input fields in a javascript hidden div around your page conveniently named things like "email", "address", or "phone." Bec

[PHP] Re: How to get class constants with there value?

2007-03-23 Thread Steve
Doesn't that destroy the entire reason for having variables within a class in the first place? Why not set them as private and use accessors and mutators to mess with their values? If you aren't going to use those, why not just create global variables and functions? You basically lose your enti

Re: [PHP] PHP URL issues

2007-03-14 Thread Steve
teach yourself to do subconsciously, then I feel it's definitely worthwhile to pursue. ""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, March 13, 2007 9:31 am, Steve wrote: >> This may or may not help, but here's a f

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
Instead of trying to call specific $_GET values, try printing out the entire $_GET variable. echo ''; print_r($_GET); echo ''; Anything else there? "Don Don" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $query_string = 'testId='. urlencode(trim($tmpTestId)) . '&userId=' . > u

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Steve
For your filter to return only/no digits, I would recommend doing a bit of reading on preg_replace ( http://us2.php.net/preg_replace ) while noting the following flags: \d Matches any decimal digit; this is equivalent to the class [0-9]. \D Matches any non-digit character; this is equivalent to

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
This may or may not help, but here's a few things to note: 1) I would avoid placing variable output in double quoted strings. While not important for smaller scripts, doing a large number of outputs like this causes a decent performance hit. In fact, I wouldn't use double quotes ever in php. In

[PHP] Re: Troubles from the newb again

2007-03-12 Thread Steve
The way I see it, you have two ways to avoid that error: 1) If you want to preserve indexes: foreach ($array as $index => $name) { if ($name->currentHP >0) { $newarray[$index] = $name; } } 2) If you don't care about indexes at all foreach ($array as $name) { if ($name-

Re: [PHP] Array mysteries

2007-03-11 Thread Steve Edberg
time.php I think you'll find your work has been at least partially done for you. And, see http://php.he.net/manual/en/language.variables.scope.php for more information on variable scope. steve -- +--- my people are the people of the dessert, -

Re: [PHP] Back to security

2007-03-10 Thread Steve Edberg
SSLRequireSSL for the directories that should be SSL-secured. steve -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMA

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