[PHP] ftp upload via web form - problem getting the file name correct

2005-03-07 Thread Steve Turnbull
t know why it gets converted to 'www.ourdomain.net' in the final stages? My code (rough, but you get the idea); Thanks for any help Steve $ftp_server = ''; $un = $_REQUEST['ftp_un']; $pw = $_REQUEST['ftp_pw']; $tmp_file = $_FILES['ftp_

Re: [PHP] ftp upload via web form - problem getting the file name correct

2005-03-08 Thread Steve Turnbull
Franklin van de Meent wrote: > Hello Steve, > > I tried this on my own servers and after replacing "" > with $ftp_server it works perfectly, all ASCII files get uploaded the > way they should with the correct filenames. > > Do you get any errors? (add error_re

[PHP] php books with more extensive LDAP and FTP explenations

2005-03-08 Thread Steve Turnbull
recommend... Also, I know the php.net website gives good examples,but a book would be nice... Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working with 3 arrays

2005-03-10 Thread Steve Slater
If you are certain that your keys are the same for each array, you can reference them by using the key as in foreach ($fields as $key=>$value) { $a = $fields[$key]; $b = $types[$key]; etc... } Steve I need to work with 3 different arrays where I get the value of the same key for al

Re: [PHP] incrementing a number from a text file

2005-03-11 Thread Steve Buehler
At 03:14 PM 3/10/2005, Richard Lynch wrote: > I want to read a number from an external (txt) file and increment it.then > save the number back on the text file. > I know this is possible but want a simple amd economical way to do this. That's what you *THINK* you want to do :-) But what happens whe

Re: [PHP] Question about "shortening" a string

2005-03-11 Thread Steve Slater
Mario, Many ways to do it, most using regex. This is not as clean as it can be but still shows the idea: This example works for any number of middle names (including zero) and any number of white spaces between words. You can probably get this more elegant, but this is one idea. Steve In Portgal

Re: [PHP] Question about "shortening" a string

2005-03-12 Thread Steve Slater
er ways to do it I'm sure. I just finished a project with a mess of pattern matching so have regex on the brain. :-) Steve On Mar 11, 2005, at 11:39 PM, Steve Slater wrote: Mario, Many ways to do it, most using regex. This is not as clean as it can be but still shows the idea: This example

[PHP] opendir

2005-03-15 Thread Steve Buehler
PROTECTED]/SHARE1/) [function.opendir]: failed to open dir: not implemented in /root/z.php on line 3 end z.php output Any help in this would be greatly appreciated. I really would like to get this running. I am assuming that there is a compile option that I need to add. Thanks S

Re: [PHP] if table not exists

2005-03-15 Thread Steve Buehler
http://dev.mysql.com/doc/mysql/en/create-table.html At 03:29 PM 3/15/2005, John Taylor-Johnston wrote: How do I get PHP to create a table, if one does not already exist? I have to do something with: $news = mysql_query($sql) or die(print mysql_error()); What can I also add something to $sql? $sql =

[PHP] reg expressions

2005-03-25 Thread Steve Buehler
that would be quicker. If the line starts with a #, then ignore it, otherwise, do some other stuff. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reg expressions

2005-03-25 Thread Steve Buehler
At 01:50 PM 3/25/2005, you wrote: Ok. I am really bad at regular expressions. I have to search through some files and put the contents into an array. A file could look like this: $aliases=`cat /home/virtual/site$site_id/fst/etc/mail/local-host-names`; start of file # local-host-names -

Re: [PHP] IRC from PHP - help

2005-04-01 Thread Steve Buehler
You might want to go to http://www.hotscripts.com and search for irc in the php category. Steve At 08:47 AM 4/1/2005, Matthew Fonda wrote: You might want to check out PEAR::Net_SmartIRC http://pear.php.net/package/Net_SmartIRC hello i'm a newcomer to this list, fairly experienced PHP progr

[PHP] ldap_connect error

2005-04-18 Thread Steve Turnbull
;connected'; } else { echo 'not connected'; } Has any one got any ideas of why this error get thrown? Regards Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ldap_connect error

2005-04-19 Thread Steve Turnbull
Richard Lynch wrote: > On Mon, April 18, 2005 2:43 am, Steve Turnbull said: >> I am running a LAMP setup consisting of Debian (testing), PHP4, Apache2, >> and >> MySQL 4. >> >> When I installed php, I used apt-get, and included in the list of modules >>

Re: [PHP] Dynamic Generating reports to print

2005-04-23 Thread Steve Brown
ast and easy. I love playing around with this product because the possibilities for what you can do are almost endless. HTH, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help for me about session

2005-04-23 Thread Steve Buehler
At 09:35 PM 4/23/2005, Josephson Tracy wrote: hi everyone, when i study php, i have a problem as following: - file1.php if($NextCourse == 1){ do something;} else($NextCourse ==""){do something other } ?> - but when the 2ed access the file1.php the value

Re: [PHP] Re:Re: [PHP] help for me about session

2005-04-24 Thread Steve Buehler
At 10:29 PM 4/23/2005, Josephson Tracy wrote: > At 09:35 PM 4/23/2005, Josephson Tracy wrote: > >hi everyone, > >when i study php, i have a problem as following: > >- > >file1.php > > >if($NextCourse == 1){ do something;} > >else($NextCourse ==""){do something other } > >?> > >-

Re: [PHP] reservation/booking script for a hotel

2005-04-25 Thread Steve Buehler
Go to http://www.hotscripts.com and type in "hotel reservation" in the "Search For" text box, change the category to "PHP" and then click on "Search". Steve At 08:10 AM 4/25/2005, you wrote: yes it will be real time and yes open source is what we're l

[PHP] Variables Help

2004-05-13 Thread Steve Douville
Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. TIA

Re: [PHP] variable passing using URL

2004-05-13 Thread Steve Douville
Capture the variables you've sent to the main frame page and send them via the url of the frames. Hope that helps. - Original Message - From: "gowthaman ramasamy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 14, 2004 2:24 AM Subject: [PHP] variable passing using URL

Re: [PHP] dynamically building insert/update forms from db

2004-05-14 Thread Steve Douville
Why don't you have your script do a desc on the table you pass to it, parse the results, and populate the data needed for your form building class? - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Friday, May 14, 2004 9:37 AM Subjec

Re: [PHP] dynamically building insert/update forms from db

2004-05-14 Thread Steve Douville
When you do a describe (desc tablename) it returns the type and length of the field in the database as part of the result set. You can parse that out and determine what kind of an input field to generate. - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To:

[PHP] string replace in files

2004-04-30 Thread Steve Buehler
gh to do that. I am hoping that someone out there has an easy response to this. Below is the code that I have so far. Thanks Steve #!/usr/bin/php http://www.domain.com/";; $replacewithstring="require \"/home/domain/www/"; replacestring(); function replacestrin

Re: [PHP] string replace in files

2004-04-30 Thread Steve Buehler
At 11:27 AM 4/30/2004, John W. Holmes wrote: From: "Steve Buehler" <[EMAIL PROTECTED]> > #!/usr/bin/php > $strtoreplace="require \"http://www.domain.com/";; > $replacewithstring="require \"/home/domain/www/"; > > replaces

[PHP] Apache 2 was: Re: [PHP] Re: PHP & Apache Version

2004-05-05 Thread Steve Wardell
use..." is not productive. Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP not parsing joined tables well

2004-05-17 Thread Steve Douville
I'm got a query that is joining a few tables. select par.*, pla.*, pro.*, reg.* from parent par, players pla, registrations reg, programs pro where blah blah blah Now, a result set is the same but I'm having trouble parsing it because I have column names that are identical in two of t

Re: [PHP] dynamic table

2004-05-26 Thread Steve Douville
echo ''; echo ''; while ($myrow = mysql_fetch_array($sql)) { echo ''; echo $myrow[0]; echo ''; } echo ''; echo ''; You did say you wanted 5 COLUMNS, not rows, in your table... right? "nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hiya, > > How can i draw a new AFTER F

Re: [PHP] Identifying spam text

2004-05-28 Thread Steve Edberg
;t have a pure-PHP solution, though, if that was really important to you - steve -- +--- my people are the people of the dessert, ---+ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis

Re: [PHP] Playing with globals

2004-05-28 Thread Steve Edberg
upposed to work as an alternative to "global" statement ? Not exactly. It allows to you access variables in the global context, but it doesn't make the variable itself global; only the 'global' declaration does that. steve -- +--- my people are the p

RE: [PHP] Newbie Question: Variables on the fly

2004-05-28 Thread Steve Edberg
count($dataPoint). See http://us3.php.net/manual/en/language.variables.external.php for more info on this technique. steve edberg At 01:24 AM 28/05/2004, Dennis Seavers <[EMAIL PROTECTED]> wrote: Maybe others will catch on to your intention, but I think you need to provide a bit mo

[PHP] Socket w/SSL Issues

2004-05-31 Thread Steve Douville
: close\r\n\r\n"); fputs($fp, $request . "\r\n\r\n"); //loop through the response from the server while(!feof($fp)) { echo fgets($fp, 4096); } //close fp - we are done with it fclose($fp); } Thanks in advance. Steve

Re: [PHP] PHP Basic's Problem with a simple script.

2004-06-01 Thread Steve Douville
This works perfectly fine for me, as is. fyi -- It doesn't matter what case "post" or "get" are in the code, the global _GET and _POST will be populated properly. - Original Message - From: "php-general" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 11:24 AM Su

Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
Those messages are only broadcast if you happen to send a message to the board cause people have autoresponders set. Given that there are only two and now one bad address returning a message, I find it fairly easy to just hit the delete button three times. I don't think this qualifies as spam. So,

Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
age - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Steve Douville" <[EMAIL PROTECTED]>; "Php-General-Help" <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 12:01 PM Subject: RE: [PHP] Spammers [snip] Those messages are only broadcast

Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
y would be prompted to do something about it. Oh, look, two more to delete. (I knew the risk, believe me...) ;-) - Original Message - From: "Justin Patrin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 1:43 PM Subject: Re: [PHP] Spammers

Re: [PHP] php installation verification

2004-06-02 Thread Steve Douville
Open a file. Put this code in there: Save as test.php and point your browser to it. - Original Message - From: "Nguyen, Long P (Mission Systems)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 02, 2004 4:33 PM Subject: [PHP] php installation verification > I am new

[PHP] HTTP_REFERER

2004-06-04 Thread Steve Douville
I think I'm having a major brain fart here. Is there a $HTTP_REFERER anymore? It doesn't show up as a server variable or anything at all in phpinfo()... using php 4.3.4 Ideas? TIA, Steve

Re: [PHP] HTTP_REFERER

2004-06-04 Thread Steve Douville
lmao -- uh huh Problem was that I was using a javascript redirect and of course, that doesn't send any value. Found that out just a minute ago. New the stupid variable existed... Think I'll grab the info in js and then redirect it to the php page as part of the query string. Tha

Re: [PHP] Multiple URL Redirection

2004-06-05 Thread Steve Buehler
At 06:39 PM 6/5/2004, you wrote: Hi I have the following situation: I've got a domain that is hosted at a certain host. This host allows me to create subdomains, and also to add several domains to the same account. The thing is if I add a domain like xxx.com to my yyy.com both will be directed to

[PHP] Squirrelmail Plug

2004-06-07 Thread Steve Douville
Kudos, kudos, kudos to the people who developed this webmail application and kudos to people who contributed plugins. Truly an easy program to install. The plugins are endless and also simple to install and configure. An excellent PHP application, highly recommended for anyone that needs a powerfu

Re: [PHP] previous page

2004-06-09 Thread Steve Douville
Try: $_SERVER['HTTP_REFERER'] You misspelled it... - Original Message - From: "Larry E. Ullman" <[EMAIL PROTECTED]> To: "cab" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 09, 2004 8:46 AM Subject: Re: [PHP] previous page > > Thanks all makes sense, but, if I add th

Re: [PHP] Getting Server time

2004-06-10 Thread Steve Douville
Since PHP is parsed on the server and not on the client machine, you should be getting the server time. You can figure out in which TZ the server is by comparing it to the time where you are. Steve - Original Message - From: "Alex Hogan" <[EMAIL PROTECTED]> To: "PHP

Re: [PHP] Getting Server time

2004-06-10 Thread Steve Douville
lol -- If I get email not intended for me, it is now MY property and I'll darn well send it, copy it, distribute it as I see fit. Kinda like getting stuff in the mail you didn't order... And I guess the admins finally did something about those two autoresponders. THANKS!! - Original Message --

Re: [PHP] PHP pros and cons

2004-06-11 Thread Steve Douville
, CF, Perl) deployment time is about the same. Maybe a little longer for Perl. All of the 4 languages have plenty of documentation written about them. I do like CF's ability to just name data sources on the server and reference them that way. Think ASP can do the same, not sure. My 2 cents... Steve

Re: [PHP] Header target?

2004-06-11 Thread Steve Douville
e it makes sense. Steve - Original Message - From: "Bob Lockie" <[EMAIL PROTECTED]> To: "php-general Mailing List" <[EMAIL PROTECTED]> Sent: Friday, June 11, 2004 9:07 PM Subject: [PHP] Header target? > Is it possible to specify the target frame in a "

Re: [PHP] Installation Question

2004-06-11 Thread Steve Douville
did you set up the mime types in apache? did you restart apache? - Original Message - From: "Marlene Thoms" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 12, 2004 12:37 AM Subject: [PHP] Installation Question I am running Windows XP and have installed Apache2, MyODBC,

Re: [PHP] PHP pros and cons

2004-06-12 Thread Steve Douville
Yes, pardon me for actually providing to the spirit of this list, to help people find ways to meet their objectives. Just saying "no" isn't very constructive, now is it? :-) "Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ste

Re: [PHP] Erroring out?!

2004-06-14 Thread Steve Douville
You need to quote the $user: $query = "select * from quoteprefs where salesman = '$user'"; - Original Message - From: "Robert Sossomon" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, June 14, 2004 2:44 PM Subject: [PHP] Erroring out?! > I am trying to figure out w

Re: [PHP] Load a frame and work on another?

2004-06-14 Thread Steve Douville
Did you try to just echo the javascript statements instead of trying to use the header? Should have the same effect. - Original Message - From: "Robert Sossomon" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, June 14, 2004 2:32 PM Subject: [PHP] Load a frame and work

Re: [PHP] Erroring out?!

2004-06-14 Thread Steve Douville
query didn't return data. In your case, missing the quotes on $user, you won't return data from the query because the query is in error. Steve - Original Message - From: "Robert Sossomon" <[EMAIL PROTECTED]> To: "'PHP List'" <[EMAIL PROTECTED]&

[PHP] Syntax Help, Please

2004-06-15 Thread Steve Douville
I've forgotten how to assign something like this... $someStr = EOF>>>" bunch of raw non-echo'd html " EOF>>>; But can't seem to get the right syntax. Tried looking in the manual, but don't even know what I'm looking for! TIA, Steve

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
What are you outputting? html, text, email body...?? - Original Message - From: "Phpu" <[EMAIL PROTECTED]> To: "Oliver Hankeln" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:06 AM Subject: Re: [PHP] Problems with arrays > I've tried this but it is not workin

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
Can you give us the code from to ? - Original Message - From: "Phpu" <[EMAIL PROTECTED]> To: "Steve Douville" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:14 AM Subject: Re: [PHP] Problems with arrays > I want the

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
you don't need to set $InputString at all in this loop, you could just use $element.) $element) { $InputString = "$element"; echo "$InputString\n"; } ?> Hope that helps. Steve - Original Message - From:

Re: [PHP] R: [PHP] Holding links in a database

2004-06-24 Thread Steve Douville
People with 10+ line sig's shouldn't talk about trimming posts... ;-) (or did I misunderstand what you meant about trimming posts? lol) - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 24, 2004 9:36 AM Subject: Re: [PHP] R: [PHP] H

[PHP] PHP cgi

2004-07-02 Thread Steve Douville
There used to be a way that stripped something from a PHP binary that drastically reduced the size of the cgi file. For the life of me, I can't remember and can't find it on google anywhere. Anyone know what it is? TIA, Steve

Re: [PHP] user-defined superglobals

2004-07-04 Thread Steve Douville
Or if you wanted it to be pretty... define('MY_DATABASE_USER', 'user'); define('MY_DATABASE_PASS', 'pass'); mysql_connect('localhost',MY_DATABASE_USER,MY_DATABASE_PASS); - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Michael Collins" <[EMAIL PROTECTED]> Cc: <[EMAIL

Re: [PHP] Re: make an image disappear when page loads

2004-07-05 Thread Steve Douville
I use two div tags, one encapsulating the page contents and one that holds the image. PHP turns them on or off by echoing a javascript command at the appropriate time when the data is compiled and ready to show. - Original Message - From: "Pierre" <[EMAIL PROTECTED]> To: "'Egil Berntsen'"

[PHP] Re: PHP and HTML Conventions

2004-07-12 Thread Steve Douville
I generally do all my program logic first then go to HTML. Once I start HTML, I drop in the PHP stuff where I need it. I think, but am not sure, that it also cuts down on processing time not having to parse out echo tags. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Apache 2 and PHP for Production?

2004-07-20 Thread Steve Wardell
as to support both Apache versions will be greatful when 1.3 falls away as most users move over to Apache 2 in time. Steve From: Curt Zirzow <[EMAIL PROTECTED]> Date: Mon, 19 Jul 2004 23:05:50 -0400 * Thus wrote Oliver John V. Tibi: Wow! And come to think of it, how did you do it? Or sho

Re: [PHP] Efficient way to filter this string

2004-07-22 Thread Steve Edberg
tp://marc.theaimsgroup.com/?l=php-general&r=1&w=2 See http://php.he.net/preg_match and ternary operators in http://us2.php.net/language.operators for more info. - steve -- +--- my people are the people of the dessert, ---+ | Steve Edberg

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

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

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

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

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

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

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

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

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

[PHP] Count

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

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

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

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

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

[PHP] Directory

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

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

[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

<    9   10   11   12   13   14   15   16   17   >