Re: [PHP] Can I use white spaces?

2003-01-19 Thread Larry E. Ullman
I suspect (but could be wrong) that you aren't quoting these values in your forms. Be sure that you are using... Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I use white spaces?

2003-01-19 Thread Larry E. Ullman
You where nothing but right. I didn't know that PHP's html HAD to have all of the quoting right for PHP to work properly. Glad it's working but, just to clarify, this is an HTML issue, not a PHP one. Best wishes, Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Time code!!!

2003-01-20 Thread Larry E. Ullman
does anyone have the code to where i can have the time printed on my home page like for example  Monday, January 19, 2003 The PHP Manual has this code, under the date() function (www.php.net/date). echo date ("l, F j, Y");  also I want to have it state when the users login in it says welcome b

Re: [PHP] PHP and Oracle

2003-01-23 Thread Larry E. Ullman
Does someone had a speed trouble when using PHP and Oracle with OCI ?? The trouble i have is that the php pages are slower and slower during the day. It looks that if I make an apache restart things restart in a good way. I don't understand where the trouble come from. I've seen this once before

[PHP] MySQL - setting relationships

2003-01-30 Thread Larry E. Ullman
In MS Access we specifically set relationships. In MySQL, I have found no documentation regarding setting relationships. Is is that we do not need to set the relationships in MySQl and only matching the Field IDs in respectyive tables is suffecient? Current versions of MySQL do not have ways to

Re: [PHP] Date and time problem

2003-02-02 Thread Larry E. Ullman
echo date ("l dS of F Y h:i:s A"); However, I need to add 12 hrs to this date befor displaying on the webpage. Can someone please help me to modify the above code? $t = time() + (12 * 60 * 60); echo date ("l dS of F Y h:i:s A", $t); Larry -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Problem with sessions

2003-02-18 Thread Larry E. Ullman
This work very well, but when i open twice mozilla browsers and login with diferent users, i always keep the same session id, and sessions vars for two browsers... i don't know how to resolve this problem... Use two different browsers, for example, both Mozilla and Netscape. The session cookie

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Larry E. Ullman
I upgraded PHP from 4.0.3pl1 to php-4.2.3 on my Apache/1.3.14 using 'apxs' and I did not received any errors during the configure and make. The installation seems to have gone just fine. However, when I load a phpinfo.php document I get the 4.0.3pl1 version displayed??? What can be wrong and what

Re: [PHP] Adding slashes

2003-02-19 Thread Larry E. Ullman
PHP seems to automatically be escaping quotes on my $_POST variables. magic_quotes_gpc is set to On in your php.ini file. You can use stripslashes()to undo its effect or alter this behavior on a script-by-script basis using ini_set(). Larry -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Please help!!

2003-02-23 Thread Larry E. Ullman
I have installed a script named ALUMNI in www.alipso.com/alumni but there is an error somewhere, and I can´t find it... Please post the code here if it's not too long (in your email, not as an attachment) so that we can see it. Please enter to http://alipso.com/alumni/addschool.php3 and try to a

Re: [PHP] Include files

2003-02-25 Thread Larry E. Ullman
How do I include external library files in PHP??? I would like to put the lines that are repeated in each php files, in a separate file. e.g. $db_host = "localhost"; $db_port = "3306"; $db_name = "test"; ... ?> I find the include() function to be quite useful for including external files. Check

Re: [PHP] MySQL

2003-03-03 Thread Larry E. Ullman
This is OT, I'm considering buying the MySQL, Second Edition Paul DuBois book. I'm using MySQL 3.23. Should I be buying the first edition DuBois book instead or does BuBois cover both 3 and 4 in the second edition? Is there a huge difference between 3 and 4? Here's a URL for the second editio

Re: [PHP] MySQL

2003-03-03 Thread Larry E. Ullman
What are some of the more active MySQL lists? Do you have a URL or two? http://www.mysql.com/documentation/lists.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Yarrrrgggghhhhh || Simplest php question in existence........

2003-03-03 Thread Larry E. Ullman
Any performance issues re: using fetch_row vs. fetch_array? No significant performance issues. If you want to be precise and save a little overhead, use $row = mysql_fetch_array ($result, MYSQL_ASSOC); The returned record will ONLY be returned as an associative array. Larry -- PHP General Maili

Re: [PHP] Browser Sniffing

2003-03-04 Thread Larry E. Ullman
I know, it can't be done in PHP. That's not exactly what I'm here for. I have a client who would like to redirect people to a polite 'upgrade your browser' page whenever people visit his site (which has been developed in PHP no less). My question here is, how can I make this so that regar

Re: [PHP] time() question

2003-03-13 Thread Larry E. Ullman
Is there an easy way to display the epoch time given by time() in a human readable format? Basically, if I do $time = time(); and the insert that data into my mysql database and then pull that information out again how do I make it look like 2003-03-13 or a variant of that? If you are pulling a d

Re: [PHP] Rounding issue

2003-07-29 Thread Larry E . Ullman
$x = 4.5012412; echo round($x, 2); // results in 4.5 --- however I want 4.50! I want 2 decimal places! echo number_format ( round ($x, 2), 2); Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_real_escape_string

2003-08-04 Thread Larry E . Ullman
The following function is from Larry Ullman's PHP and mySQL on page 217 - script 6.8 - in which there is a connection to a mySQL database using PHP. My question is that I'm not sure of the global variable $dbc. Hello Anthony, The mysql_real_escape_string() requires a connection to the database.

Re: [PHP] error problem

2003-08-14 Thread Larry E . Ullman
Sorry the second "echo "Hello world";" was meant to have no semi colon Just so you know, PHP allows the last command in a section to not have a semi-colon. Therefore the code would not cause an error message. If you're trying to purposefully cause an error, you'll need to change your trigger.

Re: [PHP] Display variable with spaces

2003-08-14 Thread Larry E . Ullman
And I try to display it in the table using this : > if I try to echo the variable $email_1, I get the correct value i.e. "thisisa long e-mail address" /// However when it comes to displaying it using the table all I get is the "thisisa" . It simply avoids the spaces. Can anyone tell me why thi

Re: [PHP] Running DB on different server

2003-03-20 Thread Larry E. Ullman
Can the DB be on a different server than the page server? Yes. For example, with MySQL, you just need to create a user with permission to connect from a remote computer by setting the appropriate host value. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] PHP Devel Environments???

2003-03-20 Thread Larry E. Ullman
The only product I know of that fits your description (I think) is JaneBuilder (http://www.seejanecode.com). It's currently available for Mac and will be on Windows soon. Never used it myself... Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] ob_start problem

2003-03-22 Thread Larry E. Ullman
Warning: ob_gzhandler() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /blahblah/includes/bottom.inc on line 25 I can't speak as to why this would only happen occasionally, but I believe that you should comment out the output_buffering line in the php.ini file when using

Re: [PHP] upload files and file types

2003-03-22 Thread Larry E. Ullman
hi there , i was wondering on security of file uploads , i am currently using the pear uploader class , i can check for allowed file extensions , but it doesnt seem to check for file type , i can currently rename say an image to zip and it uploads , is there anyway a hacker could rename an execut

Re: [PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread Larry E. Ullman
OK, I can bypass my oversight by stripping out apostophes from the variable values. There has to be a better way please. Turn on Magic Quotes GPC or use the addslashes() function. Or, if you want to be more precise and MySQL-specific, use the mysql_escape_string() or mysql_real_escape_string() f

Re: [PHP] Session Theft

2003-03-28 Thread Larry E. Ullman
i just want to figure out a way by which i can stop session theft.i thought if i can get something from user end that is unique for that user.for e.g. his/her IP .but it will not work when they are behind firewall.they will be assigned same IP.is there a way for me to get the IP (e.g.202.202.20

Re: [PHP] uploading large files through php

2003-03-28 Thread Larry E. Ullman
The problem that I am facing is that I can get the script/browser/php to pass such large file. I have modified the upload_max_size variable in php.ini to be larger the 60Mb but this still does not help! Is there any hard limitation that I am unaware of? You'll probably need to adjust the follow

Re: [PHP] RedHat

2003-04-05 Thread Larry E. Ullman
Where would I go on the redHat site to ask when they are going to upgrade to PHP 4.3 and MySQL 4.x (now in production). Our CS dept. won't install them for me until RedHat bundles it. I'm using RH 7.3. This question would probably be best directed towards: 1) The RedHat site 2) A RedHat newsgroup

Re: [PHP] php.ini

2003-06-25 Thread Larry E. Ullman
Does the php.ini file always go in the same place no matter the OS? I did a locate in the shell, and nothing came up. I could find .ini files, or php. files, but no php.ini files. In all likelihood, you don't have a php.ini file on your computer, which is why searching for it using conventional

Re: [PHP] Installation for OS X

2003-06-30 Thread Larry E . Ullman
Does anyone know of a good installation kit like FoxServ, phpTriad, etc for Mac OS X? I want a quick solution for adding MySQL, GD, phpLib support for my mac. Follow Marc's instructions at http://www.entropy.ch/software/macosx/php/ He provides a compiled version of PHP that includes MySQL suppor

Re: [PHP] webserver for mac

2003-08-26 Thread Larry E . Ullman
what do mac owners use for a webserver? OS X users (Server and Client) use Apache 1.x, which is built-in. People with earlier versions of the operating system (OS 9 and earlier) used WebStar (I don't know if it supports PHP) or WebTen by Tenon (which is just a version of Apache and does support

Re: [PHP] Function calling from url

2003-09-06 Thread Larry E . Ullman
I would like to call a function from a 's ACTION attribute. This is what I'm trying to do: ACTION="www.example.com/PHP_FILENAME/function_name? parameter1=x¶meter2=y " etc...> Well, you're not going to call a function that way, but you will submit the form to the PHP page (PHP_FILENAME) and t

Re: [PHP] function returning array

2003-09-07 Thread Larry E . Ullman
Nothing. But it I run: function getData() { etc.. print_r ($theArray); return $theArray; } the data is definitely there. I think the example in the PHP manual goes something like... function getData () { // blah, blah return array ('value1', 'value2', ...); } Then you would call it w

Re: [PHP] array encapsulate

2003-09-12 Thread Larry E . Ullman
if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { How can I encapsulate the array so it is a multi-dimensional array and not just a string length? I'm not exactly sure what you're array structure is but that syntax is correct. $_POST['key1']['key2']... Larry -- PHP General Mai

Re: [PHP] "HTTP_GET_VARS" VS. "_GET"

2003-09-14 Thread Larry E . Ullman
I notice the use of "_GET" in some messages. Is this the same as "HTTP_GET_VARS[]"? More or less. $_GET was added in version 4.1 and has an added advantage of being global in scope (it's a superglobal). Where in the manual is this documented? http://www.php.net/release_4_1_0.php http://www.php.

Re: [PHP] Subcategories in php

2003-09-20 Thread Larry E . Ullman
I have been trying to do this for weeks but i just cant figure this out. I have categories that have subcategories and i want to insert them into database. My table looks like this: cat_id, parent_id and cat_name. Let's say i wanna insert a subcategory that is associated with its parent categor

Re: [PHP] Generate Receipt Number

2003-09-30 Thread Larry E . Ullman
I am doing a receipt system whereby it can auto generate a unique receipt number for each receipt. It will be an increment of number eg.01, 02, 03, and so on.Wonder how should I go about doing this using PHP? Do need some help here..technologies used are:PHP and MySQL... S

Re: [PHP] Creating a Search field

2003-10-09 Thread Larry E . Ullman
I need to create a feature that allows users to enter certain words that can be searched ie search = 'red lion' this would return all data found with the words red and lion. If you're using MySQL 4.0, you can take advantage of its FULL TEXT searching (it's actually available in earlier versions b

Re: [PHP] PHP within Frames

2003-10-19 Thread Larry E . Ullman
Does anyone know why my PHP pages won't work in Frames? I have 5 frames, each of which are displaying PHP pages.and none of the PHP code works. PHP works just fine within frames because the two issues are completely unrelated. That being said, I can't tell why you're having problems as you

Re: [PHP] search by keyword

2003-10-21 Thread Larry E . Ullman
on the search_results page, what happens is: -i use explode() to break the comma-delimited string down into array elements, and count() to count the number of array elements -then i use a for loop to cycle through the list of array elements and run a sql query to search through a table for any ma

Re: [PHP] php|cruise - do unto others...

2003-10-20 Thread Larry E . Ullman
To make a donation, simply login to PayPal and click the "Send Money" tab at the top of your screen. Once there, put [EMAIL PROTECTED] in the "Recipient's Email" field and fill out the remaining fields to your liking. :) Even though this thread is much more PHP-related than many of the topics

Re: [PHP] Whats more efficient? ( echo " "; or )

2003-10-21 Thread Larry E . Ullman
which is more efficient to do: 1. >Something1 >Something2 (or) 2. instead of having the mixed in the HTML is it better to echo/print the whole lines? Really just a matter of personal preference. If I have a mostly PHP page, I would use echo to print out chunks of HTML. If I have a mostly HTML p

Re: [PHP] Idea for new operator

2003-10-26 Thread Larry E . Ullman
Is it just me, or would everybody else like to see a case-insensitive string comparison operator introduced into PHP? It is a type of comparison that I use a lot, and having to strtolower() everything before comparison can impact code readability, not to mention the angst, pain and trauma of hav

Re: [PHP] Menu populated based on previous menu

2003-10-28 Thread Larry E . Ullman
Searched all the sites I could find for this problem to no avail. I have two dropdown menus in a form. The first menu contains a list of MANUFACTURERS obtained from a database. The second contains a list of MODELS also obtained from the database. I want the second menu to be populated based upon t

Re: [PHP] multiple entries for a variable passed with GET

2003-10-29 Thread Larry E . Ullman
I've got a form with a text entry list allowing the visitor to select more than one entry. The multiple entries are passed in the URL properly (see below) but the QUERY is only using the last one listed. What's up? URL being passed... http://www.cancerreallysucks.org/RobesonWeb/robeson1searchB

Re: [PHP] Tips on books and tutorials

2003-10-30 Thread Larry E . Ullman
Anyone that can inform me of good books to buy or free tutorials on the net that can guide me through building a good dynamic website. People seem to think my books are pretty good (http://www.amazon.com/exec/obidos/ASIN/0321186486/dmcinsiinc-20/002 -8800445-6161652). PHP and MySQL Web Develop

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Larry E . Ullman
However, I don't see the point in discussing this topic any longer. You won't change your opinion and Apple afficionados won't change their opinion either. I would like to suggest that you try Linux, BSD or OS X before you speak. On the bright side, Linux, Windows, and Mac OS X all run PHP. And thi

Re: [PHP] recursive acronym - PHP

2003-11-01 Thread Larry E . Ullman
Why PHP is a recursive acronym?, I know that before was called Personal Home Page, I now is Hypertext PreProcessor, but why is recursive?, I person told me that it could be wroten as Pre Hypertxt Processor, thanks. PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive acronym be

Re: [PHP] Re: PHP SESSION DURATION.....

2003-11-25 Thread Larry E. Ullman
Correction: I meant to say: Are session variables stored server-side or client-side like cookies? The session data is stored on the server. The session cookie (if there is one) is stored in the browser. How do I go about making a session last longer that the duration of the browser? Set the expi

Re: [PHP] onChange

2003-12-22 Thread Larry E . Ullman
I have 2 list fields in a form. The second is populated basing on selection in field 1. Can anyone pls tell me how to do this in PHP ? You can't do this with PHP. PHP is server side which means it only reacts after a request has been made to the server (by loading a Web page or submitting a form

Re: [PHP] Extra byte added to PDF streaming file

2004-07-26 Thread Larry E . Ullman
It appears as though some readers (such as adobe acrobat) can read this file fine yet others (such as the program gv in *NIX) cannot read it. The reason for this is that somehow a hex 0A is added before the inital %PDF-1.2 which marks the start of the PDF file causing some readers to not recog

Re: [PHP] Extra byte added to PDF streaming file

2004-07-27 Thread Larry E . Ullman
I've seen cases where extra buffer content gets added to the downloaded file. The problem was fixed by deleting any existing buffer before sending the file to the client. Not sure that will solve the problem but it's worth a shot. How does one delete an existing buffer? ob_end_flush();? ob_end_

Re: [PHP] Does this beginner's book exist?

2004-08-30 Thread Larry E . Ullman
Does a book for complete beginners exist that also demonstrates basic good programming practices, has decent examples, and perhaps exercises/quizzes (not as important as the first two)? The newest edition of my PHP for the World Wide Web: Visual QuickStart Guide takes into account register globals

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Larry E . Ullman
How do I get an xml tag to work with a php script? php is trying to parse that. Either turn off the Short Tags setting in your php.ini file or have PHP echo out that line. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] empty variable

2004-09-19 Thread Larry E . Ullman
What is the best way to determine if a variable is empty? I have a feeling there is a better way than the way I'm doing it now... if ($variable == "") You could try the empty() or isset() functions, depending upon exactly what you're wanting to test. See the manual for descriptions of both. Larry

Re: [PHP] Mac OS X and Editor

2004-10-20 Thread Larry E . Ullman
Hi guys, I just like to ask those using Macs here as to what editor and/or IDE they are using for writing PHP codes. BBEdit is generally consider to be one of the best (note: I said "one of the best", not "best", so let's not start about how emacs, vi, and vim are better) text editors available

Re: [PHP] __construct __destruct in PHP 4

2007-01-28 Thread Larry E. Ullman
I have been trying going thru the PHP manual to find if there are any equivalent to the __contruct and __destruct in PHP 4, but I cannot find any solution for this part. I know it was introduced in PHP 5, but as __sleep and __wakeup exist in PHP 4 already I was hoping there is something like

Re: [PHP] PHP textbook suggestions?

2007-04-07 Thread Larry E. Ullman
I'd still like some actual recommendations for a good book for beginners. My "PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide" has already been mentioned by someone and gets good reviews. If you want something more basic, I wrote "PHP for the World Wide Web: Visual QuickStart G

Re: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Larry E . Ullman
WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ? I want to know if when be online I CAN OPEN A FILE FROM A WEB LOCATION HOST - MINE and after I modify it save it again to my hosting space WITHOUT save it to my PC first using NotePad and I mean entering the host username&password when OPEN / SAV

Re: [PHP] Full-text searches sucks?

2005-03-21 Thread Larry E . Ullman
which means because I i getting a match for well over 50% of the records...its disregarding it. Yes, this is exactly the problem. Now i am in two minds if i should use this or go back to the same old dirty way...of exploding the search and using LIKE '%%' for each word FULLTEXT searches are great;

Re: [PHP] Full-text searches sucks?

2005-03-21 Thread Larry E . Ullman
Thanks for replying. You're quite welcome. If you want to see some results, regardless of the 50% threshold, use the IN BOOLEAN MODE feature. Keep in mind, though, that in your case any search will return either 0 or 700 results. I dont want to do that as its only mysql 4.1+ compatable, IN BOOLEAN

Re: [PHP] Passing Arrays between pages

2005-03-22 Thread Larry E . Ullman
Please can someone tell me how you pass arrays between PHP pages. $var = serialize($testArray); echo ""; Then unserialize the variable on the receiving page. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file upload

2005-04-04 Thread Larry E . Ullman
I might have asked this already but I am still ignorent ;-) How to check if a same name file already exists in a upload directory when uploading new file? Use the appropriately named file_exists() function. L. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] Finding Screen Size

2004-04-19 Thread Larry E . Ullman
I know it's easy to find the screen res of a user from javascript- but I want to let my PHP script know what the resolution is. Is this possible? I would like the easiest way possible- I'd rather not resort to sessions/cookies. Is there a way to make a variable available to PHP? I find the ge

Re: [PHP] Newbie question about good coding practice [isset]

2004-06-05 Thread Larry E . Ullman
if($var) do something; verses if(isset($var)) do something; The simple form if($var) seems to work fine and I see it in code often. Is there a good reason for using isset? Yes, if you don't use isset(), you may see notices (errors) if the variable is not set. This depends upon the error reporting

Re: [PHP] previous page

2004-06-08 Thread Larry E . Ullman
I have a .php page I don't want anyone being able to just open it unless they've been through a previous page that is a disclaimer http referrer etc come to mind but not exactly sure how to implement it in PHP. Yes, you could check the value of $_SERVER['HTTP_REFERRER'] but that's not perfect. I

Re: [PHP] previous page

2004-06-09 Thread Larry E . Ullman
Thanks all makes sense, but, if I add this: I don't get anything back when the page is called? Yes, that can happen, which is why I said it wasn't perfect. I think using some sort of form to go through is the better option. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] export from mysql to csv file

2004-06-11 Thread Larry E . Ullman
Can anyone point me to an existing script or tutorial to learn this? I'm fairly sure there's a tutorial at PHPBuilder.com or Zend.com. Or you can check the PEAR modules for code (I know there are database to Excel classes). If all else fails, Google's always helpful. Larry -- PHP General Mailing

Re: [PHP] session_start() warnings

2004-06-12 Thread Larry E . Ullman
When I use session_start function, I receive the following warning messages: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/w4t3c101/public_html/ListClientInfo.php:2) in /home/w4t3c101/public_html/SessionControl.php on line 9 Warning: se

Re: [PHP] post data

2004-06-15 Thread Larry E . Ullman
im posting a form to itself... and im wondering if there is any way to clear the post data from the page after if have dealt with it? $_POST = array(); Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Reporting

2004-06-28 Thread Larry E . Ullman
I ave a strange problem with my error reporting! I have set php.ini to: error_reporting = E_ALL but I don't see any errors. (After I was happy things were working on my Apache Test Server, I uploaded to my web host and discovered errors.) Make sure that display_errors is on and that you restart

Re: [PHP] help ???

2004-07-02 Thread Larry E . Ullman
I wonder why my website runs smooth in PHP 4.1.1 but it does not in 4.3.7. Without knowing any relevant details at all, I would suggest that the settings are different between the two servers, particularly register_globals and magic_quotes. Larry -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Unable to retrieve value from database and echo on screen

2004-07-04 Thread Larry E . Ullman
/* Select User's First Name From Table */ $sql = "SELECT UserFirstName FROM RegisteredMembers WHERE UserID='$_POST[TXT_UserID]'"; $result5 = mysql_query($sql) or die ("couldn't select UserID from database"); $num = mysql_num_rows($result); /* Welcome Registsred Member */ echo "welcome to th

Re: [PHP] get the month's last day

2004-07-10 Thread Larry E . Ullman
how can i retrieve the last day of the month? like 31 - Jul, 30 - Jun , 28 - Feb $lastdayofmonth = mktime(12,0,0,$month+1,0,$year); ?> You could also use the date() function with the t parameter. Of course, that also requires a timestamp... Larry -- PHP General Mailing List (http://www.php.net/

Re: [PHP] displaying database results with forward and back buttons

2004-07-11 Thread Larry E . Ullman
I have a query that returns lots of rows so I want to display the results in blocks of 25 or so on my web page and have forward and back buttons to navigate the results. Can someone point me in the right directions please I have tried to look around for something using google but cant think of

Re: [PHP] PHP on MAC

2004-07-13 Thread Larry E . Ullman
We've just bought a new Power Mac G5 Macintosh computer for the office and I'll need to do some backend engineering work using it. I've never worked with PHP on MAC, so I really have no experience with what happens on a MAC... are there on issues regarding working with PHP on a MAC? Not at all. O

Re: [PHP] Is "Function Constants" the Correct Term?

2004-07-18 Thread Larry E . Ullman
I have been experimenting with defining functions as constants. Below is what I am using to test "Function Constants": define(DBLOGIN,dblogin(LOGIN,PASS,DB)); This is simply not allowed. see: http://php.net/define Can you elaborate on what is not allowed? Are you saying defining function consta

Re: [PHP] viewing PHP files on Internet Explorer 6

2004-07-18 Thread Larry E . Ullman
So I have Internet Explorer 6.0 with XP and have also installed Microsoft .NET framework 1.1. I can't get my .php files to be viewed with my web browser. html files are diplayed okay but with php files i get a blank screen. I guess i need plug-ins for Internet Explorer but i thought that .NET c

Re: [PHP] viewing PHP files on Internet Explorer 6

2004-07-19 Thread Larry E . Ullman
Rocky, First off, when working with mailing lists like these, you generally should reply to the entire group, not to an individual person. Doing so takes the burden off of the person who initially replied to you. Moreover it means that you won't have to wait for that one person to get back to y

[PHP] [JOB] PHP Book Tech Reviewer

2006-10-10 Thread Larry E. Ullman
I'm currently writing the second edition of my PHP Advanced book and need a technical reviewer. It is a paid job and some people think it's interesting/looks good on a resume/etc. Obviously you'll need to be an expert in PHP and pay close attention to detail. My definition of "advanced" for

Re: [PHP] php/mysql/phpMyAdmin on an iBook?

2006-03-05 Thread Larry E. Ullman
I'm thinking of getting an iBook for reasons not really to do with webbing but really need to do occasional php/mysql stuff to justify the expense. I believe that they all come with an Apache testing server installed and wondered if anyone had any success with getting php/mysql/phpMyAdmin

Re: [PHP] PHP (and optionally MySQL) textbook

2004-02-17 Thread Larry E . Ullman
I am looking for suggestions for a textbook for an undergraduate class introducing PHP and MySQL (using PHP, not MySQL administration). Right now I am using the McCarty book "PHP 4 A Beginner's Guide" but there might be new and/or better books out there? Both my "PHP for the World Wide Web: Visua

Re: [PHP] Letters and Numbers limitation

2004-03-10 Thread Larry E . Ullman
Form takes parameter username, so I want to accept username taht includes only numbers and letters. How can I check if variable contains only letters and numbers? Use regular expressions. See the PHP manual (for PCRE or POSIX) for more. You'll also find a number of tutorials online about validati

Re: [PHP] passing variables

2004-04-03 Thread Larry E . Ullman
When using a link like xxx.proceed.php?language=gbr the 'proceed.php' script does not receive any $language variable. Does someone know how to get it run? This is a register_globals issue. Refer to $_GET['language'] instead of just language. Or, at the top of your script, add $language = $_GET['la

Re: [PHP] Cookies

2004-04-07 Thread Larry E . Ullman
Does Any One Knows How To Set And Get Cookies? The PHP manual is really good for stuff like this. Check out the setcookie() function. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User Screen Resolution

2004-10-27 Thread Larry E . Ullman
I am new to PHP and couldn't find any Globals for the User's Screen Resolution. (don't laugh at me please) I used to use a Javascript function to pass the resolution using screen.width and screen.height. What I am actually trying to do is make a page resize depending on screen resolution, in case

Re: [PHP] getting screen resolution

2004-10-29 Thread Larry E . Ullman
is there a function that gets the screen resolution of the user? you can also reply directly to me... [EMAIL PROTECTED] No, you cannot get the screen resolution using PHP. You must use JavaScript. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Object oriented??

2004-11-06 Thread Larry E . Ullman
Is PHP an object oriented language. If not is it gonna be? PHP is not an object oriented language (like Java). Although PHP supports the creation of objects, you can still do pretty much everything without ever using OOP. I can't imagine PHP ever being turned into a true OO language, but I could

Re: [PHP] Object oriented??

2004-11-06 Thread Larry E . Ullman
Yes of course...but was confused since some says it is so and some says it is not...So thought of asking the pros.. It is. PHP4 had limited support for OOP, though it was quite usable. PHP5 goes further and provides pretty much everything else. See the documentation on php.net for the complete lan

Re: [PHP] alert function

2004-11-14 Thread Larry E . Ullman
In html, there is the alert() function that makes a popup with a ok button. Is there such a thing in php? Actually, that's a JavaScript function. You can't do the same thing in PHP although you can use PHP to create the JavaScript. Printing an error message, like you already had, is probably a b

Re: [PHP] sql insert into 2 tables

2004-11-28 Thread Larry E . Ullman
Hi there - I was wondering if anyone could point me in the right direction to be able to add data to two different tables (I am using mysql and php V4). I understand joins, etc for the query of the data, however adding the data - still getting my head wrapped around it (multiple tables). You'll

Re: [PHP] Re: and statement

2004-11-28 Thread Larry E . Ullman
err i mean ... an 'or' statement sry is there an 'and' statement for mysql, when you are doing multiple "where"s? MySQL allows SQL statements that support both AND and OR. With OR, you can often use IN instead. SELECT columns FROM tablename WHERE (condition1) AND (condition2)... All of this is

Re: [PHP] ScreenHeight?

2004-12-01 Thread Larry E . Ullman
Is there any way of getting the clients screenheight in PHP? (or do I have to do it in Javascript) You have to do it with JavaScript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first letter

2004-12-20 Thread Larry E . Ullman
if i have for example this variable $name = "John"; how can i echo the first letter only so the result on the browser will be "J" echo $name[0]; You could also use the substr() function. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT Re: [PHP] can I compile php source

2004-12-21 Thread Larry E . Ullman
While "Yes" may be a technically accurate answer to a question like "Can I ..." or "Can anyone ...", a couple of points must be acknowledged: 1) Such an answer doesn't help the original poster. Period. And the purpose of a resource like this is to help, right? Even a "RTFM" or "search Google"

Re: [PHP] can I compile php source

2004-12-21 Thread Larry E . Ullman
Guys, this is trivial. It takes the same effort to provide the answer to whoever this guy was, than to lecture him on how to think. "Teach a person to fish ..." That's a good and true adage and certainly a philosophy to be put forth by this list. But, the question is, does an answer of "Yes" teac

[PHP] [JOB] Need a Developer for PHP-MySQL Project

2005-08-01 Thread Larry E . Ullman
The National Coalition for Dialogue and Deliberation (NCDD) is seeking an independent contractor or company to perform some PHP and MySQL Web development work. In simplest terms, the Web site is a MySQL-driven content management system (CMS), written in PHP, running on a Unix/Linux server. The

Re: [PHP] colleges/schools that offer php/web development courses

2005-09-21 Thread Larry E. Ullman
can you guys give the names of any schools/colleges that have formal programs to teach web development/security applications. I was teaching one online through the University of California at Berkeley. I'm no longer teaching it but my understanding is that they'll be hiring a replacement and

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread Larry E. Ullman
I'm trying to expand my understanding of PHP by looking at some pre- built code modules. I don't fully understand the syntax "$site->Run ();" in the following code. Can someone offer a helpful explanation? Run(); ?> The $site variable is an object, specifically an instance of the CSite c

Re: [PHP] setcookie() is not my friend

2005-10-06 Thread Larry E. Ullman
I'm trying to setcookie('username',$username,15552000) but on subsequent pages $_COOKIE('username') is always null. I verified that I'm setting it before any other output is sent to the browser. I verified that $username does have some valid contents. I also verified that the browsers I'm t

  1   2   >