RE: [PHP] include() and div align=top

2002-07-22 Thread Jay Blanchard
[snip] When i use div align=top on an include inside of a table cell it dosen't work. Any reason? Almost certainly there'll be a reason. Browse the page in question in your web browser and then view the source - see if you've ended up with your page source as you'd intended. Most of these

RE: [PHP] is php.net down ?

2002-07-22 Thread Jay Blanchard
[snip] any one else able to get into www.php.net ? [/snip] Nope... :^[ Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Parse error

2002-07-22 Thread Jay Blanchard
[snip] Getting Parse error on last line of code which is just html Here is php code on page ... [/snip] Check your curly braces, this is the most often cause of a last line error. You either have too many or not enough. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and 4.2.1

2002-07-22 Thread Jay Blanchard
[snip] Can anyone that has done it comment on the complexities of the upgrade? [/snip] Well, trying to updrade on Slackware Linux 8.0 and compiling with the GD (1.8.4) libraries are giving us some headaches. Some of what seems to be wrong; phpinfo() does not show new build times for each

RE: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and 4.2.1

2002-07-23 Thread Jay Blanchard
[snip] Well, trying to updrade on Slackware Linux 8.0 and compiling with the GD (1.8.4) libraries are giving us some headaches. Some of what seems to be wrong; ... You're simply looking at the old PHP. You did stop/start Apache, right?... Cuz the new PHP won't kick in until you do. If so,

RE: [PHP] redirecting after login

2002-07-23 Thread Jay Blanchard
[snip] A site I'm working on requires a login screen where various individuals will log into the site and add information for their various departments. Rather than setup a different script for each department, I was hoping to create one script that would either accept or deny a login based on

RE: [PHP] re: OO Programming - get practical

2002-07-23 Thread Jay Blanchard
[snip] For a really good overview of the OO programming read Thinking in Java by Bruce Eckel. What you learn can then easily be applied to your coding practices in PHP. The author has made the book available for free from his site www.mindview.com [/snip] Try http://www.mindview.net HTH!

RE: [PHP] Newman Asks, List Asks ...

2002-07-25 Thread Jay Blanchard
..do you have access to http://www.php.net? Nothing personal Newman, but RTFM. Most of the answers, if not all are there. Also, did you know that http://www.vaahq.com is down? Just thought I'd let you know since it is in your portfolio. Oh, and that whole tird-person Newman thingboring and

[PHP] PHP Meetup, how many of you have signed up?

2002-07-25 Thread Jay Blanchard
Top 10 Locales -- Washington DC (9 members) Amsterdam (7 members) Leeds, UK (7 members) London, England (7 members) Atlanta (5 members) Manhattan (below 42nd St) (5 members) Melbourne (5 members) Oakland-Alameda, CA (4 members) Nashville, TN (4 members) St. Louis, MO (4 members) I am somewhat

RE: [PHP] Paying Job...

2002-07-25 Thread Jay Blanchard
C'mon guys, he asked a legitimate question that most freelancers ask when they start. Here is the starting question; How much is your time worth to you? $50 an hour, $200.00 a day, $6000 a month? Here is one method; a. Estimate how many hours you think that the job will take once you have

RE: [PHP] GD Library

2002-07-25 Thread Jay Blanchard
[snip] I am trying to use GD Library on a windows 2000 installation of PHP. php_gd.dll is in the extensions folder and the line: ;extension=php_gd.dll is in my php.ini file, but I recieve the error: Fatal error: Call to undefined function: imagecreate() when I try to use the

[PHP] MySQL to Excel using PHP

2002-05-01 Thread Jay Blanchard
Howdy all! Some of my users want Excel reports from MySQL databases, so I have done the following with PHP; !--BEGIN CODE-- ? header(Content-Type: application/x-excel); header(Content-Disposition: inline; filename=\excel.xls\); header(Expires: 0); header(Cache-Control: must-revalidate,

RE: [PHP] session variables and classes?

2002-05-01 Thread Jay Blanchard
and pages. You could perform an easy test by creating a class containing a registered session variable and attempt to call that variable from another page. Jay Blanchard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Variable Help.

2002-05-01 Thread Jay Blanchard
/charts.php?varname=wk0001-fri-18-jan-2002 varname=wk0001-fri-18-jan-2002 where varname is the variable name and wk0001-fri-18-jan-2002 is the variable value. In the next page the value will be available in the variable $varname Jay Blanchard -- PHP General Mailing List (http://www.php.net

[PHP] RE: MySQL to Excel using PHP More Questions (Pivot Tables)

2002-05-01 Thread Jay Blanchard
to an array and then place the values properly? I am at a loss here. Thanks! Jay Blanchard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Jay Blanchard
Add ? session_start(); ? At the top of each page, before anything else is done. Jay -Original Message- From: Adam Douglas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 3:15 PM To: PHP-General (mailing list) (E-mail) Subject: [PHP] Session Initially Does Work Hi.

RE: [PHP] Any ideas on content management system for Apache+PHP+MySQL

2002-05-02 Thread Jay Blanchard
there as well. Here are some other resources; http://www.cms-list.org/ http://www.cmswatch.com/ http://www.contentmanager.eu.com/ http://developer.ez.no/ HTH! Jay Blanchard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Header Information for Formatting?

2002-05-02 Thread Jay Blanchard
(Content-Disposition: inline; filename=\excel.xls\); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0, pre-check=0); Thanks! Jay Blanchard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] rather a mysql question

2002-05-03 Thread Jay Blanchard
Create New TMP INDEX And so on --Someone else Hope this helps as this is the way it was explained to me quite a long time ago, so I may not have the flow exactly right. Jay Blanchard -- PHP General Mailing List (http://www.php.net

RE: [PHP] PHP editing environment

2002-05-03 Thread Jay Blanchard
(not difficult at all), and for under $200 you could have a nifty little test server. Jay Blanchard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP to Excel, Quick Question

2002-05-03 Thread Jay Blanchard
Again, thanks to folks on the list I learned the stupid IE trick for opening an Excel worksheet in the browser from a PHP generated table. Here is another quick question...in my DB query for the values I have SUM(IF(If FOO is this, return this number, else return a blank)) that looks like this

RE: [PHP] PHP to Excel, Quick Question, DONE

2002-05-03 Thread Jay Blanchard
[snip] SUM(IF(If FOO is this, return this number, else return a blank)) that looks like this really SUM(IF(RecordID = '100101', 1, '')) as min1 Which works correctly BUT, if the statement is false it does not show a blank cell in the worksheet, but a 0 (zero). I have tried stuff, 1, '\'' (escape

RE: [PHP] Controlling Word Files (FDA Concern)

2002-05-03 Thread Jay Blanchard
[snip] Does anyone know of how to put a Word file on a web page without the user being able to save it to their hard drive? And also another issue of making it so they can't print it. Thanks, Gary Aeh, -If one could see the content on a webpage, it has it already on it´s machine. Then it could

[PHP] Formatting Information in header? Gridlines in Excel

2002-05-06 Thread Jay Blanchard
=\excel.xls\); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0, pre-check=0); Thanks! Jay Blanchard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Formatting Information in header? Gridlines in Excel

2002-05-06 Thread Jay Blanchard
, which it does just fineuh oh...I feel an idea coming onlet me try adding a border=1 to the table tagthat works! Thanks for wording it differently, I saw it in a different light and the answer cam upon me like a Monday morning lightning strike. Jay Blanchard -- PHP General Mailing

RE: [PHP] Formatting Information in header? Gridlines in Excel

2002-05-06 Thread Jay Blanchard
of the PHP page. The steps are; 1. Create a PHP file with the header info 2. Do a PHP request to the database. 3. Use the results to create an HTML table within the PHP 4. Open this table in a spreadsheet HTH! Jay Blanchard -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Self Destruct code

2002-05-07 Thread Jay Blanchard
[snip] I have a funny request; I wrote a system for a client and am rather concerned that I am not going to receive payment for the work done. They want me to hand over the code before they are willing to pay, so basically I will be left at their mercy; if they don't pay, they will still have a

RE: [PHP] Self Destruct code

2002-05-07 Thread Jay Blanchard
[snip] Too easy...the client would just have to check the code for it and he would have the code. Better get a md5'd version of the code from somewhere in the net (from your server for example) and compare it to the md5'd version of the code the client put in. But that way the client could

[PHP] Crosstabs PHP [long]

2002-05-07 Thread Jay Blanchard
I have the following code in page to query a 12,000,000 record DB for a crosstab; //query for RecordID list $qrid = SELECT DISTINCT RecordID ; $qrid .= FROM tblCrosstab ; $qrid .= ORDER BY RecordID ; $dbrid = mysql_query($qrid, $dbconnect) the second query is created on the fly, because I may

RE: [PHP] Semantics, was Destroying Sessions

2002-05-10 Thread Jay Blanchard
[snip] Just to clarify myself above... if ($var1 = $var2) { . In my crazy head, I see $var1 and $var2 to be in a sort of read-only state inside the () of the if statement. For a if statement to be able to change the values in that instance, would be wrong for me. Afterall, the logic of a

RE: [PHP] Upload picture files

2002-05-10 Thread Jay Blanchard
[snip] What utility or function can I use to upload pictures from the users computer in a form ? [/snip] RTFM at http://www.php.net/manual/en/features.file-upload.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Alternating table rows...

2002-05-10 Thread Jay Blanchard
[snip] Is there a way for me to do one of the following: 1) Test to see if $i is an even or odd number? 2) Grab more than one line from the database at a time, and just put in two table rows at once? [/snip] ? $rowcount = 0; while($dbrowa = mysql_fetch_object($dbseta)){ $dbrowb =

RE: [PHP] Alternating table rows...

2002-05-10 Thread Jay Blanchard
[snip] ? $rowcount = 0; while($dbrowa = mysql_fetch_object($dbseta)){ $dbrowb = mysql_fetch_object($dbsetb); //change the color of alternating rows $rowcount ++; if ($rowcount == 1){too many lines of code [/snip] I get humbled by this list every day. Could I have Single PHP Lines

RE: [PHP] css sheets in designs

2002-05-14 Thread Jay Blanchard
[snip] CSS sheets have to be in the document root somewhere, don't they? [/snip] Nope. You just have to be able to refer to them in the LINK REL tag in the sheet(s) to be styled. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Newbie challenge to brainiacs

2002-05-14 Thread Jay Blanchard
[snip] I want to try to find the hour that has the most hits The day of the week that has the most hits and the max and ave no of hits of these. I haven't given it a whole lot of thought but I'd be tempted to dump the whole thing into an appropriately structured sql database and then use

RE: [PHP] Load data infile

2002-05-14 Thread Jay Blanchard
[snip] Is it possible to do the load data info mysql command via PHP I get an access denied error from mysql when i try to do that. [/snip] Are the permissions granted properly for the PHP user in the connection statement? Jay -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] IF Statements

2002-05-15 Thread Jay Blanchard
[snip] People, hope you can help. The below IF statement is getting a PARSE error. Can anyone spot why? if (($this-checkReferralCB($this-benefitRef, $this-benefitNo, $this-childDOB)) (!$this-checkLocation($this-post, W)) (!empty($this-childDOB))) ||

RE: [PHP] Newbie help please!

2002-05-15 Thread Jay Blanchard
[snip] test.html code html head titleUntitled/title /head body /body a href=test.php?user=adminpass=123456Click here/a /html test.php code ?php $username = user; $password = pass; echo $username; echo $password; ? [/snip] $user will be 'admin' $pass will be '123456'

RE: [PHP] Mysql Query Help needed

2002-05-16 Thread Jay Blanchard
[snip] select cust_fnn, cust_name, agroup_access.group_access_cust from cust, agroup_access where agroup_access.group_access_group='$id' cust.cust_fnn!=agroup_access.group_access_cust order by cust.cust_name [/snip] try this (note syntactical differences); select cust_fnn, cust_name,

RE: [PHP] what is php.ini on linux?

2002-05-16 Thread Jay Blanchard
[snip] I did copy the php.ini-recommended into /etc/php.info, rename it to php.ini put the max execution time to 6 and restarted apache (php as module) But I do still get a max execution time 30s reached. Do you have an idea what's wrong? [/snip] Did you restart your HTTP server? If not the

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jay Blanchard
[snip] but this is only needed only if you compile php into apache or am i wrong? if i have the cgi version installed, i can call the php script directly from the shell. The only thing for me to do then, is to set #!/path.to/php in the first line of the script, right? [/snip] Can you have

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread Jay Blanchard
[snip] Works well, and if your using libraries of code, you can share between the web module and the cgi. his is what I do, and sometimes I run a daemon to update a cache, so that the web module never needs to hang the user while it retrieves data from a remote site. [/snip] Too cool, I will

RE: [PHP] PHP+MySQL - Excel ?

2002-05-17 Thread Jay Blanchard
[snip] Is it possible to create an excel file with some data from mySQL, using PHP ? [/snip] Evan, I'll send you the article I recently wrote for evolt.org, it details all of the things you need to know. Excel will honor all HTML table formatting issues, except color. Colors need to be stated

RE: [PHP] PHP+MySQL - Excel ?

2002-05-17 Thread Jay Blanchard
[snip] It is also possible to connect directly to MySQL from Excel via MyODBC. True, but only if you are running PHP on a windows platform, yes? [/snip] Nope, no PHP, just the ODBC driver would have to live on Windows Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Re: Using PHP for NULLs

2002-05-20 Thread Jay Blanchard
[snip] I do believe it is a MySql question!! What's wrong with the old standard way as: $result = mysql_query( SELECT *, if (last_name is NULL,'zzz end',last_name) as last_name_sort FROM new_miatapix ORDER BY last_name_sort LIMIT $page, 20); $result = mysql_query(SELECT * FROM

RE: [PHP] PHP Cookies

2002-05-20 Thread Jay Blanchard
[snip] Hi, i want to use a cookie to set a skin for a site but when i go to the site when there is no cookie set then it will display no images background colors ect... So what i need to do is have a command that will set other images background ect. as default if there is no cookie there. How

RE: [PHP] Passing Variables

2002-05-23 Thread Jay Blanchard
[snip] ?php $db=mysql_connect('localhost','',''); mysql_select_db($database,$db); $sql=select COUNT . $this . from . $table . group by . $this . ; ? But that results in what looks like an invalid sql query! [/snip] My bad... I didn't test, should be... $sql=select

RE: [PHP] Passing Variables

2002-05-23 Thread Jay Blanchard
[snip] me.php ?php $db=mysql_connect('localhost','',''); mysql_select_db($database,$db); $sql=select COUNT($this) from $table group by $this; ? [/snip] ?php $db=mysql_connect('localhost','',''); mysql_select_db($database,$db); $sql=select COUNT . $this . from . $table .

RE: [PHP] DNS-less Connections With PHP?

2002-05-29 Thread Jay Blanchard
of DSN-less connections as it supports many database types with native functions. Even ODBC uses a set of native PHP functions for connections with databases. You don't say what type of database you are using, but it is likely that PHP has support for it. Jay Blanchard -- PHP General Mailing

RE: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Jay Blanchard
[snip] ...lots of stuff from lots of messages... [/snip] If you need to display PHP code in an HTML page and have it validate properly you need to use the following; lt;? php ?gt; which will properly display as ? php ? As a matter of course it is typical to use lt; () and gt; () along with a

RE: [PHP] Advantages of php

2002-05-29 Thread Jay Blanchard
[snip] Hmm...point number 1 would be time management, for you! Maybe you should've started researching this more than a day before hand. [/snip] +1 John [snip] I'am a php programer, [/snip] And GET POST you don't know? [snip] I have got an seminar on 31st of May(hardly one day

RE: [PHP] Why does the mail() function hang ?!?

2002-05-31 Thread Jay Blanchard
Did you check your error log? -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: [PHP] Why does the mail() function hang ?!? I'm using the mail() function, it sends the message properly but the page

RE: [PHP] Run php function with user click

2002-05-31 Thread Jay Blanchard
[snip] On Friday 31 May 2002 05:44, you wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? No. PHP is a server side application. The only way to

[PHP] Previous Next Navigation

2002-06-03 Thread Jay Blanchard
Howdy! I am working on a project where approximately 3k - 5k records are returned and need to be displayed 30 per page with 'previous' and 'next' navigation at the request of the users. Does anyone know of an efficient script that will do this in PHP (with MySQL) that will not query the database

RE: [PHP] Previous Next Navigation

2002-06-03 Thread Jay Blanchard
[snip] So you think it's more efficient and faster to load a 3 - 5 thousand row table into an array in memory and pass that around to all of your scripts (through sessions?), rather than just passing a $page variable and doing a query to return 30 rows on each page?? If you pass a $Page

RE: [PHP] Previous Next Navigation

2002-06-03 Thread Jay Blanchard
[snip] Okay...glad to see someone put some thought into it instead of just wanting to do it because queries are bad!. Also, the speed of the query doesn't depend on the connection speed at all. [/snip] I know...in this case it is just the number of records that are needed vs. the number of

[PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jay Blanchard
Quite frequently on this list and others there are questions where it is obvious that the manual or list archives have not been searched. Heck, some of these are cross posted to many lists where the sender may think that they will get relevant information. On the MySQL list the footer even has

RE: [PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jay Blanchard
[snip] If you had searched the list archives yourself you would have seen that this has been suggested a few times and rejected each time because nobody would stick around and answer the newbie questions and newbies, being newbies, would figure out where the people who can answer their questions

RE: [PHP] countries

2002-06-04 Thread Jay Blanchard
[snip] Apologies for being slightly OT, but has anyone got an array or list of countries that I can use to populate a pull-down menu? Or maybe a link to a resource to find this sort of stuff? [/snip] A quick search on Google

RE: [PHP] Ho to write output of sql query to txt file?

2002-06-04 Thread Jay Blanchard
[snip] I am trying to get only records out of a table mathing a query. This should be piped into a textfile. My problem is that I have to transmit this records to a new machine. So the output should be a kind of sql commands which I could run with phpadmin or similar to import them to the other

[PHP] Close A Databse Connection

2002-07-26 Thread Jay Blanchard
Well, it's Friday afternoon and the pre-pub run debates have started :^] The choice of arguement today is born of the fact that I advised a newbie to always use mysql_close() to close the connection to the database. It's good form and will cover any ills where the database connection fails to

RE: [PHP] Changing a variable's value when a link is clicked

2002-07-26 Thread Jay Blanchard
[snip] Is there a way to change the value of a global variable when someon clicks a a href URL link on a web page? [/snip] If the variable is sent via GET i.e.; http://something.com/foo.php?bar=stuff then you could; $bar = $_GET['bar']; //where $bar is the global to be changed, $bar would now

RE: [PHP] selcet statement question

2002-07-26 Thread Jay Blanchard
[snip] I know that i can retrieve records 1-24 in my db with a select statement like SELECT whatever FROM tablename ORDER BY id ASC LIMIT 23, but how can I get records 25 to 50 if I have 100 records in my DB? [/snip] Different DB's have differing ways of doing this, like MySQL; SELECT * FROM

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[snip] I have a redirect i would like to do using php. It will go something like this if (mysql_db_query ($dbname, $query, $link)) { {redirect would go here} } else { {a different location on this redirect here} How can i accomplish this? i just do not know php well enough to code

[PHP] exec() not working in one script...

2002-07-26 Thread Jay Blanchard
Frustrating! I have scripts that do this exact thing, on this exact server, for that matter in this exact set of directories, now it will not work; $filename = NIIRTQWCDR. . date(Ymd) . . . $cycle; //open new file and write records to it $cdrfile = fopen(/usr/local/www/data.default/rcr/ .

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[snip] Learning about HTTP protocol helps a LOT with understanding headers. Basically, the headers are generated by the server to tell the client (browser) what to do. If you send ANYTHING (even a hard return) before the header function is invoked then you will get this error. In essence, if

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[snip] What's ASP I don't know if and haven't learned it so it couldn't be. After all, how many programming languages does one need to know?? [/snip] a. I should have looked closer, you used JavaScript. b. window.location=$myurl is used in ASP (Active Server Pages - M$), more specifically

RE: [PHP] PHP counterpart to 4GuysFromRolla?

2002-07-29 Thread Jay Blanchard
[snip] Is there a PHP counterpart to this site: http://www.4GuysFromRolla.com/ [/snip] http://www.phpbuilder.com ? Jay Monday is an awful way to spend 1/7th of your life * * Want to meet other PHP developers * * in your area? Check out: * *

RE: [PHP] Brain Fart- table formatting help

2002-07-29 Thread Jay Blanchard
[snip] I'm trying to format the output of a db query with alternating row colors, the thing is the usual if ($i%2) {} will not work here because the alternating colors do not necessarily fall on odd or even rows. [/snip] ?php $i = 0; while($exrows = mysql_fetch_object($dbcdrex)){

RE: [PHP] Brain Fart- table formatting help

2002-07-29 Thread Jay Blanchard
[snip] Isn't that the same thing essentially? See, from the time ($row-show_title) is true until it is true again is not a fixed number so the only constant is that if ($row-show_title) is true then the tr background color will be on. Then I need to alternate the background color between on and

RE: [PHP] Re: PHP4 and MS Excel?

2002-07-31 Thread Jay Blanchard
[snip] Are you actually telling me how to SAVE an excel file as text (CSV) format THROUGH excel ? H Thanks (I guess...) But I learned how to do that, oh I dunno, about 20 years ago. My question was how to do it using PHP and COM. [/snip] Actually this may be a hint ... fire up a

RE: [PHP] Printing a PHP Class

2002-07-31 Thread Jay Blanchard
[snip] My question is: How does one print out the Array? [/snip] Try print_r http://www.php.net/manual/en/function.print-r.php HTH! Jay I took a pain pill, why are you still here? *** * * * Texas PHP Developers

RE: [PHP] Re: [PHP-DEV] [CROSS POST] PHP Meetup Texas PHP Users

2002-07-31 Thread Jay Blanchard
[snip] First of all, sorry for the additional cross post. MeetUp.com lacks the ability to let you contact other folks who have signed up. In my general area, Massachusetts, there are a bunch of tiny groups scattered about, and I'd like a chance to get all of them to converge in one place to make

RE: [PHP] Re: [PHP-DEV] [CROSS POST] PHP Meetup Texas PHP Users

2002-08-01 Thread Jay Blanchard
Well, the predictions have come true. In San Antonio only four folks signed up for the meetup, and the event was cancelled with no way to get in touch with the other local developers to make a go of it. Out of the 147 cities listed only 15 had enough people for meetup.com to do their thing. A

[PHP] mktime() question

2002-08-02 Thread Jay Blanchard
Good morning! I need to subtract months by their abbreviated month name, so shouldn't this work? print(date(M, mktime(date(M)-$i)); and if I loop; Aug Jul Jun May Thanks! Jay What if the hokie pokie really is what it is all about *** *

RE: [PHP] mktime() question - SOLVED

2002-08-02 Thread Jay Blanchard
[snip] I need to subtract months by their abbreviated month name, so shouldn't this work? print(date(M, mktime(date(M)-$i)); and if I loop; Aug Jul Jun May [/snip] Apparently not. But you can subtract by total hours in a given period, so for an average I chose 30 days * 24 hours

RE: [PHP] image function

2002-08-12 Thread Jay Blanchard
[snip] I want to use the image functions listed in www.php.net to manipulate images. My server is Apache 2.0.x.x with PHP 4.2.2 , built on windows platform. Is it uncomment the ;extension=php_gd.dll in php.ini enough to enable such functions? [/snip] Not on Apache. You will need to

RE: [PHP] image function

2002-08-12 Thread Jay Blanchard
[snip] I known i need to install a lot of staffs to get all the functions works(GD Lib, FreeType Lib, libjpeg, libpng, zlibetc etc). But i only need a few of them, so if i just load the php_gd.dll, what functions included?? I canr found any information about that. And one more, does

RE: [PHP] Maximum in SQL query?

2002-08-12 Thread Jay Blanchard
[snip] It seems that MySQL only accepts queries that are 470 characters or smaller when I use PHP. Is this a known thing? Can I change it somehow? I printed the query: Query: REPLACE INTO foto (ID, titel, fotograaf, origineel_formaat_x, origineel_formaat_y, datum_invoering, datum_wijziging,

RE: [PHP] dates greater than 2002-01-18 create error

2002-08-12 Thread Jay Blanchard
[snip] Anytime I try to add a day to the date 2002-01-18, I get a Warning: unexpected error in date() error. Can anyone shed some light on this. [/snip] If you'll shed some code on this, we'll shed some help :^] Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] dates greater than 2002-01-18 create error

2002-08-12 Thread Jay Blanchard
[snip] ? $day = 2038-01-19; $day_temp = date(d, strtotime($day)); $month_temp = date(m, strtotime($day)); $year_temp = date(Y, strtotime($day)); $temp_date = mktime (0,0,0,$month_temp ,$day_temp+1 ,$year_temp); echo date (Y-m-d, $temp_date); ? [/snip] I take out '+1' and the result is

RE: [PHP] Variable naming standards???

2002-08-13 Thread Jay Blanchard
[snip] A philosophical question Are there any standards to naming variables?? I was told that one should include a letter or combination of letters to describe a variable i.e. $sfoo = 'string'; // string $bfoo = true; // bool $nfoo = 10; // interger [/snip]

RE: [PHP] switch statement question

2002-08-13 Thread Jay Blanchard
[snip] Say i have a variable $string_var = Once upon a time; is there a way to do this: Switch($string_var) { case(contains Once): doSomething(); break; case(contains the end.) doOtherThing(); break; case(contains time) doNothing(); break; default: echo ERROR }

RE: [PHP] fgets question

2002-08-14 Thread Jay Blanchard
[snip] 1%0A2%0A3%0A4%0A5%0A6%0A7%0A8%0A No extra newlines that I could see. 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n I create this PHP program and run it: ?php $fd = fopen (test,r); while (!feof ($fd)) { $buffer = fgets($fd, 4096); echo buffer is $buffer; } fclose ($fd); ? The only way that

RE: [PHP] !== (was Re: [PHP] how many files are in a directory)

2002-08-14 Thread Jay Blanchard
[snip] // Note that !== did not exist until 4.0.0-RC2 I took a quick look at the docs to find out what !== meant (because I'd never seen it before). I'm not sure I understand what it's use is. Could someone explain why you would use it and for what purpose? [/snip] $a !== $b Not identical

RE: [PHP] Automatically send email on special day

2002-08-15 Thread Jay Blanchard
Whay not just set up a page that lists today's birthdays and a button that sends e-mail greetings. You can place this page in a secure directory so everyone who visits can get to it and click the button. a. create page and script b. place in secure directory c. log in each day d. click button

RE: [PHP] How to show data in one row from two rows from the database

2002-08-15 Thread Jay Blanchard
[snip] Something like: $sql = Select DISTINCT COUNTRY from tariffs; $result=mysql_query($sql) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { echo Rates for {$row['COUNTRY']}br\n; $sql = select DISTINCT GROUP from tariffs where COUNTRY='{$row['COUNTRY']}' order by GROUP;

RE: [PHP] MySQL to csv

2002-08-15 Thread Jay Blanchard
[snip] Can someone show me how to export MySQL table to a csv file? [/snip] From http://www.mysql.com/doc/en/SELECT.html The SELECT ... INTO OUTFILE 'file_name' form of SELECT writes the selected rows to a file. The file is created on the server host and cannot already exist (among other

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] why does include always opens my included file although it is defined as a variable Example: $file=include(/myfile/myfile.txt/); shouldn't it only be opend by typing echo $file; [/snip] The include() opens the file to place it in the variable, in other words include means READ INTO.

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread Jay Blanchard
[snip] I asked this question a while ago, and I am still seeking clarification, I fooled with ereg_replace and they only do a piece of what I want, I would like to know how to keep only a chunk of text defined between 2 tags let's say, div and /div and ignore everything else, I also have to

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] What is in the file? Do you have a print($file) or echo somewhere? Does the included file have print() or echo() in it? No, in the file is only html [/snip] There you go ... HTML will be parsed by the browser and displayed. So it is doing exactly what it is supposed to do. HTH! Jay

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] [snip] What is in the file? Do you have a print($file) or echo somewhere? Does the included file have print() or echo() in it? No, in the file is only html [/snip] There you go ... HTML will be parsed by the browser and displayed. So it is doing exactly what it is supposed to do. [/snip]

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] Are you wanting to place the file into the variable so that you can echo it out later? That is an extra step that you do not need. Just place the include() function where you want it to appear. But what do if i want echo it out later - That's exactly what i want do [/snip] You mean more

RE: [PHP] include opens source, but it shouldn't

2002-08-15 Thread Jay Blanchard
[snip] Only on demand. I'd like to define the variable without showing the file $var=include(); do something else echo $var; [/snip] Since the included file outputs headers you cannot do what it is you wish to do AFAIK. When I do includes, and having looked at other's code I can say that I

RE: [PHP] Tell me how I can...

2002-08-15 Thread Jay Blanchard
[snip] How can I control the number of users? I want to create a DB driven website where users create their own user accounts. But with a limitation of the number of accounts, and when the maximum is reached, no one can create a new account. I even want to limit the lifetime of an account. It may

RE: [PHP] Tell me how I can...

2002-08-15 Thread Jay Blanchard
[snip] Thank you guys. I think I can solve one of my problems now. What about the time limit? [/snip] You can set a date/time column in the user table which is checked at log in. In the login form have a calculation based on the date/time; (over simplification) if ($date_created $many_days){

RE: [PHP] removing myself off the mailing list?

2002-08-15 Thread Jay Blanchard
[snip] I seem too have lost my e-mail regarding removing myself off the list. I use the newsgroups now. If anyone can send me the e-mail on how too remove my self off the mailing list. That would be greatly appreciated. Paul [/snip] Look at the footer of this message, there is a link. Jay

RE: [PHP] Error

2002-08-15 Thread Jay Blanchard
[snip] That's happen when I include a page. But the strange this, I include the same page earlier and without any problem. The content of this page is a lot of variable (string), like that (a small part) : [/snip] How large is the page, can you send more? If not, can ou put line numbers on the

FW: [PHP] Error

2002-08-15 Thread Jay Blanchard
-Original Message- From: Christian Ista [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 3:17 PM To: 'Jay Blanchard' Subject: RE: [PHP] Error How large is the page, can you send more? If not, can ou put line numbers on the lines? Not a of lines 20 for the moment but more

RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Jay Blanchard
I had a rather weird thought, but it is Friday after all :^] How about setting a small IFRAME in the upload diaog box? Then you could do a couple of things; a.) Place a small animated GIF in the IFRAME that moves left to right or from side to side until the upload completes. 2.) Use the GD

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