Re: [PHP] Zend PHP Certification test
Hi Rory, The passing score is not revealed. There is only a pass/fail on the test. Best, Daniel Kushner On Sun, 17 Oct 2004 19:08:32 +0100, Rory Browne <[EMAIL PROTECTED]> wrote: > I've been looking all over the Zend Cert site, trying to find the > passing rate, ie how many questions I have to get right in order to > pass. > > Is this information secret, or have I just not looked in the right place. > > If it's the latter, please enlighten me. > > Thanks > Rory > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend PHP Certification test
Dear Alawi, I would like to thank you for your complements on the exam. The guys that wrote it definitely did an excellent job and produced a test of the highest quality. Your experience shows that even seasoned developers can enhance their PHP skills by studying for the exam. This is something I have heard numerous times and hope it will increase the quality of PHP development in the market. Best, Daniel Kushner __ Director of Education Zend Technologies Ltd. [EMAIL PROTECTED] http://www.zend.com == Learn PHP from the experts, sign up for Zend's online training starting October 11th http://www.zend.com/store/education/zend-online-training.php == On Thu, 30 Sep 2004 04:03:22 +0300, Alawi Albaity <[EMAIL PROTECTED]> wrote: > I purchase the guide before month and because I am outside US it will > be inn my country after another month ( I actually bought it pdf > version from phparch but because of the issue between Sams they cancel > pdf version and sent the print on thier own charge for the shipment) > , when I see Zend offer I take it directly but ofcourse I now must > read from manual because the last day is 30th September , so I read > hard , but of course not all the manual , but what I feel its > important to read in the manual . > I do not figure out that zend write the objective untill the last day > , I take the self test and it make me feel better but the self test > making you feel like if you get 3 from 5 you will success , I arrive > at the center , do what it have to be done , and log in the room and I > was very excited about exam when I get the test I found out its very > simple and easy but because I read from manual I have confused in a > lot of things in exam . > > Example 1 : they give 4 function and ask you to choose 2 , in all my > life I was just one function and for first time now I hear there are > another function which help you to calc the file size , so I choose > random function . > > Example 2 : > they give you some space to fill some text from your experience , I > think I must write what they think its truth , inn example one of > space I confuse what to write (object or class) because I do not get > the situation of the code or thing they talk about , and think what if > you write the spelling wrong but you get the idea. > > Example 3: > they ask you about the possibility of validate user input if its for > only unTrusted person or on the internet or also give you 2 choice, I > think this thing is belong to me to decide on my work experience and > not the opinion of the testers . > > at the final I feel and believe in my heart like I get 60 or 50 of > exam at least correct but the I end I figure out my grade is FAILED . > I have 3 years experience with php , I build a script of thousands of > lines , but the really point that I do not read thing in manual untill > I feel I must read and I need it, I make lot of scripts on php from 3 > years , I do not work ever with streams , and i get what I need in > regular expression by test and test and test for the code , if you > want my advice read a lot about arrays and if the function will give > you the new value or will do the process in the same array and which > type of array the function must use and return and how much of arrays > they can handle. > > I write a book in php in arabic of more than 100 and it was the first > book for arabs, , I make scripts for writers , sellers , shops And now > i figure out that I must read good and install manual in my brain to > be success . > > but what the benefit of this when I read I figure out that there are a > lot of thinngs usefel in php that I do not know about . > and give me a keys for a new things in php that I was do not care > about it in the past . > > I encourage the people have a good brain to save information to get > the test , and encourage the people to complete thier road of > development , your work is the strongest approve of your Exprience and > your hardwork . the problem that youu will not be in the yellow pages > in the Zend site . > > finally , thanks to the people who write the test they make it very > good and very simple and easy , they was so fair , who got good > knowldge will pass . > > -- > Alawi Albaity > Jeddah - KSA > Mobile : +966506660442 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] External Files (take 2)
Hi Gary, Look up http://php.net/include It's just like "copy and pasting" the code in the external file in the one your including it into. Best, Daniel Kushner __ Director of Education Zend Technologies Ltd. [EMAIL PROTECTED] http://www.zend.com == Learn PHP from the experts, sign up for Zend's online training starting October 11th http://www.zend.com/store/education/zend-online-training.php == On Mon, 20 Sep 2004 16:14:07 -0400, GH <[EMAIL PROTECTED]> wrote: > Hi... > > Sorry about the last post... did not realize i hit the wrong button > > Here is my question. Sorry if it is a basic answer... new to php > > I have PHP/mySQL and would like to know how i can set use an external > file to prevent myself for having to code everytime the > "connection/login" to mysql. > > > > I was thinking of making an external file but was not sure if it > should have just variables or should it have more? > > also, does the content of the external file need to be enclosed in > 's > > Thanks for your help > > Gary > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Preventing the "hijacking" of pictures
Hi Merlin, What you are describing is named Hot Linking. A quick search on Google gave me this: http://www.htmlbasix.com/disablehotlinking.shtml Regards, Daniel Kushner Need PHP Training? http://www.nyphp.org/training.php > -Original Message- > From: merlin [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 10:18 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Preventing the "hijacking" of pictures > > > Hi there, > > I recently discovered the reason why the traffic is rising so high on my > server. Some people are "stealing" bandwidth. They include > the link of an image into a forum posting. Now everytime somebody reads this > threat on the other site this image is > served by my server!! No one cares about one image, but they become > dramaticly a lot! > > Is there a reason how to find out that the image is not include into my html > code, but into the other site code? > > A great idea would be showing a kind of a watermark on this images if they > are included inside other websites. > > $_SERVER[HTTP_REFERRER] does not help. But there might be another method I > do not know of. > > Thank you for any help and hints on this topic! > > Merlin > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Images : Store in dB or disk?
You must remember that Images are embedded in HTML using the tag. Each image displayed on a Webpage is a result of a seperate HTTP request to the server; i.e. a PHP call in this case. Unless you are cache the SQL result, at least one query is needed per image. Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: Bobby Patel [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 16, 2003 12:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Images : Store in dB or disk? > > > With regards to Marek, > I don't see how there would be two queries, because there row conisists of > image properties and image data. So when i select the required row(s), I > will have properties and images. So it will be 1 query, of course it is a > big (size-wise) query. > > With regards to Jason, > Your approach is reasonable. I guess I will have to judge for myself! > > > > "Bobby Patel" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello, > > I have the Images table setup with columns (width, height, size, type, > > etc...) the question is should I have the image data stored in > this table > or > > disk? > > > > I know, alot of people have said it is faster in disk, which is 1 page > I/O. > > But I need these images for displaying product pages, and I believe that > it > > would be faster to just pluck the properties from the dB (including the > > image file) . > > > > Usually I will need to pull 6 or 10 images per page, this is my rational > for > > this situation: > > > > If all stored on db: > > One query - will take about 4-5 page I/O (assumiing index on filename) > > > > If just properties stored on dB and image on disk: > > One query to grab the rows of properties - 2-3 page I/O > > to grab 6 or 10 images - 6 or 10 page I/O > > Total - 8 - 13 Page I/O's > > > > If all images stored on disk, no dB whatso ever: > > to grab 6 or 10 images - 6 or 10 page I/O > > cpu time to run getimagesize() for each image - CPU time unknown? > > > > I assume that "page I/O" is that same as "disk access". > > > > I AGREE that storing images strored on disk is a valid approach PROVIDED > > that you only need 1 image per page, but if you need to grab a > bunch at a > > time, I do beleieve that storing the actual file on the dB is faster. > > > > I would like to hear from the list, of people that have worked > with images > > and PHP. I just started with images, so I just want to take the right > path. > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] MySQL Query - Not PHP Specific
http://www.mysql.com/documentation/mysql/bychapter/manual_Tutorial.html#Work ing_with_NULL http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Con trol_flow_functions Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Sean Malloy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 9:37 PM To: PHP General Subject: [PHP] MySQL Query - Not PHP Specific I know this isn't a PHP question per se, but it does relate to PHP development. Every day I work with MySQL as my PHP database, I become more dissalusioned with its ability as a database server. Yes its fast, but its missing so many useful features of other DB servers. I'm digressing... Is there a functional equivelent of SQL Servers ISNULL() command? (Yes I am aware of the MySQL ISNULL command and it is different) Hrm.. I just found a solution... SQL Server ISNULL takes two arguments, CheckField, And ReplacementValue SELECT ISNULL(t.Task, 0) FROM Users u LEFT JOIN Tasks t ON t.UserID = u.UserID; instead of returning where a Userid has no tasks, it would return 0. The equivelent function in MySQL is COALESCE(Field, ) I'm not sure it was meant for that usage, but it does work none the less. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Get the date of the last sunday
http://www.php.net/manual/en/function.strtotime.php strtotime ("last Sunday"); Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 10:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Get the date of the last sunday how can i easily get the date of the last sunday. php or javascript code to do this would be appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Some help on PHP & HTML please
Hi Denis, You should close the PHP tag (?>) before outputing HTML. Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Denis L. Menezes [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 11, 2003 8:25 PM To: PHP general list Subject: [PHP] Some help on PHP & HTML please HGello friends. I have a database from which I take 2 variables as follows : $CompanyWebsite $CompanyLogo I want to dynamically show two GIFs and when the user clicks on these, they should go to http://www.hotmail.com and http://www.yahoo.com respectively. I have problem only with the displaying(the error is parse error on the lines containing tags), for which I use the folowing code. Please tell me where I am wrong. \n".""; Print "Organisation website : ".$row[CompanyWebsite]."\n"." "; // I am displaying this when testing only. Print "Organisation logo : ".$row[CompanyLogo]."\n"." ";?> // I am displaying this when testing only. http://www.hotmail.com";> http://www.yahoo.com";> ?> Thanks Denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Header information ...
Hi Anders, You can't send a header to the browser once output has been sent. The header() function should be before any other output on your script. Further more, because the script isn't terminated after the header() function, and you usually do not want to continue running it, an exit() should directly follow. e.g.: Header("Location: main.php"); exit(); Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: Anders Mellstrom [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 11:18 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Header information ... > > > Hello. I can't get this code to work. The error message I get is > that the header could be added, cause it has allready been sent. > What shalll I do to get it to work? > > //Anders > > > > > > > > if ((navigator.appName == "Netscape") && > (parseInt(navigator.appVersion) > 5)) > { > window.alert("Upgrade version of NS."); > } > else > { > document.write("<?php $i = 1 ?>"); > } > > > > > > > > >if ($i == 1) > { > > Header("location:main.php"); > } > else > { > print("Byt webbläsare!"); > } > ?> > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Cheap Hosting
Hi Stephen, nyphp.org has a hosting service that you might find interesting. Take a look at: http://thehostingcompany.us Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 7:56 PM To: PHP List Subject: [PHP] Cheap Hosting Hello, I need a nice, reliable host for my new website. It needs to be fast, reliable, needs a good uptime, and some features. PHP and MySQL are the two I really need. Does anyone recomend one that's really cheap? So far I've found on, $5 a month, but it's slower then what'd I like. If nothing else pops up, I'll go with it. I'd also like domain parking and/or domain registration (don't really need the registration though). Thanks in advance! Thanks, Stephen Craton http://www.melchior.us "What is a dreamer that cannot persevere?" -- http://www.melchior.us
RE: [PHP] forcing .html pages to go through the PHP parser
AddType application/x-httpd-php .php .html (in the httpd.conf file) Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Monday, October 28, 2002 4:02 PM > To: [EMAIL PROTECTED] > Subject: [PHP] forcing .html pages to go through the PHP parser > > > how do you configure apache to force all .html pages to go through the php > parser? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Apache authentication and adding a user.
Try this: http://phpclasses.websapp.com/browse.html/package/387.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: John Meyer [mailto:johnmeyer_1978@;yahoo.com] > Sent: Monday, October 28, 2002 3:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Apache authentication and adding a user. > > > Hi, is there any way to use PHP to programmatically add a user > in terms of > Apache user authentication? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] =.jpg from another URL with PHP=
Save your first bit of code in a file (e.g.: image.php) Your HTML file should look like this: ... . Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Friday, October 11, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] =.jpg from another URL with PHP= The following script picks up single .jpg image of a doppler weather map from another URL: ... http://image.weather.com/web/radar/us_har_closeradar_medium_usen.jp g"; if(!($fp=fopen($theURL, "r"))) { print("Could not open the URL."); exit; } $contents=fread($fp,100); print($contents); fclose($fp); ?> .. However, when I try to insert the HTML tages into the script like: .. This is a map. http://image.weather.com/web/radar/us_har_closeradar_medium_usen.jp g"; if(!($fp=fopen($theURL, "r"))) { print("Could not open the URL."); exit; } $contents=fread($fp,100); print($contents); fclose($fp); ?> .. I get the following: ״אJFIF 1034364214C 2!=,.$2I@LKG@FEPZsbPUmVEFd^emw{,N`-O}-s~|C;!!;|SFS ||ְ)¸"ִ ִH !1A"Qaq#2'¡BR±ֱׁ3בנ$brס45CSs' "DTt,cf²ֲִִׂ*!1AQ"aq2B'¡ׁנב ?ףz_Y×_§L{M2I©װ3¡q£! etc. etc... I would like to insert additional text copy with this map - is this possible. Thanking all in advance. Tony Ritter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Undefined variable
Try using $_POST['name'] or $_GET['name']. E.g.: Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Muhammad Khairuzzaman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Undefined variable I'm trying to process data from a form, regardless whether I'm using GET or POST method, the value that i get in the processed form is still null. I check in the error log file and this is what it say: [Wed Oct 09 20:18:47 2002] [error] PHP Notice: Undefined variable: name in e:\program files\apache group\apache\htdocs\test.php3 on line 3 Or is there something wrong in my code? Or something with my setting? Name: --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] html input and php (newbie)
Hi Anna, Your REGISTER_GLOBALS is most probably set to OFF (see php.ini file). Try using the special $_POST array created by PHP: if ($_POST['submit'] == "click"){ echo "Hello, $_POST[UserName]"; } If your form was using the GET method you would need the $_GET array. Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: Anna Gyor [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 24, 2002 3:31 PM > To: [EMAIL PROTECTED] > Subject: [PHP] html input and php (newbie) > > > Hi, > > I just began to learn php and I have te following code. How can I get the > input field value in the php script? Because my script doesn't work. > $UserName is always an empty string. > > if ($submit == "click"){ > echo "Hello, $UserName"; > } > else{ > ?> > > > > > Enter Your Name > > > > > > > > } > > ?> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: Cannot Redeclare?
Typo: include_one() === include_once() -Original Message- From: Daniel Kushner [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 22, 2002 11:06 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] FW: Cannot Redeclare? When including the file funcs.php use include_one(). Regards, Daniel Kushner Need hosting? http://thehostingcompany.us -Original Message- From: Stephen Craton [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 22, 2002 10:56 PM To: [EMAIL PROTECTED] Subject: [PHP] FW: Cannot Redeclare? Hello, I was just wondering...again...why the heck I keep getting this error. I'm trying to make a function called login() and sometimes it works, other times it hates me and gives me this error: Fatal error: Cannot redeclare login() in c:\apache\htdocs\wiredphp\member\funcs.php on line 5 Here's the contents of the function login(): function login($username, $password) { $sql = "select * from members where username='$username' and passwd = password('$password')"; $result = mysql_query($sql, $wired); if (!$result) return 0; if (mysql_num_rows($result)>0) return 1; else return 0; } Please help. I don't see why this keeps happening... Thanks, Stephen http://www.melchior.us http://php.melchior.us P.S. I'm sending this again because I don't know if the other got through or not... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: Cannot Redeclare?
When including the file funcs.php use include_one(). Regards, Daniel Kushner Need hosting? http://thehostingcompany.us -Original Message- From: Stephen Craton [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 22, 2002 10:56 PM To: [EMAIL PROTECTED] Subject: [PHP] FW: Cannot Redeclare? Hello, I was just wondering...again...why the heck I keep getting this error. I'm trying to make a function called login() and sometimes it works, other times it hates me and gives me this error: Fatal error: Cannot redeclare login() in c:\apache\htdocs\wiredphp\member\funcs.php on line 5 Here's the contents of the function login(): function login($username, $password) { $sql = "select * from members where username='$username' and passwd = password('$password')"; $result = mysql_query($sql, $wired); if (!$result) return 0; if (mysql_num_rows($result)>0) return 1; else return 0; } Please help. I don't see why this keeps happening... Thanks, Stephen http://www.melchior.us http://php.melchior.us P.S. I'm sending this again because I don't know if the other got through or not... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] What does this error mean
Hi Randy, It means that you are calling the function without the right amount of parameters. The function mysql_query expects at least 1 (one) paramter: the query String. http://www.php.net/manual/en/function.mysql-query.php Regards, Daniel Kushner Need hosting? http://thehostingcompany.us -Original Message- From: Randy Johnson [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 22, 2002 2:26 PM To: Paul Nicholson; Bryan McLemore; PHP GEN LIST Subject: [PHP] What does this error mean What does this error mean? Warning: Wrong parameter count for mysql_query() Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Dynamic HTML Email
Try this class: http://phpclasses.websapp.com/browse.html/package/9.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: Mike Dunlop [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 4:46 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Dynamic HTML Email > > > Hello, > > I am wondering how it would be possible to generate an html response > email via a PHP script. I have tried and all that has happened is the > html source code appears in the message body as plain text. I believe > this is happening because the email needs an additional header > stating the email needs to be parsed as html not plain text (or both). > > I am using the mail command. > > Can someone shed some light on the subject for me??? > > Thanks so much in advance! > Mike Dunlop > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to generate Excel files with PHP
Found this on phpclasses: http://phpclasses.websapp.com/browse.html/package/86.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: Matti Simperi [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 19, 2002 10:19 AM > To: [EMAIL PROTECTED] > Subject: [PHP] How to generate Excel files with PHP > > > Hi, > > does anyone know a lib or a module which can generate Excel files with > PHP? Also commercial is fine. > > > Matti Simperi > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] +=
$string = 'Hello'; $string .= ' World'; Regards, Daniel Kushner _ Need hosting? http://www.thehostingcompany.us > -Original Message- > From: Alexander Ross [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 19, 2002 3:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] += > > > Is there a += equivilant for strings?? > > $string = "Hello"; > $string += "world."; > > I know that > $string = $string." world."; > would work, but I keep having to do it. Is there a shortcut? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Pls Help: Quickie: set_time_limit
set_time_limit(0); mysql_select_db("files", $db); Daniel Kushner [EMAIL PROTECTED] __ Need hosting? http://www.thehostingcompany.us/ > -Original Message- > From: Shane [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 2:38 PM > To: php-gen > Subject: [PHP] Pls Help: Quickie: set_time_limit > > > Question friends...Sorry to bug, but the documentation wasn't too clear. > > When using set_time_limit() to override the default PHP time > limit. Is this syntax tacked on to the end of a QUERY? > > ALA > mysql_select_db("files", $db, set_time_limit("0")); > > I have an upload page that is farting out when the 30 second time > limit is reached. I am using a mySQL query to store my binary > files in a DB. Is the above code snippet the proper syntax to use > set_time_limit()? > > Or am I just high on crack? > Thanks for your help gang. > - NorthBayShane > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] relocation
case "todo": header('Location: index.php?var1=&var2='); exit; case 'aaa': header('Location: index.php?var1=asddt&var2=ppapp'); exit; Regards, Daniel Kushner [EMAIL PROTECTED] __ Need hosting? http://www.thehostingcompany.us/ > -Original Message- > From: Christian Ista [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 11:50 AM > To: [EMAIL PROTECTED] > Subject: [PHP] relocation > > > Hello, > > Is there a possibility to call (jump not include) with some parameters > (index.php?var1=&var2=) a php page without click. > > For example : > case "todo": > call here index.php?var1=&var2= <--- jump to this page > break; > > bye > > Christian, > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] exec / mkdir question
Try using the mkdir function: http://www.php.net/manual/en/function.mkdir.php Daniel Kushner [EMAIL PROTECTED] Need hosting? http://www.thehostingcompany.us/ > -Original Message- > From: Javier Montserat [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 12, 2002 11:29 AM > To: [EMAIL PROTECTED] > Subject: [PHP] exec / mkdir question > > > i'm using the following code to create a directory :- > > $temp = exec("mkdir $path"); > > it doesn't work... > > i've validated the $path var which is correct. i suspect it is a > permissions issue. > > what should i look for to resolve this? > > thanks, > > javier > > > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Include problems
include 'inc/test.inc' will work fine if you add your root directory to your include_path (in the c:\winnt\php.ini file). Daniel Kushner [EMAIL PROTECTED] Need hosting? http://www.TheHostingCompany.us/ > -Original Message- > From: Scott [mailto:[EMAIL PROTECTED]] > Sent: Saturday, August 03, 2002 3:11 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Include problems > > > I have PHP4 on both a windows IIS server and a windows apache server. The > include function only works in the same directory of the file I wish to > access. > > ex. www.include.com/default.php > all files in same directory (i guess the root)? > include 'test.inc' > ?> > > everything works fine. Here's where I have the problem. > > Now I want to store all my includes in one directory www.include.com/inc > > include 'inc/test.inc' > ?> > that doesn't work>>> > Warning: Failed opening 'test.inc' for inclusion (include_path='') > > Can anyone help me with this??? > > Thanks > scott > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Need help to choose hosting!
You should check out The Hosting Company http://www.thehostingcompany.us/ The PHP config comes with many flavors: http://www.thehostingcompany.us/info.php --Daniel > -Original Message- > From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 02, 2002 2:31 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Need help to choose hosting! > > > Hey php-general, > > i want to buy hosting. but i can't find good one for me. maybe > someone could point some links. but this is what i need! > > Storage up to 100MB > normal transfer limit(best would be without) > CGI/Perl/PHP/ASP/SSI/SSL > MySQL database (can be only 1) > some pop3 mailboxes > free domain transfer (maybe free domain if i pay for 1 year ahead) > FTP access > SSH access > Shell capability > up to 3 background processes > > if anyone know combination like that i would appreaciate your help! > thanks > > -- > Best regards, > Mantas > > Contacts: > [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Temporary Mirror for PHP 4.2.2 Binaries
Hi PHPers, To help along with the new PHP download crises I have added a temporary mirror: http://www.thehostingcompany.us/php/ Regards, Daniel Kushner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Amazon Web Service implemented in PHP
http://www.amazonlite.com/ --Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New York PHP Presents: Implementing an Object-based Web Framework in PHP
Posted by Daniel Kushner (on behalf of Hans Zaunere) New York PHP Presents: "Implementing an Object-based Web Framework in PHP" NYPHP's monthly meeting is a week away (7/24), and after an informal networking event last month, we're excited to offer what certainly will be a highly valuable presentation to many. Web frameworks and object-orientated programming are forging the way for increasingly functional Internet applications, and PHP is continuing to be an integral part of the progress. Two top developers from Tanjero (http://tanjero.com) will be showing us how they've leveraged the AMP Technology suite to quickly provide powerful, yet reusable and cost-effective web applications for their clients. NYPHP meetings are the 4th Wednesday of every month at 6:30pm, with this meeting slated for 7/24. Please visit http://nyphp.org for location details, a map, and further information. Thank you, Hans Zaunere New York PHP http://nyphp.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTTP_RAW_POST_VARS
This variable isn't getting populated! Environment: PHP 4.1.2 Linux Apache always_populate_raw_post_data is on (php.ini). Any ideas? --Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Training in NYC
Hi Group, I would like to remind any beginner PHPers that live near (or in) New York City that the next PHP Training will take place on May 8th - 9th. More information at http://www.websapp.com/training.php Best regards, Daniel Kushner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Training in NYC
Hi , I am please to announce that the next PHP Training will take place on May 8th - 9th. More information may be found at http://www.websapp.com/training.php Regards, Daniel Kushner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Training is New York
LAST DAY TO REGISTER http://websapp.com/training.php --Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Pache .htpasswd Encryption
http://www.phpclasses.org/browse.html/package/387.html > -Original Message- > From: Chris Burwell [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 11, 2002 3:46 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Pache .htpasswd Encryption > > > I am trying to make a script that adds users to a Apache .htpasswd file. I > was wonderering how I would encrypt a password the same way > Apache does, but > using PHP. I should also mention that I am using PHP 4.1.1 and > Apache 1.3.X > under windows XP Pro. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] finding include path
ini_get('include_path') > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 08, 2002 11:06 AM > To: php-general > Subject: [PHP] finding include path > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi > Is there an easy way to determine the include path as set in php.ini > *without* actually looking at the php.ini file? > > Many thanks > - -- > - --- > www.explodingnet.com |Projects, Forums and > +Articles for website owners > - -- Nick Wilson -- |and designers. > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.0.6 (GNU/Linux) > > iD8DBQE8iOFqHpvrrTa6L5oRAo/bAJ94ZrRHCVOos17kimfQpleQUz+K4wCgtJej > lrppUPI6EWDZVEG4Pm7Dtk0= > =kSca > -END PGP SIGNATURE- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Functions
http://www.php.net/manual/en/language.variables.predefined.php http://www.php.net/manual/en/funcref.php > -Original Message- > From: Jason Whitaker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 13, 2002 4:15 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Functions > > > Is there a website that lists all the default functions and variables? > > EI: $REMOTE_ADDR AND $PHP_SELF > > -- > > Jason Whitaker > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How do I send a POST request?
http://phpclasses.upperdesign.com/browse.html/package/375/ > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 12, 2002 3:21 PM > To: LaserJetter > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] How do I send a POST request? > > > > On Tuesday, February 12, 2002, at 02:14 PM, LaserJetter wrote: > > > I'm currently sending an HTTP request for > > clientlogin.php?date=2002-02-12&type=nl and doing this by opening a > > socket > > connection with fsockopen, fwriting "GET > > /clientlogin.php?date=2002-02-12&type=nl.." to the socket and then > > using > > fgets to read the response. > > > > How do I send a POST request using a similar method? > > I'm doing this in PHP-GTK so I cant write an HTML form and submit it > > with > > Javascript. > > In theory, you can just send all of the headers followed by an extra > newline and then the connection followed by the POST variables. In > theory. > > > Erik > > > > > > Erik Price > Web Developer Temp > Media Lab, H.H. Brown > [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ereg-digits only...
That wouldn't work! 1) You meant to write: if (((int)$string==$string) && ($string>0)) 2) (int)'5a' == 5, so this formula would result is 5a == 5! --Daniel > -Original Message- > From: val petruchek [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 12, 2002 6:22 AM > To: [EMAIL PROTECTED] > Cc: PHP > Subject: Re: [PHP] ereg-digits only... > > > if ((int($string)==($string)) && ($string>0)) {then positive integer} > > not sure exactly, but try > > Valentin Petruchek (aki Zliy Pes) > *** Cut the beginning *** > http://zliypes.com.ua > mailto:[EMAIL PROTECTED] > - Original Message - > From: "B. Verbeek" <[EMAIL PROTECTED]> > To: "Php-Db-Help (E-mail)" <[EMAIL PROTECTED]>; "Php-General (E-mail)" > <[EMAIL PROTECTED]> > Sent: Tuesday, February 12, 2002 1:04 PM > Subject: [PHP] ereg-digits only... > > > > > > How do I check a string for it to only contain numbers? > > > > >> > > > > if(!ereg("([0-9]+)",$string)){ > > > > print "It contains characters other than numbers"; > > > > }else{ > > > > print "Only numbers"; > > > > } > > > > << > > > > Can anyone give some feedback... > > > > regards, > > Bart > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] fsockopen - whats the syntax of POST?
Hi Stefan, Maybe this HTTPPost class will help you. http://phpclasses.upperdesign.com/browse.html/package/375 --Daniel > -Original Message- > From: Stefan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 8:53 AM > To: PHP > Subject: [PHP] fsockopen - whats the syntax of POST? > > > First: can I do a POST-request with fsockopen? > If yes, then: whats the syntax for POST-requests? > > I was happy if someone could point me to a good documentation or so > > Thanks in advance > Stefan Rusterholz, [EMAIL PROTECTED] > -- > interaktion gmbh > Stefan Rusterholz > Zürichbergstrasse 17 > 8032 Zürich > -- > T. +41 1 253 19 55 > F. +41 1 253 19 56 > W3 www.interaktion.ch > -- > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Url Length Limitations?
You can try this class for POSTing: http://phpclasses.upperdesign.com/browse.html/package/375 --Daniel > -Original Message- > From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 12, 2001 7:05 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Url Length Limitations? > > > Hi everyone! > > Is there any limitation for length of url like this > accept.php?set=qwerty... > > What is the maximum $set length i can pass to script as a parameter? > > Zliy Pes: http://zliypes.com.ua > [EMAIL PROTECTED] > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Deleting Array elements
Hi, Try out this class: http://www.websapp.com/classes/LineRemover/ --Daniel > -Original Message- > From: HEW Staff [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 02, 2001 9:56 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Deleting Array elements > > > I'm looking for some code that will enable me to remove a line > from a file. > > I have .htaccess which is being filled by a subscription processor, I need > to know how to remove a user from this file once the subscription > has either > been cancelled or subscription term complete. > > Any help appreciated. > Thanks > Jonno > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]