[PHP] Modulus Formatting
> I can pull data out of a database using mysql_fetch_array and assemble it like this using a while statement: > > $data > $data > $data > etc ... > > What I'd like to do is assemble it like this: > > $data$data$data > etc... > > In other words, I need a break () every three times through the > loop. > > I've tried several snippets of code from this list's archive but none seem > to work. I've tried while statements, for statements and the list function > in every combination I can think of ... no go. I know that modulus is what I need but I can't crack the right code combination. > > Does anyone have a solution or can they point me to a resource somewhere? > > > Thanks > > Mick > > -- 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] solution
On 5 Feb 2001 23:31:17 -0800, andreas \(@work\) <[EMAIL PROTECTED]> wrote: >a 404 php-file which extracts the path and generates a page for that out of >mysql > >or is there a better solution out there ? This approach can work and, properly done, work fairly well. However, a more elegant approach might be using mod_rewrite on Apache. You could write a regex that would convert addresses of the form /~username into /users/homepage.php?User=username internally. This would also have the advantage of leaving your existing 404 handling unchanged. Chris -- 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] solution
hi all, we need to have a solution for the following stuff: each member of the community should get his own page something like www.domain.com/tacco www.domain.com/micco www.domain.com/sicco . and we dont liek to build this structure as webfolders so what we are thinking of is: a 404 php-file which extracts the path and generates a page for that out of mysql so, if someone likes to access www.domain.com/tacco theres no file but our 404php document will extract tacco and generate the page tacco from the database === possible ? or is there a better solution out there ? greetings andreas -- 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] framing search results
You can encode URLs with urlencode() and decode them by using urldecode()... try read here: www.php.net/urlencode www.php.net/urldecode ### my way: ### you pass $url: $url = www.maxim.cx/get.php?this=variables&as=many&as=you&what=want echo ""; ### and you catch it with: Cheers, Maxim Maletsky -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 3:09 PM To: [EMAIL PROTECTED] Subject: [PHP] framing search results I'd like to create a script that will frame search results made by various databases. I will be hardcoding these links into an HTML page. Since there will be alot of these links and I will be using the script across several virtual hosts, I can't have the links built by a db as they link to offsite stuff. My problem so far is that if I try to link to a search result (which is obviously built by a database), I get a bunch of errors because the &, =, ? etc. fields are dropped. So basically, I need to escape the ?,&'s etc. in the url. I can do this in perl (cgi::escape) but I'm not quite sure how to do it in php. Couldn't get it to work properly in perl so I'm crossing over to PHP to see if its doable. Here's what I got from a code example from zend.com. Basically, I just need to add the %3A etc onto $url. Now one thing that I noticed is that often when the url is encoded and I try the link, I get a 404 error. What am I doing wrong? So the links that I hardcode into the html is something like xyz.com/frame.php?page=searchresults.php or something like that. I'm really new to php so sorry if this is kinda vague. If there's a better way of doing what I'm trying to above, please let me know! Thanks in advance for your help! __ Jason Dulberg Extreme MTB http://extreme.nas.net -- 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]
[PHP] OCILogOn and OCILogOff
Hi, It seems to me that OCILogOff does not return anything. Evenif I do something like this: $conn = OCILogOn("user", "passwd", "db"); $logoff = OCILogOff($conn); $logoff is always empty. Does anyone know about this? any help? Thanks. Reuben D. Budiardja -- 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] *Animated* images. (repost)
Hello, I'm sorry for the repost, but the last one was misunderstood (i think). i'm looking for ways to generate *animated* images using PHP. thanks, Hrishi
[PHP] framing search results
I'd like to create a script that will frame search results made by various databases. I will be hardcoding these links into an HTML page. Since there will be alot of these links and I will be using the script across several virtual hosts, I can't have the links built by a db as they link to offsite stuff. My problem so far is that if I try to link to a search result (which is obviously built by a database), I get a bunch of errors because the &, =, ? etc. fields are dropped. So basically, I need to escape the ?,&'s etc. in the url. I can do this in perl (cgi::escape) but I'm not quite sure how to do it in php. Couldn't get it to work properly in perl so I'm crossing over to PHP to see if its doable. Here's what I got from a code example from zend.com. Basically, I just need to add the %3A etc onto $url. Now one thing that I noticed is that often when the url is encoded and I try the link, I get a 404 error. What am I doing wrong? So the links that I hardcode into the html is something like xyz.com/frame.php?page=searchresults.php or something like that. I'm really new to php so sorry if this is kinda vague. If there's a better way of doing what I'm trying to above, please let me know! Thanks in advance for your help! __ Jason Dulberg Extreme MTB http://extreme.nas.net -- 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] MySQL --- OR in a select statement ???
On 5 Feb 2001 21:27:13 -0800, Dallas Kropka <[EMAIL PROTECTED]> wrote: >SELECT first_name FROM admin_table, user_table WHERE userNum = 1000 > > The info will only be in one or the other but what (if any) is the >correct syntax? You mean something like SELECT first_name FROM users LEFT JOIN admin_table on users.userNum = admin_table.userNum LEFT JOIN user_table on users.userNum = user_table.userNum WHERE admin_table.userNum=1000 OR user_table.userNum = 1000 ? (Disclaimers: There's probably a more efficient way of doing this. I've just finished an epic battle with MS SQL Server's poxy excuse for full-text searching and don't feel list spending any more time playing around with SQL statements this evening.) -- 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] MySQL --- OR in a select statement ???
You could do this: users admins - -- userID userID fname lname select U.* from users U, admins A where A.userID=U.userID && (U.userID=100 || U.userID=101) you could also use the IN () function ... select U.* from users U, admins A where A.userID=U.userID && U.userID in (100,101,400,500) Hope this helps! --Joe On Mon, Feb 05, 2001 at 11:34:21PM -0600, Dallas Kropka wrote: > > > Is it possible to include an OR condition in a MySQL select on 2 different > tables? > > I have 1 table of basic customers and one table of Admins, both tables > "Relate" to the UserNum table containing UserNumber login password and > privs, I want to select one field from the correct table based on the > usernumber which is unique to all users and stored in the root User > table trying to do something like this > > SELECT first_name FROM admin_table, user_table WHERE userNum = 1000 > > The info will only be in one or the other but what (if any) is the > correct syntax? > > > -- > 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] -- --- Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V --- -- 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] MySQL --- OR in a select statement ???
Is it possible to include an OR condition in a MySQL select on 2 different tables? I have 1 table of basic customers and one table of Admins, both tables "Relate" to the UserNum table containing UserNumber login password and privs, I want to select one field from the correct table based on the usernumber which is unique to all users and stored in the root User table trying to do something like this SELECT first_name FROM admin_table, user_table WHERE userNum = 1000 The info will only be in one or the other but what (if any) is the correct syntax? -- 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] PHP mail as 'nobody'
On Mon, 5 Feb 2001, Dave Goodrich wrote: > The problem is that some of our customers are now blocking mail from user > 'nobody', regardless if the account exists or not. I can have PHP write the > complete headers but that doesn't stop the 'from' header in Sendmail being > written (the true user process). I have two choices as I see it. > > 1) Use 'masquerade_envelope' feature in Sendmail > 2) Change the process name PHP/Apache is running under > (ex: change the unprivledged user 'nobody' to 'fantasic-elastic') You have one additional option. You can make the nobody user 'trusted' by sendmail. It's been awhile since I've done this but I believe you need to add a line to /etc/sendmail.cf along the lines of "Tnobody". Don't forget to restart sendmail for the changes to take effect. Then all you have to do is pass your own From: header and you're set. (it should be noted however that the Return-Path: header will always remain 'nobody'. --Steve -- 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] How to save something in a Java Applet as an IMAGE file?
we-e-e ... a-are ... the cha-a-a-ampions, my friend Dear Lise Fleming McKinney, You are subscribed to PHP-General Mailing List, we all often send this kind of things to each other without necessarily authenticating ourselves; Cheers, Maxim Maletsky -Original Message- From: Lise Fleming McKinney [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:43 PM To: Winnie; [EMAIL PROTECTED] Subject: RE: [PHP] How to save something in a Java Applet as an IMAGE file? Who are you and why are you sending me this? *-Original Message- *From: Winnie [mailto:[EMAIL PROTECTED]] *Sent: Monday, February 05, 2001 9:47 AM *To: [EMAIL PROTECTED] *Subject: [PHP] How to save something in a Java Applet as an IMAGE file? * * *hi, * *how can i do this? i have a java applet on my site which allows users to *create their own drawings. i want to provide a "Email this to me" option, *which will save the applet drawing and email it to the user. is there any *way i can achieve this? * *thanks! *winnie * * *--- *Outgoing mail is certified Virus Free. *Checked by AVG anti-virus system (http://www.grisoft.com). *Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01 * * * *-- *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]
[PHP-CVS] cvs: php4 /ext/wddx php_wddx_api.h
andrei Mon Feb 5 20:15:50 2001 EDT Modified files: /php4/ext/wddx php_wddx_api.h Log: Preserve API compatibility. Index: php4/ext/wddx/php_wddx_api.h diff -u php4/ext/wddx/php_wddx_api.h:1.11 php4/ext/wddx/php_wddx_api.h:1.12 --- php4/ext/wddx/php_wddx_api.h:1.11 Mon Feb 5 19:54:15 2001 +++ php4/ext/wddx/php_wddx_api.hMon Feb 5 20:15:50 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: php_wddx_api.h,v 1.11 2001/02/06 03:54:15 andrei Exp $ */ +/* $Id: php_wddx_api.h,v 1.12 2001/02/06 04:15:50 andrei Exp $ */ #ifndef PHP_WDDX_API_H #define PHP_WDDX_API_H @@ -61,6 +61,6 @@ voidphp_wddx_serialize_var(wddx_packet *packet, zval *var, char *name); int php_wddx_deserialize_ex(char *, int, zval *return_value); -char *php_wddx_gather(wddx_packet *packet); +#define php_wddx_gather(packet) estrndup(packet->c, packet->len) #endif /* PHP_WDDX_API_H */ -- PHP CVS 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 Digest 6 Feb 2001 04:07:22 -0000 Issue 495
php-general Digest 6 Feb 2001 04:07:22 - Issue 495 Topics (messages 38255 through 38349): Re: Which Regex library? 38255 by: johnny p. Make good money online! It's easy 38256 by: NEWS!! Why doesn't this work? Please trouble-shoot my script. 38257 by: chip.wiegand.simrad.com 38271 by: chip 38280 by: MarkRoedel Re: Making a object from one class available to all objects in th e calling class 38258 by: Tim Ward 38264 by: szii.sziisoft.com array max min 38259 by: rui.websolut.net 38261 by: Steve Werby 38266 by: rui.websolut.net 38272 by: Steve Werby 38293 by: rui.websolut.net GD 38260 by: Brandon Orther Re: job search/posting software 38262 by: Nathan Cassano AS400 SQL Errors and Resources 38263 by: Karl J. Stubsjoen Cobalt RaQ 38265 by: szii.sziisoft.com 38267 by: K.M. The 38270 by: Julian Morcinek 38278 by: szii.sziisoft.com include files 38268 by: David VanHorn 38276 by: Steve Werby 38279 by: Brian V Bonini 38283 by: David VanHorn 38290 by: Brian V Bonini 38295 by: Christian Reiniger Re: Java Servlet Support 38269 by: Alex Akilov GD for: PHP on WIN 38273 by: Brandon Orther 38274 by: Alexander Wagner Off the point! (Apache) 38275 by: Scott Fletcher saving images from mysql to file 38277 by: Phillip M.(Mike) Bishop How to reference global variables in strings 38281 by: Karl J. Stubsjoen 38311 by: Steve Edberg GD font errors 38282 by: Brandon Orther XML methods(SAX/expat) 38284 by: szii.sziisoft.com uploading file 38285 by: Shane McBride Is PHP integrated with LDAP? 38286 by: Zhu George-CZZ010 Attempt to unsubscribe failed 38287 by: Jon Jacob Re: XML Parsing with PHP 38288 by: Chris Lee 38292 by: Joe Stump 38294 by: Brian V Bonini PHPSESSID location? 38289 by: Shane McBride GD with TTF 38291 by: Brandon Orther Using a background image with GD 38296 by: Brandon Orther simple config. question 38297 by: Don 38298 by: Shane McBride 38299 by: Christian Reiniger 38320 by: Alain Fontaine COM and PHP 38300 by: Conover, Ryan Revised [PHP] COM and PHP 38301 by: Conover, Ryan Re: Learning MySQL 38302 by: Boaz Yahav Re: PHP hosting - the final frontier. 38303 by: Boaz Yahav Getting image size from gif/jpeg 38304 by: r a n d y 38305 by: Boaz Yahav 38309 by: r a n d y 38315 by: Brian V Bonini Apache Mod_Auth_DB. 38306 by: Dave McNicholl Re: [PHP-WIN] Revised [PHP] COM and PHP 38307 by: Conover, Ryan 38308 by: Sterling Hughes htaccess 38310 by: Kurth Bemis 38313 by: James, Yz Automating tasks in PHP? 38312 by: James, Yz 38316 by: Steve Werby 38318 by: Christian Reiniger 38322 by: Dave VanAuken General Question: OOP 38314 by: Kath 38317 by: Steve Werby COM Question 38319 by: Conover, Ryan SELECT options is null or not an object 38321 by: Gobins, Debbie Parse error on blank line... 38323 by: Jackson, Michael 38325 by: April 38327 by: April 38328 by: johnny p. 38329 by: Jackson, Michael 38330 by: April [newbie] Array form values. 38324 by: April 38332 by: David Robley Cookie problem 38326 by: Ben Wiechman PHP, MySQL and XML 38331 by: Thor M. Steindorsson 38339 by: Sean Cazzell Re: Select list with PHP 38333 by: Richard Lynch Mixing PHP code with phplib templates... possible? 38334 by: derek fong PHP mail as 'nobody' 38335 by: Dave Goodrich Timestamp field 38336 by: Chad Guilette 38337 by: David Robley MySQL previous next query 38338 by: Luis Lebron How can I do this?? :(( 38340 by: Sandeep Hundal 38345 by: Steve Werby SQL Statments? 38341 by: Jonathan Sharp 38343 by: Jason Brooke 38344 by: David Robley Re: Problem with Zend Encoder testdrive - Win2k 38342 by: Carsten Gehling Need some Help! [:)] 38346 by: Kelly Hamlin Generic cloner? 38347 by: Chien-pin Wang Re: How to save something in a Java Applet as an IMAGE file? 38348 by: Lise Fleming McKinney I wish: IIS and ISAPI $PHP_AUTH_USER 38349 by: Shane McBride Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- well, i would try this: ereg('([0-9]+\.){4}', $email, $res); I'm not sure if that will work, but your expression is definitely not corre
[PHP] I wish: IIS and ISAPI $PHP_AUTH_USER
I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and never got anywhere, so I used apache and it works fine. I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated, but no luck. I would like to use some of the functionality of IIS/NT5.0 Any ideas
[PHP-CVS] cvs: php4 /ext/wddx wddx.c
andrei Mon Feb 5 19:57:43 2001 EDT Modified files: /php4/ext/wddx wddx.c Log: Don't use Z* macros for non-zvals. Index: php4/ext/wddx/wddx.c diff -u php4/ext/wddx/wddx.c:1.61 php4/ext/wddx/wddx.c:1.62 --- php4/ext/wddx/wddx.c:1.61 Mon Feb 5 19:54:15 2001 +++ php4/ext/wddx/wddx.cMon Feb 5 19:57:43 2001 @@ -27,7 +27,7 @@ +--+ */ -/* $Id: wddx.c,v 1.61 2001/02/06 03:54:15 andrei Exp $ */ +/* $Id: wddx.c,v 1.62 2001/02/06 03:57:43 andrei Exp $ */ #include "php.h" #include "php_wddx.h" @@ -562,7 +562,7 @@ } } } else if (!strcmp(name, EL_STRING)) { - Z_TYPE(ent) = ST_STRING; + ent.type = ST_STRING; SET_STACK_VARNAME; ALLOC_ZVAL(ent.data); @@ -572,7 +572,7 @@ Z_STRLEN_P(ent.data) = 0; wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); } else if (!strcmp(name, EL_BINARY)) { - Z_TYPE(ent) = ST_BINARY; + ent.type = ST_BINARY; SET_STACK_VARNAME; ALLOC_ZVAL(ent.data); @@ -592,7 +592,7 @@ } } } else if (!strcmp(name, EL_NUMBER)) { - Z_TYPE(ent) = ST_NUMBER; + ent.type = ST_NUMBER; SET_STACK_VARNAME; ALLOC_ZVAL(ent.data); @@ -604,7 +604,7 @@ for (i=0; atts[i]; i++) { if (!strcmp(atts[i], EL_VALUE) && atts[i+1]) { - Z_TYPE(ent) = ST_BOOLEAN; + ent.type = ST_BOOLEAN; SET_STACK_VARNAME; ALLOC_ZVAL(ent.data); -- PHP CVS 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-CVS] cvs: php4 / NEWS /ext/wddx php_wddx_api.h wddx.c
andrei Mon Feb 5 19:54:15 2001 EDT Modified files: /php4 NEWS /php4/ext/wddx php_wddx_api.h wddx.c Log: Cleaned up and optimized WDDX serialization - it's about twice as fast now. Index: php4/NEWS diff -u php4/NEWS:1.582 php4/NEWS:1.583 --- php4/NEWS:1.582 Mon Feb 5 18:09:22 2001 +++ php4/NEWS Mon Feb 5 19:54:14 2001 @@ -2,12 +2,10 @@ ||| ?? ??? 200?, Version 4.0.5 +- Sped up WDDX serialization 2x. (Andrei) - Added a new parameter to mail() which appends aditional command line parameters to the mail program. (Derick) -- Added Udm_Clear_Search_Limits mnoGoSearch extension function. -- Fixed default search path. (gluke) -- Added new Udm_Add_Search_Limit mnoGoSearch extension function. - Some bugfixes and example update. (gluke) +- Added Udm_Clear_Search_Limits mnoGoSearch extension function. (gluke) - Fixed mnogosearch protos. Fixed mnogosearch functions return values. A bug with capital letters break search has been fixed. (gluke) - Static methods can now be called via call_user_method_* functions, e.g. Index: php4/ext/wddx/php_wddx_api.h diff -u php4/ext/wddx/php_wddx_api.h:1.10 php4/ext/wddx/php_wddx_api.h:1.11 --- php4/ext/wddx/php_wddx_api.h:1.10 Mon Aug 7 10:25:57 2000 +++ php4/ext/wddx/php_wddx_api.hMon Feb 5 19:54:15 2001 @@ -16,11 +16,13 @@ +--+ */ -/* $Id: php_wddx_api.h,v 1.10 2000/08/07 17:25:57 sas Exp $ */ +/* $Id: php_wddx_api.h,v 1.11 2001/02/06 03:54:15 andrei Exp $ */ #ifndef PHP_WDDX_API_H #define PHP_WDDX_API_H +#include "ext/standard/php_smart_str.h" + #define WDDX_ARRAY_S "" #define WDDX_ARRAY_E "" #define WDDX_BINARY_S "" @@ -45,23 +47,19 @@ #define WDDX_VAR_S "" #define WDDX_VAR_E "" -#define php_wddx_add_chunk(packet, str) { \ - char *__s = (str); \ - php_wddx_add_chunk_ex(packet, __s, strlen(__s)); \ - } -#define php_wddx_add_chunk_static(packet, str) \ - php_wddx_add_chunk_ex(packet, str, sizeof(str)-1); +#define php_wddx_add_chunk(packet, str)smart_str_appends(packet, str) +#define php_wddx_add_chunk_ex(packet, str, len)smart_str_appendl(packet, str, +len) +#define php_wddx_add_chunk_static(packet, str) smart_str_appendl(packet, str, +sizeof(str)-1) -typedef struct _wddx_packet wddx_packet; +typedef smart_str wddx_packet; wddx_packet *php_wddx_constructor(void); -voidphp_wddx_destructor(wddx_packet *packet); +#definephp_wddx_destructor(packet) smart_str_free(packet) voidphp_wddx_packet_start(wddx_packet *packet, char *comment, int comment_len); voidphp_wddx_packet_end(wddx_packet *packet); voidphp_wddx_serialize_var(wddx_packet *packet, zval *var, char *name); -voidphp_wddx_add_chunk_ex(wddx_packet *packet, char *str, int length); int php_wddx_deserialize_ex(char *, int, zval *return_value); char *php_wddx_gather(wddx_packet *packet); Index: php4/ext/wddx/wddx.c diff -u php4/ext/wddx/wddx.c:1.60 php4/ext/wddx/wddx.c:1.61 --- php4/ext/wddx/wddx.c:1.60 Fri Dec 22 04:57:08 2000 +++ php4/ext/wddx/wddx.cMon Feb 5 19:54:15 2001 @@ -27,7 +27,7 @@ +--+ */ -/* $Id: wddx.c,v 1.60 2000/12/22 12:57:08 zeev Exp $ */ +/* $Id: wddx.c,v 1.61 2001/02/06 03:54:15 andrei Exp $ */ #include "php.h" #include "php_wddx.h" @@ -40,6 +40,7 @@ #include "ext/standard/php_incomplete_class.h" #include "ext/standard/base64.h" #include "ext/standard/info.h" +#include "ext/standard/php_smart_str.h" #define WDDX_BUF_LEN 256 #define PHP_CLASS_NAME_VAR "php_class_name" @@ -72,11 +73,6 @@ static int le_wddx; -struct _wddx_packet { - zend_llist *packet_head; - int packet_length; -}; - typedef struct { zval *data; enum { @@ -98,12 +94,8 @@ } wddx_stack; -/* {{{ function prototypes */ static void php_wddx_process_data(void *user_data, const char *s, int len); -/* }}} */ - -/* {{{ module definition structures */ function_entry wddx_functions[] = { PHP_FE(wddx_serialize_value, NULL) @@ -129,10 +121,8 @@ STANDARD_MODULE_PROPERTIES }; -/* }}} */ -/* {{{ int wddx_stack_init(wddx_stack *stack) */ static int wddx_stack_init(wddx_stack *stack) { stack->top = 0; @@ -145,10 +135,8 @@ return SUCCESS; } } -/* }}} */ -/* {{{ int wddx_stack_push(wddx_stack *stack, void *element, int size) */ static int wddx_stack_push(wddx_stack *stack, void *element, int size) { if (stack->top >= stack->max) { /* we need to allocate more memory */
RE: [PHP] How to save something in a Java Applet as an IMAGE file?
Who are you and why are you sending me this? *-Original Message- *From: Winnie [mailto:[EMAIL PROTECTED]] *Sent: Monday, February 05, 2001 9:47 AM *To: [EMAIL PROTECTED] *Subject: [PHP] How to save something in a Java Applet as an IMAGE file? * * *hi, * *how can i do this? i have a java applet on my site which allows users to *create their own drawings. i want to provide a "Email this to me" option, *which will save the applet drawing and email it to the user. is there any *way i can achieve this? * *thanks! *winnie * * *--- *Outgoing mail is certified Virus Free. *Checked by AVG anti-virus system (http://www.grisoft.com). *Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01 * * * *-- *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] Generic cloner?
Hi, I'm wondering if there is an easy way to code a generic cloner at top level of object inheritance tree so that all descendents can follow? Or by nature the clone() function needs be implemented at final class def.? Thanks a lot! Chien-pin -- 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] Need some Help! [:)]
Currently i have two files post.php3 - http://www.bbhacks.com/board/post.phps and viewthread.php3 - http://www.bbhacks.com/board/viewthread.phps what im trying to do is make it so signatures are dynamic. I think im close but i also think since im fairly new i have some things wrong as well. Basically in a nutshell... i made a new row in post signature int(1) i replaced the normal code of if ($signature == yes) { $message .= blah } with if ($signature == yes) { $memsig = "1"; } and in post i have if ($post[signature] == 1) $sql = "SELECT * FROM members WHERE username='UserName'"; $query = mysql_db_query($database, $sql) or die(geterrdesc($sql)); $msig = mysql_fetch_array($query); $msig[signature] = $sig; $pagetext = $pagetext . "" . censor(bbcodeparse($sig)); can u find any problems with this code at all? the two problems im having are... 1. it puts a 1 in the db reguardless of choice. 2. when it is set to one, it shows _ but the signature is blank. Ive even tried to echo it out and its blank, and as far as i know its right thanks in advance. -- 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] How can I do this?? :((
"Sandeep Hundal" <[EMAIL PROTECTED]> wrote: > Now what I want to do is have another query which asks the second > table the number of comments per each section id, for that section, > (and I think QUERY2 does this fine). But I need the answers to > integrate with the information pulled from first query. How can I > intergrate the results from 2 queries into one basically! > $query1 = " SELECT entry FROM diary WHERE month='$month' ORDER BY id > desc"; > $result1 = mysql_query($query1); > > $query2 = "SELECT count(*) AS replies FROM sexsurvey_boys WHERE > section='diary' GROUP BY sectionid ORDER BY sectionid desc"; > $result2 = mysql_query($query2); There's no common fields b/w the two queries so it's not clear how you want to merge the two queries. If you wanted all results from one table and matching results from a second table based on a common field in both tables I'd suggest a LEFT JOIN (plenty of documentation on mysql.com and rest of internet). Looks like this probably won't help in your case so you might want to look at temporary tables, which will allow you to save the results from one or both queries into a table and then run a query using the temporary tables. Or you may be able to organize your PHP code to run the second query after each row of the first query is returned and integrate the results within PHP, but you could end up running a ton of queries that way. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- 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] SQL Statments?
On Tue, 6 Feb 2001 11:49, Jonathan Sharp wrote: > If I have a text file with all my sql statements (from like say > mysqldump) what's the easiest way of passing them to mysql? I'm on > RedHat6.2 with mysql 3.22.32 > > Thanks, > -Jonathan Assuming you want to recreate tables from the dump and assuming you have created the necessary database, you can simply do this on the command line mysql database < your_mysqldump_file or you can nominate the file in the data import part of phpMyAdmin -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- 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] SQL Statments?
> If I have a text file with all my sql statements (from like say mysqldump) > what's the easiest way of passing them to mysql? I'm on RedHat6.2 with mysql > 3.22.32 > > Thanks, > -Jonathan I'm not sure about the easiest way, but definitely an easy way would be to simply do: cat filename | mysql your_database -u user -p jason -- 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] Problem with Zend Encoder testdrive - Win2k
From: "Zeev Suraski" <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 4:32 PM > This is a known limitation in the initial release of the encoder. The > license file must be stored in C:\Program Files\Zend, even if your standard > Program Files directory is in E:. Thanks, that was about the only combination that I didn't try. Now why didn't I think of that... ;-) Anyway it works now - like a charm :) - Carsten -- 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] SQL Statments?
If I have a text file with all my sql statements (from like say mysqldump) what's the easiest way of passing them to mysql? I'm on RedHat6.2 with mysql 3.22.32 Thanks, -Jonathan -- 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] How can I do this?? :((
Hi all, I'm basically really struggling with this query, so would appreciate any pointers on how I could do this. I've included my experimental code underneath, and need to make it work. The first query, which I know works, pulls info from a mysql table. Now for each of my diary entry, I want people to be able to add comments. All comments go into another table which records what section that comment came from (which is diary), and the id (which it takes from the id number of the diary entry). Now what I want to do is have another query which asks the second table the number of comments per each section id, for that section, (and I think QUERY2 does this fine). But I need the answers to integrate with the information pulled from first query. How can I intergrate the results from 2 queries into one basically! CODE *** $query1 = " SELECT entry FROM diary WHERE month='$month' ORDER BY id desc"; $result1 = mysql_query($query1); $query2 = "SELECT count(*) AS replies FROM sexsurvey_boys WHERE section='diary' GROUP BY sectionid ORDER BY sectionid desc"; $result2 = mysql_query($query2); if ($result1) { echo ""; while ($r = mysql_fetch_array($result)) { extract($r); $entry = nl2br($entry); echo " $entry » comment on this diary entry read comments, (0) so far. "; } } else { echo "Whoops!"; } mysql_free_result($result1); * TIA! Sunny __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- 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] PHP, MySQL and XML
Well, you're going to have to come up with a datamodel for storing the parsed data. You can parse RDF files with the XML extension, see the docs at http://www.zend.com/manual/ref.xml.php There are some classes on phpclasses.upperdesign.com which will handle RSS files - you can probably look at these to get an idea of how to use the XML module to parse RDF. Regards, Sean Cazzell -- 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] MySQL previous next query
I need to build a query that needs to find the previous or next record in a database using a form. The records are numbered using a field called 'sb_num'. This field is initially set using the form. Would something like this work Next: Select 'field1', 'field2' from table order by sb_num where $sb_num>=++sb_num limit 1 Previous Select 'field1', 'field2' from table order by sb_num desc where $sb_num<=--$sb_num limit 1 Luis [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-CVS] cvs: php4 /ext/standard dns.c
svanegmond Mon Feb 5 16:07:21 2001 EDT Modified files: /php4/ext/standard dns.c Log: Added tests for arpa/*.h and resolv.h which don't exist on the BeOS. The dns functions on BeOS come from socket.h Index: php4/ext/standard/dns.c diff -u php4/ext/standard/dns.c:1.24 php4/ext/standard/dns.c:1.25 --- php4/ext/standard/dns.c:1.24Sun Jan 21 09:26:43 2001 +++ php4/ext/standard/dns.c Mon Feb 5 16:07:21 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: dns.c,v 1.24 2001/01/21 17:26:43 rasmus Exp $ */ +/* $Id: dns.c,v 1.25 2001/02/06 00:07:21 svanegmond Exp $ */ #include "php.h" #if HAVE_SYS_SOCKET_H @@ -42,14 +42,20 @@ #include #else #include +#if HAVE_ARPA_INET_H #include +#endif #include #ifdef _OSD_POSIX #undef STATUS #undef T_UNSPEC #endif +#if HAVE_ARPA_NAMESER_H #include +#endif +#if HAVE_RESOLV_H #include +#endif #endif #include "dns.h" -- PHP CVS 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-CVS] cvs: php4 / configure.in
svanegmond Mon Feb 5 16:03:44 2001 EDT Modified files: /php4 configure.in Log: Added tests for arpa/nameser.h and resolv.h, which don't exist on the BeOS. Index: php4/configure.in diff -u php4/configure.in:1.216 php4/configure.in:1.217 --- php4/configure.in:1.216 Sat Jan 27 16:16:55 2001 +++ php4/configure.in Mon Feb 5 16:03:44 2001 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.216 2001/01/28 00:16:55 jdonagher Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.217 2001/02/06 00:03:44 svanegmond Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -283,6 +283,7 @@ AC_CHECK_HEADERS( alloca.h \ arpa/inet.h \ +arpa/nameser.h \ crypt.h \ fcntl.h \ grp.h \ @@ -291,6 +292,7 @@ locale.h \ netinet/in.h \ pwd.h \ +resolv.h \ signal.h \ stdarg.h \ stdlib.h \ -- PHP CVS 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] Timestamp field
On Tue, 6 Feb 2001 10:03, Chad Guilette wrote: > I'm currenly having a problem with a timestamp field I have on my message > board...each message is given a timestamp and stored in a table...heres > the basic form of the insert... > > $time_added=date("Y m d H i s A"); > > $str = "INSERT INTO topic ( num_id, user, quote, subject, ip, > message_icon, page, post_id, thread_page, forum_num, time_added) VALUES > (\"$comment_id\", \"$user[0]\", \"$quote\", \"$subject\", \"$ip\", > \"$message_icon\", 0, \"$new_post_id[0]\", \"$thread_page_num\", \"$f\", > \"$time_added\")"; $result = mysql_query($str); > > $time_added is a timestamp field in my MySQL table Here is the reason - please see the mysql docs about the behaviour of a timestamp field, particularly how it is automatically updated if, among other circumstances, "the column is not specified in an insert ... statement" You may need a datetime type which doesn't auto-update. > > this works fine... > > But in the adminstrative tools im setting up, if i edit the post and > resubmit the time is updated to the current time. Heres the admin code i > use to update the post...t, transaction, is the unique field for each > post so I use it to pull up the post..the body of the post is in a > textarea (name=editpost) and i change it as needed and submit it which > directs the script to the following block of code: > > $editpost = addslashes($editpost); > $insertion = "update topic set quote=\"$editpost\" where > transaction=\"$t\""; > $insertion_query = mysql_query($insertion); > > The post is updated fine but the time is changed as I stated...Now I know > I could pull the time_added field out and assign it to a separate > variable and re-insert it when im updating but I'm curious as to why this > would be happening...These are the only places where any modifications > are made to the posts...on insertion and admin modification so I'm > stumped as to what could be happening. > > Any ideas or suggestion, > > Regards, > Chad Guilette -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- 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] Timestamp field
I'm currenly having a problem with a timestamp field I have on my message board...each message is given a timestamp and stored in a table...heres the basic form of the insert... $time_added=date("Y m d H i s A"); $str = "INSERT INTO topic ( num_id, user, quote, subject, ip, message_icon, page, post_id, thread_page, forum_num, time_added) VALUES (\"$comment_id\", \"$user[0]\", \"$quote\", \"$subject\", \"$ip\", \"$message_icon\", 0, \"$new_post_id[0]\", \"$thread_page_num\", \"$f\", \"$time_added\")"; $result = mysql_query($str); $time_added is a timestamp field in my MySQL table this works fine... But in the adminstrative tools im setting up, if i edit the post and resubmit the time is updated to the current time. Heres the admin code i use to update the post...t, transaction, is the unique field for each post so I use it to pull up the post..the body of the post is in a textarea (name=editpost) and i change it as needed and submit it which directs the script to the following block of code: $editpost = addslashes($editpost); $insertion = "update topic set quote=\"$editpost\" where transaction=\"$t\""; $insertion_query = mysql_query($insertion); The post is updated fine but the time is changed as I stated...Now I know I could pull the time_added field out and assign it to a separate variable and re-insert it when im updating but I'm curious as to why this would be happening...These are the only places where any modifications are made to the posts...on insertion and admin modification so I'm stumped as to what could be happening. Any ideas or suggestion, Regards, Chad Guilette -- 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] PHP mail as 'nobody'
We have a series of subscribed e-mails that go out to customers, you know "Forgot your password?" type thing. Theses are generated by a PHP process and as such carry PHP/Apache's process ID. The problem is that some of our customers are now blocking mail from user 'nobody', regardless if the account exists or not. I can have PHP write the complete headers but that doesn't stop the 'from' header in Sendmail being written (the true user process). I have two choices as I see it. 1) Use 'masquerade_envelope' feature in Sendmail 2) Change the process name PHP/Apache is running under (ex: change the unprivledged user 'nobody' to 'fantasic-elastic') Has anyone experienced this yet? Any suggestions as to which would be the best solution? I'm leaning towards changing the user of PHP/Apache simply because it doesn't cause a reliance on Sendmail. Thanks, DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 [EMAIL PROTECTED] http://www.rblc.com -- 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] Mixing PHP code with phplib templates... possible?
Hi, Is there a way to embed PHP code in phplib's template files? I need to run all hyperlinks through a function in order to maintain state and pass other variables from script to script. I figure this must be possible, but I'm new at using phplib, so I'm not all that clear on it... Any ideas? --- Derek Fong web://developer Zero-Knowledge Systems [http://www.zeroknowledge.com/] PGP Fingerprint >> 2D4F 89F0 EAC1 FBFB 97B5 0B94 FA05 C29E D23B 0A4E -- 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] Select list with PHP
You need to reset: $option = ''; before each product. So, inside the while(...mysql_fetch_row()) loop, but outside the while(...$colors) loop. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Gerry <[EMAIL PROTECTED]> To: Richard Lynch <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, February 04, 2001 10:23 AM Subject: Re: [PHP] Select list with PHP > This worked! > But, I get this color selection increment on each subsequent menu where > the colors from the row above mix with the ones below and so on. Assume > that the numbers are the actual colors: > > Select a color: > > first menu1 next menu-> 1 next menu-> even longer > 2 2 > 3 3 > 4 4 > 5 5 > 1 > 2 > 3 > 4 > 5 > > mysql_connect(); > while ($row = mysql_fetch_array($sql_result)) { > echo""; > echo $row["paint"]; > echo""; > echo $row["bucket"]; > echo""; > echo"http://www.\" method=\"POST\">"; > $Colors = $row["Color"]; > $options = explode(",", $Colors); > while (list(,$Color) = each($options)){ > $option .= "$Color\n"; > } > echo""; > echo "$option"; > echo""; > echo""; > echo" > > > It's usually a better idea to store this as a "relation": > > I'm afraid so. > > Thanks: > Gerry Figueroa > > - > Modern Confucious: > Man who run behind car get exhausted. > -- 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] [newbie] Array form values.
On Tue, 6 Feb 2001 08:57, April wrote: > I have a form that is an extended version of this: > > > > > > > > Unfortunately, the email[1] part was generated using a variable in a > loop. I have no idea how many of these fields there really will be each > time this is done. > > I then need to turn around and, while processing the form, extract the > values for each field in another loop. > Trying to do echo $email[$i] doesn't seem to work, though. > > Is my entire logical approach wrong? Could it be something wrong with > syntax? Is it not possible to use a variable as the inner part of an > array like that? ooo, or best one to answer: does someone have a > snippet of code doing what I want to do here, that I could learn from? Have a look at the functions list and each - there are code snippets in the manual which should give you some ideas for getting the values and keys from an array. You might also be interested in count and sizeof for determining the number of elements in the array. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- 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] PHP, MySQL and XML
Does anyone have a solution for importing data from a RDF-XML file into a MySQL database? I've been racking my brain, as well as looking at tutorials and some xml parsers, but if someone has something like this it would save me tons of time. Thanks! -- 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] Parse error on blank line...
No, I have the same thing happen all the time. It happens after a combination of }'s and ;'s where either a } or a ; is missing. Seriously. - Original Message - From: "Jackson, Michael" <[EMAIL PROTECTED]> To: "'johnny p.'" <[EMAIL PROTECTED]>; "April" <[EMAIL PROTECTED]>; "Jackson, Michael" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 4:48 PM Subject: RE: [PHP] Parse error on blank line... > Even if I was missing a brace, doesn't it seem odd that it would always > give me a syntax error on the same line? It's as if it's arbitrarily > deciding to break there... If I add a new line after the exact same line number... And again, I can comment it out, and it will > still give me an error on the same line number. Again, this is the same > line NUMBER - It apparently doesn't matter what snippet of code exists > there. > > -Original Message- > From: johnny p. [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 05:38 PM > To: April; Jackson, Michael; [EMAIL PROTECTED] > Subject: RE: [PHP] Parse error on blank line... > > > I'm not sure where it is, but I agree that you are missing a curly brace > somewhere. Take a break from your code for a bit, come back to it, and > start matching braces. I suggest getting a coffee or some tea. > > johnny p. > > > -Original Message- > > From: April [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 05, 2001 4:31 PM > > To: Jackson, Michael; [EMAIL PROTECTED] > > Subject: Re: [PHP] Parse error on blank line... > > > > > > You missed a } in there. Inside of that else, you have an > > if, but you never > > close the else. > > > > >190 showmainscreen(); > > >191} > > >192 > > > > should be > > > > >190 showmainscreen(); > > >191} > > >192} > > > > - Original Message - > > From: "Jackson, Michael" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, February 05, 2001 4:23 PM > > Subject: [PHP] Parse error on blank line... > > > > > > > Hello all, > > > > > > I hope this doesn't turn out to be a stupid question, > > but we will > > > see... I am getting parse errors on blank lines. Not > > commented, but > > > totally blank. And seemingly no matter how I manipulate > > the text, it > > turns > > > out to always be on the same line. I'm using vim with > > syntax tags to help > > > me check my basic syntax, and everything seems to be closed > > - I am at a > > > total loss as to what could be wrong! Let me try to > > clarify: Take the > > > following snippet of code - It errors out on line 193. I > > have no idea > > why. > > > I added blank lines to shift the code around - and if I > > eliminated all of > > > the blank lines, I still error out on 193. > > > > > >001 > > > > >. > > > > > > > > >181 ## > > >182 # BEGIN CODE # > > >183 ## > > >184 > > >185 if ($goodtogo != "yes") { > > >186sanitize_session(); > > >187 } > > >188 else { > > >189if ($state == "main") { > > >190 showmainscreen(); > > >191} > > >192 > > > > 193 > > >194 > > >195 > > >196elseif ($state == "add") { > > >197 adduser($product,$username); > > >198} > > >199elseif ($state == "search") { > > >200 searchuser($username); > > >201} > > >202else { > > >203 doh(); > > >204} > > >205 } > > >206 > > >207 > > >208 # END CODE # > > >209 > > >210 ?> > > > > > > Any help is greatly appreciated! > > > > > > -- > > > 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] > > > > > -- 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] Parse error on blank line...
Even if I was missing a brace, doesn't it seem odd that it would always give me a syntax error on the same line? It's as if it's arbitrarily deciding to break there... If I add a new line after mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 05:38 PM To: April; Jackson, Michael; [EMAIL PROTECTED] Subject: RE: [PHP] Parse error on blank line... I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. > -Original Message- > From: April [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 4:31 PM > To: Jackson, Michael; [EMAIL PROTECTED] > Subject: Re: [PHP] Parse error on blank line... > > > You missed a } in there. Inside of that else, you have an > if, but you never > close the else. > > >190 showmainscreen(); > >191} > >192 > > should be > > >190 showmainscreen(); > >191} > >192} > > - Original Message - > From: "Jackson, Michael" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, February 05, 2001 4:23 PM > Subject: [PHP] Parse error on blank line... > > > > Hello all, > > > > I hope this doesn't turn out to be a stupid question, > but we will > > see... I am getting parse errors on blank lines. Not > commented, but > > totally blank. And seemingly no matter how I manipulate > the text, it > turns > > out to always be on the same line. I'm using vim with > syntax tags to help > > me check my basic syntax, and everything seems to be closed > - I am at a > > total loss as to what could be wrong! Let me try to > clarify: Take the > > following snippet of code - It errors out on line 193. I > have no idea > why. > > I added blank lines to shift the code around - and if I > eliminated all of > > the blank lines, I still error out on 193. > > > >001 > > >. > > > > > >181 ## > >182 # BEGIN CODE # > >183 ## > >184 > >185 if ($goodtogo != "yes") { > >186sanitize_session(); > >187 } > >188 else { > >189if ($state == "main") { > >190 showmainscreen(); > >191} > >192 > > > 193 > >194 > >195 > >196elseif ($state == "add") { > >197 adduser($product,$username); > >198} > >199elseif ($state == "search") { > >200 searchuser($username); > >201} > >202else { > >203 doh(); > >204} > >205 } > >206 > >207 > >208 # END CODE # > >209 > >210 ?> > > > > Any help is greatly appreciated! > > > > -- > > 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] > > -- 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] Parse error on blank line...
I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. > -Original Message- > From: April [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 4:31 PM > To: Jackson, Michael; [EMAIL PROTECTED] > Subject: Re: [PHP] Parse error on blank line... > > > You missed a } in there. Inside of that else, you have an > if, but you never > close the else. > > >190 showmainscreen(); > >191} > >192 > > should be > > >190 showmainscreen(); > >191} > >192} > > - Original Message - > From: "Jackson, Michael" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, February 05, 2001 4:23 PM > Subject: [PHP] Parse error on blank line... > > > > Hello all, > > > > I hope this doesn't turn out to be a stupid question, > but we will > > see... I am getting parse errors on blank lines. Not > commented, but > > totally blank. And seemingly no matter how I manipulate > the text, it > turns > > out to always be on the same line. I'm using vim with > syntax tags to help > > me check my basic syntax, and everything seems to be closed > - I am at a > > total loss as to what could be wrong! Let me try to > clarify: Take the > > following snippet of code - It errors out on line 193. I > have no idea > why. > > I added blank lines to shift the code around - and if I > eliminated all of > > the blank lines, I still error out on 193. > > > >001 > > >. > > > > > >181 ## > >182 # BEGIN CODE # > >183 ## > >184 > >185 if ($goodtogo != "yes") { > >186sanitize_session(); > >187 } > >188 else { > >189if ($state == "main") { > >190 showmainscreen(); > >191} > >192 > > > 193 > >194 > >195 > >196elseif ($state == "add") { > >197 adduser($product,$username); > >198} > >199elseif ($state == "search") { > >200 searchuser($username); > >201} > >202else { > >203 doh(); > >204} > >205 } > >206 > >207 > >208 # END CODE # > >209 > >210 ?> > > > > Any help is greatly appreciated! > > > > -- > > 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] > > -- 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-CVS] cvs: php4 /ext/standard mail.c php_mail.h
> > Modified files: > /php4/ext/standard mail.c php_mail.h > Log: > - Added a new parameter to mail() which appends aditional command line > parameters to the mail program. This is usefull to set the From headers > correctly with the -f parameter to sendmail p.e. > @- Added a new parameter to mail() which appends aditional command line > @ parameters to the mail program. (Derick) > This won't be portable, on windows it uses raw smtp code... Are you sure we should be adding that option to the mail() command? If the user really needs the advanced features provided by sendmail, they can easily use popen() to achieve this... -Sterling -- PHP CVS 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-I18N] DB/2 and php
Hi, I am trying to connect to a remote db/2 server with PHP. The docs say that there is no need to use ODBC - so I do not want to :) But how can I define a DSN when I have no ODBC installed? How is the odbc_connect function called without a predefined DSN? I just don't get it :) Dennis -- PHP Internationalization 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] Parse error on blank line...
argh, nm, I'm an idiot. - Original Message - From: "April" <[EMAIL PROTECTED]> To: "Jackson, Michael" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 4:31 PM Subject: Re: [PHP] Parse error on blank line... > You missed a } in there. Inside of that else, you have an if, but you never > close the else. > > >190 showmainscreen(); > >191} > >192 > > should be > > >190 showmainscreen(); > >191} > >192} > > - Original Message - > From: "Jackson, Michael" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, February 05, 2001 4:23 PM > Subject: [PHP] Parse error on blank line... > > > > Hello all, > > > > I hope this doesn't turn out to be a stupid question, but we will > > see... I am getting parse errors on blank lines. Not commented, but > > totally blank. And seemingly no matter how I manipulate the text, it > turns > > out to always be on the same line. I'm using vim with syntax tags to help > > me check my basic syntax, and everything seems to be closed - I am at a > > total loss as to what could be wrong! Let me try to clarify: Take the > > following snippet of code - It errors out on line 193. I have no idea > why. > > I added blank lines to shift the code around - and if I eliminated all of > > the blank lines, I still error out on 193. > > > >001 > > >. > > > > > >181 ## > >182 # BEGIN CODE # > >183 ## > >184 > >185 if ($goodtogo != "yes") { > >186sanitize_session(); > >187 } > >188 else { > >189if ($state == "main") { > >190 showmainscreen(); > >191} > >192 > > > 193 > >194 > >195 > >196elseif ($state == "add") { > >197 adduser($product,$username); > >198} > >199elseif ($state == "search") { > >200 searchuser($username); > >201} > >202else { > >203 doh(); > >204} > >205 } > >206 > >207 > >208 # END CODE # > >209 > >210 ?> > > > > Any help is greatly appreciated! > > > > -- > > 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] > -- 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] Cookie problem
I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. Problem is, when I do this, the script does not set the cookie variables. If I just run the script the cookies are set, and read, correctly, but when I include the PHP script with the SSI call it does not read the cookie variables for some reason. Does anyone know a work-around for this? And using a std php script is not an option, I need a way to get this to work using SSI. Any help would be greatly appreciated. Thanks in advance, Ben -- 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] Parse error on blank line...
You missed a } in there. Inside of that else, you have an if, but you never close the else. >190 showmainscreen(); >191} >192 should be >190 showmainscreen(); >191} >192} - Original Message - From: "Jackson, Michael" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... > Hello all, > > I hope this doesn't turn out to be a stupid question, but we will > see... I am getting parse errors on blank lines. Not commented, but > totally blank. And seemingly no matter how I manipulate the text, it turns > out to always be on the same line. I'm using vim with syntax tags to help > me check my basic syntax, and everything seems to be closed - I am at a > total loss as to what could be wrong! Let me try to clarify: Take the > following snippet of code - It errors out on line 193. I have no idea why. > I added blank lines to shift the code around - and if I eliminated all of > the blank lines, I still error out on 193. > >001 >. > > >181 ## >182 # BEGIN CODE # >183 ## >184 >185 if ($goodtogo != "yes") { >186sanitize_session(); >187 } >188 else { >189if ($state == "main") { >190 showmainscreen(); >191} >192 > > 193 >194 >195 >196elseif ($state == "add") { >197 adduser($product,$username); >198} >199elseif ($state == "search") { >200 searchuser($username); >201} >202else { >203 doh(); >204} >205 } >206 >207 >208 # END CODE # >209 >210 ?> > > Any help is greatly appreciated! > > -- > 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]
[PHP] [newbie] Array form values.
I have a form that is an extended version of this: Unfortunately, the email[1] part was generated using a variable in a loop. I have no idea how many of these fields there really will be each time this is done. I then need to turn around and, while processing the form, extract the values for each field in another loop. Trying to do echo $email[$i] doesn't seem to work, though. Is my entire logical approach wrong? Could it be something wrong with syntax? Is it not possible to use a variable as the inner part of an array like that? ooo, or best one to answer: does someone have a snippet of code doing what I want to do here, that I could learn from? -- 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] Parse error on blank line...
Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193. 001193 194 195 196elseif ($state == "add") { 197 adduser($product,$username); 198} 199elseif ($state == "search") { 200 searchuser($username); 201} 202else { 203 doh(); 204} 205 } 206 207 208 # END CODE # 209 210 ?> Any help is greatly appreciated! -- 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-CVS] cvs: php4 /ext/com typedef_VARIANT.c /ext/standard basic_functions.c
zeevMon Feb 5 13:59:17 2001 EDT Modified files: /php4/ext/com typedef_VARIANT.c /php4/ext/standard basic_functions.c Log: Fix Windows build Index: php4/ext/com/typedef_VARIANT.c diff -u php4/ext/com/typedef_VARIANT.c:1.4 php4/ext/com/typedef_VARIANT.c:1.5 --- php4/ext/com/typedef_VARIANT.c:1.4 Fri Feb 2 07:01:48 2001 +++ php4/ext/com/typedef_VARIANT.c Mon Feb 5 13:59:16 2001 @@ -30,6 +30,7 @@ #include "php_ini.h" #include "php_typedef_VARIANT.h" #include "conversion.h" +#include "ext/standard/info.h" #include @@ -48,6 +49,7 @@ {NULL, NULL, NULL} }; + static PHP_MINFO_FUNCTION(VARIANT) { php_info_print_table_start(); @@ -55,9 +57,11 @@ php_info_print_table_end(); } + zend_module_entry VARIANT_module_entry = { "variant", VARIANT_functions, PHP_MINIT(VARIANT), PHP_MSHUTDOWN(VARIANT), NULL, NULL, PHP_MINFO(VARIANT), STANDARD_MODULE_PROPERTIES }; + PHP_MINIT_FUNCTION(VARIANT) { Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.301 php4/ext/standard/basic_functions.c:1.302 --- php4/ext/standard/basic_functions.c:1.301 Mon Feb 5 09:37:47 2001 +++ php4/ext/standard/basic_functions.c Mon Feb 5 13:59:16 2001 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: basic_functions.c,v 1.301 2001/02/05 17:37:47 andrei Exp $ */ +/* $Id: basic_functions.c,v 1.302 2001/02/05 21:59:16 zeev Exp $ */ #include "php.h" #include "php_main.h" @@ -1530,39 +1530,39 @@ } /* }}} */ -PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers){ +PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers) +{ FILE *logfile; int issock=0, socketd=0;; switch(opt_err){ - case 1: /*send an email*/ - { + case 1: /*send an email*/ { #if HAVE_SENDMAIL - if (!php_mail(opt,"PHP error_log message",message,headers)){ - return FAILURE; - } + if (!php_mail(opt, "PHP error_log message", message, +headers, NULL)){ + return FAILURE; + } #else - php_error(E_WARNING,"Mail option not available!"); - return FAILURE; + php_error(E_WARNING,"Mail option not available!"); + return FAILURE; #endif - } - break; - case 2: /*send to an address */ - php_error(E_WARNING,"TCP/IP option not available!"); - return FAILURE; - break; - case 3: /*save to a file*/ - logfile=php_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd, NULL); - if(!logfile) { - php_error(E_WARNING,"error_log: Unable to write to %s",opt); + } + break; + case 2: /*send to an address */ + php_error(E_WARNING,"TCP/IP option not available!"); return FAILURE; - } - fwrite(message,strlen(message),1,logfile); - fclose(logfile); - break; - default: - php_log_err(message); - break; + break; + case 3: /*save to a file*/ + logfile=php_fopen_wrapper(opt,"a", +(IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd, NULL); + if(!logfile) { + php_error(E_WARNING,"error_log: Unable to write to +%s",opt); + return FAILURE; + } + fwrite(message,strlen(message),1,logfile); + fclose(logfile); + break; + default: + php_log_err(message); + break; } return SUCCESS; } -- PHP CVS 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] Automating tasks in PHP?
and then someone always asks why this isn't included as part of PHP and how dumping such a task out to cron is stupid and it should be incorporated into PHP... blah blah blah. to preempt that. cron does it fine, low overhead, and the function of PHP is not in the realm of cron's function. if you don't like messing with cron every time you want to do something, have cron run a cron.php every minute and then just edit your cron.php to do what you want. Dave -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 4:16 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Automating tasks in PHP? On Monday 05 February 2001 21:48, James, Yz wrote: > Hi all. This is, what might turn out to be a stupid question But > I'll ask it anyway ;) > > Is there any way of automating tasks in php scripts, WITHOUT having > them open? Ie, having some method or other to send out an email > automatically, once a week, as a newsletter, based on data / criteria > from a database? Somehow this question comes up about once a day. Search the ML archives for "cron" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- 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]
[PHP] SELECT options is null or not an object
Does anyone know why I get this error when selecting an option in the box? TH {Color: Blue} .red {color: red; font-weight: bold} .blue {color: blue; font-weight: bold} .navy {color: navy; font-weight: bold} '' ORDER BY summary"; $result=db_query($sql); $bug_id = db_result($result, "0", "bug_id"); $bug_useCase_id = db_result($result, "0", "bug_useCase_id"); $summary = db_result($result, "0", "summary"); if ($result) { $num_rows = db_numrows($result); if ($num_rows > 0) { print ""; print "SourceForge Admin Tool"; print "Change UseCase ID\n"; for ( $i = 0; $i < 10; $i++ ){ $row = db_fetch_array($result); $bug_id = $row['bug_id']; $bug_useCase_id = $row['bug_useCase_id']; $summary = $row['summary']; $summary = substr($summary,0,30); $options[$i] .= $bug_id." - ".$bug_useCase_id." - ".$summary; $values[$i] .= $bug_id; } print "\n"; for ( $j = 0; $j < 10; $j++ ){ $strOption = "".$options[$j]."\n"; print $strOption; } print "\n"; print "\n"; print "\n"; } else { print "No rows retuned"; exit; } } else print "Please check SQL Query ".$sql.""; ?> -- 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] simple config. question
Christian, Wouldn't this put unnecessary load on the webserver? Every .htm and .html document, even if it doesn't contain any line of PHP code, would go through the parser... ? "Christian Reiniger" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] On Monday 05 February 2001 20:14, Shane McBride wrote: > Unless I am mistaken, I am pretty sure you need to have sometype of > .php extension. Unless you could put a line in the httpd.conf file > like: AddType application/x-httpd-php .html Well, that's exactly the right way :) Perhaps a more "generous" setup would be even better though: AddType application/x-httpd-php .html .htm .php3 .php .phtml -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- 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]
[PHP-CVS] cvs: php4 /ext/standard mail.c php_mail.h
derick Mon Feb 5 13:30:30 2001 EDT Modified files: /php4/ext/standard mail.c php_mail.h Log: - Added a new parameter to mail() which appends aditional command line parameters to the mail program. This is usefull to set the From headers correctly with the -f parameter to sendmail p.e. @- Added a new parameter to mail() which appends aditional command line @ parameters to the mail program. (Derick) Index: php4/ext/standard/mail.c diff -u php4/ext/standard/mail.c:1.29 php4/ext/standard/mail.c:1.30 --- php4/ext/standard/mail.c:1.29 Sun Jan 21 09:26:43 2001 +++ php4/ext/standard/mail.cMon Feb 5 13:30:29 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: mail.c,v 1.29 2001/01/21 17:26:43 rasmus Exp $ */ +/* $Id: mail.c,v 1.30 2001/02/05 21:30:29 derick Exp $ */ #include #include @@ -75,16 +75,16 @@ RETURN_LONG((int) h); } -/* {{{ proto int mail(string to, string subject, string message [, string additional_headers]) +/* {{{ proto int mail(string to, string subject, string message [, string +additional_headers [, string additional_parameters]]) Send an email message */ PHP_FUNCTION(mail) { - pval **argv[4]; - char *to=NULL, *message=NULL, *headers=NULL, *subject=NULL; + pval **argv[5]; + char *to=NULL, *message=NULL, *headers=NULL, *subject=NULL, *extra_cmd=NULL; int argc; argc = ZEND_NUM_ARGS(); - if (argc < 3 || argc > 4 || zend_get_parameters_array_ex(argc, argv) == FAILURE) { + if (argc < 3 || argc > 5 || zend_get_parameters_array_ex(argc, argv) == +FAILURE) { WRONG_PARAM_COUNT; } /* To: */ @@ -115,12 +115,17 @@ message = NULL; } - if (argc == 4) {/* other headers */ + if (argc >= 4) {/* other headers */ convert_to_string_ex(argv[3]); headers = (*argv[3])->value.str.val; } - if (php_mail(to, subject, message, headers)){ + if (argc == 5) {/* extra options that get passed to +the mailer */ + convert_to_string_ex(argv[4]); + extra_cmd = (*argv[4])->value.str.val; + } + + if (php_mail(to, subject, message, headers, extra_cmd)) { RETURN_TRUE; } else { RETURN_FALSE; @@ -128,7 +133,7 @@ } /* }}} */ -int php_mail(char *to, char *subject, char *message, char *headers) +int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd) { #ifdef PHP_WIN32 int tsm_err; @@ -136,6 +141,7 @@ FILE *sendmail; int ret; char *sendmail_path = INI_STR("sendmail_path"); + char *sendmail_cmd = NULL; #endif #ifdef PHP_WIN32 @@ -147,7 +153,18 @@ if (!sendmail_path) { return 0; } - sendmail = popen(sendmail_path, "w"); + if (extra_cmd != NULL) { + sendmail_cmd = emalloc (strlen (sendmail_path) + strlen (extra_cmd) + +2); + strcpy (sendmail_cmd, sendmail_path); + strcat (sendmail_cmd, " "); + strcat (sendmail_cmd, extra_cmd); + } else { + sendmail_cmd = sendmail_path; + } + + sendmail = popen(sendmail_cmd, "w"); + if (extra_cmd != NULL) + efree (sendmail_cmd); if (sendmail) { fprintf(sendmail, "To: %s\n", to); Index: php4/ext/standard/php_mail.h diff -u php4/ext/standard/php_mail.h:1.7 php4/ext/standard/php_mail.h:1.8 --- php4/ext/standard/php_mail.h:1.7Sun Jul 23 18:39:49 2000 +++ php4/ext/standard/php_mail.hMon Feb 5 13:30:29 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: php_mail.h,v 1.7 2000/07/24 01:39:49 david Exp $ */ +/* $Id: php_mail.h,v 1.8 2001/02/05 21:30:29 derick Exp $ */ #ifndef PHP_MAIL_H #define PHP_MAIL_H @@ -26,7 +26,7 @@ PHP_FUNCTION(mail); PHP_FUNCTION(ezmlm_hash); PHP_MINFO_FUNCTION(mail); -extern int php_mail(char *to, char *subject, char *message, char *headers); +extern int php_mail(char *to, char *subject, char *message, char *headers, char +*extra_cmd); #endif -- PHP CVS 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] COM Question
Do I need to have anything special installed on the server (IIS) to call excel and word with COM. Ryan -- 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] Automating tasks in PHP?
On Monday 05 February 2001 21:48, James, Yz wrote: > Hi all. This is, what might turn out to be a stupid question But > I'll ask it anyway ;) > > Is there any way of automating tasks in php scripts, WITHOUT having > them open? Ie, having some method or other to send out an email > automatically, once a week, as a newsletter, based on data / criteria > from a database? Somehow this question comes up about once a day. Search the ML archives for "cron" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- 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] General Question: OOP
"Kath" <[EMAIL PROTECTED]> wrote: > Does anyone here have an explanation guide to object oriented programming? I look at stuff like $this->something and haven't the foggiest what it means. Would a book on OOP be best? I own one PHP book, Professional PHP Programming by WROX Publishing. Good for beginners and intermediate level PHP programmers. It covers OOP using PHP pretty well and does a pretty good job and has a few case studies that help you apply the concepts covered in the book. With the PHP online manual and this book I feel that any programmer should be able to get up to speed with PHP. There are tutorials online as well. Try zend.com, phpbuilder.com, weberdev.com and hotwired among others. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- 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] Automating tasks in PHP?
"James, Yz" <[EMAIL PROTECTED]> wrote: > Is there any way of automating tasks in php scripts, WITHOUT having them > open? Ie, having some method or other to send out an email automatically, > once a week, as a newsletter, based on data / criteria from a database? cron. See "man cron" from Linux/Unix commandline. Use it to schedule programs. If you have PHP installed as a CGI you can call a PHP file directly, otherwise you'll have to call it using its full URL using a program like wget or lynx. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- 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] Getting image size from gif/jpeg
getimagesize (string filename [, array imageinfo]) http://php.net/manual/en/function.getimagesize.php > -Original Message- > From: r a n d y [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 2:55 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Getting image size from gif/jpeg > > > Is it possible to get the size of an image in PHP4? > > if so, does it require gif/jpeg support built in? > > Thanks > > == > r a n d y // sesser at mac dot com > http://randys.org > > -- > 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]
[PHP] General Question: OOP
This isn't PHP related, but I hope it isn't too off topic for this list. Does anyone here have an explanation guide to object oriented programming? I look at stuff like $this->something and haven't the foggiest what it means. Would a book on OOP be best? - Kath, procedural programmer 4EVER
Re: [PHP] htaccess
This is a good one: http://www.zend.com/zend/tut/authentication.php James. > there was a really good .htaccess tutorial posted to the list a while > back...anyone remember the address? > > ~kurth > > > -- > 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]
[PHP] Automating tasks in PHP?
Hi all. This is, what might turn out to be a stupid question But I'll ask it anyway ;) Is there any way of automating tasks in php scripts, WITHOUT having them open? Ie, having some method or other to send out an email automatically, once a week, as a newsletter, based on data / criteria from a database? Thanks for your patience, James. -- 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-CVS] cvs: php4 /win32 time.c
Does this variable need to be a true global? If it does then it has to be mutexed. Having said that if two threads want to change it and you think it doesn't really matter which one will "win" then you can probably live without the mutex. Andi At 10:35 AM 2/5/2001 +, James Moore wrote: > > I don't think you should be using static variables in the > > functions. Don't > > forget that you might have more than one thread accessing this > > function at > > a time (unless you came to the conclusion that a race here can't > > do any harm). > >I dont think race conditions here will do any real harm but then again its >probably best to be safe. Having said that I am not 100% sure on how to make >it thread safe either which I would like to do. Are there any documents or >guidlines anywhere I can read about this? Its probably a good chance to >learn. > >James > > >-- >PHP CVS 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 CVS 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] How to reference global variables in strings
At 10:57 AM -0700 2/5/01, Karl J. Stubsjoen wrote: >If you don't prefix a global variable with $ then how can you interpit a >global variable within a string? AS IN: > >define ("MY_PATH", "/home/me/"); > >print("This is My Path: MY_PATH or is it?"); > This wouldn't be a global variable; rather, it's a constant. And, you'd reference it like print("This is My Path: ".MY_PATH." or is it?"); See http://www.php.net/manual/en/function.define.php and http://www.php.net/manual/en/language.variables.php -steve -- +--- "They've got a cherry pie there, that'll kill ya" --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-- FBI Special Agent Dale Cooper ---+ -- 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] htaccess
there was a really good .htaccess tutorial posted to the list a while back...anyone remember the address? ~kurth -- 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] Getting image size from gif/jpeg
weberdev.com isn't working...can you email me the text from that page? Thanks - randy PS remove the "-" from my email address In article <[EMAIL PROTECTED] l>, [EMAIL PROTECTED] (Boaz Yahav) wrote: // http://www.weberdev.com/index.php3?GoTo=get_example.php3?coun // t=918 // // Sincerely // // berber // // Visit http://www.weberdev.com Today!!! // To see where PHP might take you tomorrow. // // // -Original Message- // From: r a n d y [mailto:[EMAIL PROTECTED]] // Sent: Monday, February 05, 2001 9:55 PM // To: [EMAIL PROTECTED] // Subject: [PHP] Getting image size from gif/jpeg // // // Is it possible to get the size of an image in PHP4? // // if so, does it require gif/jpeg support built in? // // Thanks // // == // r a n d y // sesser at mac dot com // http://randys.org // // -- // 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] == r a n d y // sesser at mac dot com http://randys.org -- 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] RE: [PHP-WIN] Revised [PHP] COM and PHP
> I tried with FALSE same error. > > I also tried the following word example > > $word = new COM("word.application") or die("Unable to instanciate Word"); > print "Loaded Word, version {$word->Version}\n"; > $word->Visible = 0; > $word->Documents->Add(); > $word->Selection->TypeText("Testing, testing... 1,2,3"); > $word->Documents[1]->SaveAs("Some.doc"); > $word->Quit(); > ?> > > I get the following error > > Loaded Word, version 9.0 > Warning: Invoke() failed: No description available in > c:\Inetpub\wwwroot/temp2.php on line 5 > > Warning: Invoke() failed: Exception occurred. in > c:\Inetpub\wwwroot/temp2.php on line 7 > That means that you don't have the com component installed on your machine correctly... > > > > > I have been trying the following example from the PHP developer's cookbook > > and it keeps giving me the following error. > > > Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5 > > > $excel_handle = new COM("excel.application"); file://line2 > $excel_handle->>Visible = false; file://line3 > > $worksheet = $excel_handle->workbooks->add(); file://line4 > $worksheet->>Cells(1,1)->value = "Name"; file://line5 This should be: $cell = $worksheet->Cells(1, 1); $cell->value = 1; And it should work.. -- 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] RE: [PHP-WIN] Revised [PHP] COM and PHP
I tried with FALSE same error. I also tried the following word example Version}\n"; $word->Visible = 0; $word->Documents->Add(); $word->Selection->TypeText("Testing, testing... 1,2,3"); $word->Documents[1]->SaveAs("Some.doc"); $word->Quit(); ?> I get the following error Loaded Word, version 9.0 Warning: Invoke() failed: No description available in c:\Inetpub\wwwroot/temp2.php on line 5 Warning: Invoke() failed: Exception occurred. in c:\Inetpub\wwwroot/temp2.php on line 7 Ryan -Original Message- From: Andris Jancevskis [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 3:01 PM To: Conover, Ryan Subject: Re: [PHP-WIN] Revised [PHP] COM and PHP Try "FALSE" instead of "false" Andris mailto:[EMAIL PROTECTED] +--- Monday, February 05, 2001, 10:05:24 PM, you wrote: > I have been trying the following example from the PHP developer's cookbook > and it keeps giving me the following error. > Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5 > $excel_handle = new COM("excel.application"); //line2 $excel_handle->>Visible = false; //line3 > $worksheet = $excel_handle->workbooks->add(); //line4 $worksheet->>Cells(1,1)->value = "Name"; //line5 $worksheet->>SaveAs("temp.xls"); //line6 $excel_handle->>quit(); //line7 > //line8 ?>> //line9 > Anyone that has Com and PHP experience help please > Ryan -- 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] Apache Mod_Auth_DB.
Hi, Anyone using PHP with mod_auth_db ? I was using MySQL but when I get 40 hits a sec MySQL is just a bit too much. Even at low hit rates I am running 70 MySQLds. http://www.thewebmasters.net/php/Htpasswd.phtml doesn't use db and http://www.thewebmasters.net/php/AccessDBM.phtml is dbm :) Any thoughts on which db method to use ? Dave. -- 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] Getting image size from gif/jpeg
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=918 Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: r a n d y [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 9:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting image size from gif/jpeg Is it possible to get the size of an image in PHP4? if so, does it require gif/jpeg support built in? Thanks == r a n d y // sesser at mac dot com http://randys.org -- 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]
[PHP] Getting image size from gif/jpeg
Is it possible to get the size of an image in PHP4? if so, does it require gif/jpeg support built in? Thanks == r a n d y // sesser at mac dot com http://randys.org -- 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] PHP hosting - the final frontier.
Just to make things clear, PHP/FI was the basis, not so many people used it in comparison to PHP3/4. PHP3 was designed by more than one developer (actually more like 4-6). -Original Message- From: Robert Covell [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 12:19 AM To: Boaz Yahav; Ben Peter; Chris Mason Cc: Php-General Subject: Re: [PHP] PHP hosting - the final frontier. I understand your concerns, but with this type of logic this mailing list not not be around. Niether would Linux, Apache, MySql or anyother open source tool that so many people utilize today. We would all be on NT instead of Linux and using IIS with ASP instead of PHP. Do think Ramsus when he started out on PHP/FI was thinking I am only one person I shouldn't even try to make it because the big guys are more reliable. Or Linus thought the same thing when he made his first kernel. I really doubt it, and neither did I when I decided to take a chance learn PHP/FI on Linux using Apache about 5 years ago. Look at where they are today and the bazillion people who rely on the tools that one or two people took the time and a chance on developing. Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 - Original Message - From: "Boaz Yahav" <[EMAIL PROTECTED]> To: "'Robert Covell'" <[EMAIL PROTECTED]>; "Boaz Yahav" <[EMAIL PROTECTED]>; "Ben Peter" <[EMAIL PROTECTED]>; "Chris Mason" <[EMAIL PROTECTED]> Cc: "Php-General" <[EMAIL PROTECTED]> Sent: Sunday, February 04, 2001 3:29 PM Subject: RE: [PHP] PHP hosting - the final frontier. > No need to get upset :) just stating MHO (nothing personal). > > In your own words you say : "People have taken a chance with me" > and that's really what they did. Cause you know what happens to > backup plans that don't have backup plans that don't... > > I'm assuming that there may be an audience for this kind of hosting > but personally I wouldn't host my site under such circumstances. > > Prices are so cheep today and you can get so much for so less with > many ISP's that have a department of people running the show. > > As for the Service, well, if you chose a company and don't like the service > you can always go somewhere else. Most companies that I worked with > gave amazing service. > > Today I work with PhenomiNET and the service is simply amazing. > you can look at what they offer here : > > http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm > > This is your one stop shop for hosting. WeberDev.com is hosted there > and I can tell you that their service is amazing. They are fast, reliable > and more than anything, very professional (specially in PHP / MySQL). > > Sincerely > > berber > > Visit http://www.weberdev.com Today!!! > To see where PHP might take you tomorrow. > > > -Original Message- > From: Robert Covell [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 03, 2001 10:40 PM > To: Boaz Yahav; Ben Peter; Chris Mason > Cc: Php-General > Subject: RE: [PHP] PHP hosting - the final frontier. > > > I shouldn't even reply to this... > > Yes I would host with me. > > Have you ever heard of a backup plan. People that would step in if > something happens to me? People that I trust to keep the company going if > it fails. > > With all due respect, how do people host with a company that doesn't give a > rats ass about them or their business. How many big companies redirect your > call, or brush you away when problems occur. I been over backwards for my > clients. Providing better service then many of the bigger companies out > there. That is why people do and will continue to host with me. Like I > said, I plan on hiring people in the near future. Things take time to > evolve. > > I am not saying that my company is for everyone. If you don't like a one > man shop then don't go there. People have taken a chance with me and have > not been disappointed like so many times before. > > Sincerely, > > Robert T. Covell > President / Owner > Rolet Internet Services, LLC > Web: www.rolet.com > Email: [EMAIL PROTECTED] > Phone: 816.210.7145 > Fax: 816.753.1952 > > -Original Message- > From: Boaz Yahav [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 03, 2001 1:38 PM > To: 'Robert Covell'; Ben Peter; Chris Mason > Cc: Php-General > Subject: RE: [PHP] PHP hosting - the final frontier. > > > And if, God forbid, something was to happen to you... > 120 People / Companies would be left with a server > that no one knows the root password too? > > With all due respect, how can someone in his > right mind host with a one man gang company? > > For all I know you can be a hosting genius and > give the best service around but you are still one > man. > > Would you host with you ? :) > > Sincerely > > berber > > Visit http://www.weberdev.com Today!!! > To see where PHP might take you tomorrow. > > > -Original Message- > From: Ro
RE: [PHP] Learning MySQL
Start going over script examples and tutorials on http://www.weberdev.com Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 1:06 AM To: PHP Subject: [PHP] Learning MySQL What would your advice be for learning MySQL with PHP on an Apache server? I know a little Perl and am beginning to learn PHP. I'm more of a designer than a programmer (not enough geek genes). I went through the tutorial at WebMonkey and have it all installed and working, but the tutorial isn't able to go in depth about the basic functions of MySQL. Is this something better learned from a book? Suggestions for books and/or tutorials online would be appreciated. Jeff Oien, WebDesigns http://www.webdesigns1.com/ -- 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]
[PHP] Revised [PHP] COM and PHP
I have been trying the following example from the PHP developer's cookbook and it keeps giving me the following error. Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5 Visible = false; //line3 $worksheet = $excel_handle->workbooks->add(); //line4 $worksheet->Cells(1,1)->value = "Name"; //line5 $worksheet->SaveAs("temp.xls"); //line6 $excel_handle->quit(); //line7 //line8 ?> //line9 Anyone that has Com and PHP experience help please Ryan -- 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] COM and PHP
I have been trying the following example from the PHP developer's cookbook and it keeps giving me the following error. Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 4 Visible = false; //line3 $worksheet->Cells(1,1)->value = "Name"; //line4 $worksheet->SaveAs("temp.xls"); //line5 $excel_handle->quit(); //line6 //line7 ?> //line8 Anyone that has Com and PHP experience help please Ryan -- 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] simple config. question
On Monday 05 February 2001 20:14, Shane McBride wrote: > Unless I am mistaken, I am pretty sure you need to have sometype of > .php extension. Unless you could put a line in the httpd.conf file > like: AddType application/x-httpd-php .html Well, that's exactly the right way :) Perhaps a more "generous" setup would be even better though: AddType application/x-httpd-php .html .htm .php3 .php .phtml -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- 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-CVS] cvs: php4 /ext/pspell CREDITS
vladMon Feb 5 11:18:04 2001 EDT Modified files: /php4/ext/pspellCREDITS Log: Added myself to CREDITS (vlad) Index: php4/ext/pspell/CREDITS diff -u php4/ext/pspell/CREDITS:1.1 php4/ext/pspell/CREDITS:1.2 --- php4/ext/pspell/CREDITS:1.1 Mon Nov 20 02:31:31 2000 +++ php4/ext/pspell/CREDITS Mon Feb 5 11:18:04 2001 @@ -0,0 +1,2 @@ +Pspell +Vlad Krupin -- PHP CVS 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] simple config. question
Unless I am mistaken, I am pretty sure you need to have sometype of .php extension. Unless you could put a line in the httpd.conf file like: AddType application/x-httpd-php .html BUT, I HAVE NEVER DONE THIS SO PLEASE WAIT FOR A MORE EDUCATED ANSWER. - Shane - Original Message - From: "Don" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 2:03 PM Subject: [PHP] simple config. question > Hi, > > I'm a newbie with PHP and have successfully written some simple > scripts. I am using Apache on Redhat Linux 6.2 with PHP 3. > > At the moment, I have to give .php3 extensions ot my web files in order > for PHP to run. If I insert PHP code into an .html file, it does not > execute. > > Is their a way to configure PHP to execute from .html files? > > P.S. As I write this, I don't discount the possibility of this being an > > Apache config. If so, I apologize for posting to this list. > > Thanks, > Don > > > > -- > 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]
[PHP] simple config. question
Hi, I'm a newbie with PHP and have successfully written some simple scripts. I am using Apache on Redhat Linux 6.2 with PHP 3. At the moment, I have to give .php3 extensions ot my web files in order for PHP to run. If I insert PHP code into an .html file, it does not execute. Is their a way to configure PHP to execute from .html files? P.S. As I write this, I don't discount the possibility of this being an Apache config. If so, I apologize for posting to this list. Thanks, Don -- 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] Using a background image with GD
Hello, Does anyone have an example or can someone tell me how to use a background image in GD? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- 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] include files
On Monday 05 February 2001 18:15, David VanHorn wrote: > I know this works, in footer.inc, to pull up nomenu. > > > However, is there a more "generic" way to specify the server root as > the path? I'd rather not expose my directory structure in the PHP code. > I tried various versions of ../ and ../../ without success. Set the include_patz in php.ini and include everything relative to that path -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- 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] XML Parsing with PHP
You know, some of these guys are members of this list. I don't think they make any claims about being the definitive end all be all source for all things PHP but rather are a bunch of folks sharing their PHP experiences/knowledge. I'd say that's pretty generous of them. -Brian > -Original Message- > From: Chris Lee [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 1:19 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] XML Parsing with PHP > > > PHPbulder.com classically has terrible tutorials. I myself am trying to > learn this XML deal. PHPbuilders code, cut and paste is filled with parse > errors. after fiddling Ive got his example to work, but I havent > a clue how? > he posts this stupid two page article, page one is nothing, page two is > nothin plus broken code. He doesn explain what even one of his four > functions are for. completely confused. I hate to ramble, but > phpbuilder is > a terrible site that ruins php for many newbies. > > -- 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-CVS] cvs: php4 /ext/com conversion.c
phanto Mon Feb 5 10:36:53 2001 EDT Modified files: /php4/ext/com conversion.c Log: fixes the problem that php.exe compiled on win2k platform won't run on any other Index: php4/ext/com/conversion.c diff -u php4/ext/com/conversion.c:1.4 php4/ext/com/conversion.c:1.5 --- php4/ext/com/conversion.c:1.4 Wed Jan 31 01:30:12 2001 +++ php4/ext/com/conversion.c Mon Feb 5 10:36:53 2001 @@ -4,17 +4,14 @@ #include "php_COM.h" #include "unknwn.h" -#ifdef CP_THREAD_ACP -#define PHP_UNICODE_CODEPAGE CP_THREAD_ACP -#else +// #define PHP_UNICODE_CODEPAGE CP_THREAD_ACP // for win2k #define PHP_UNICODE_CODEPAGE CP_ACP -#endif // prototypes PHPAPI void php_pval_to_variant(pval *pval_arg, VARIANT *var_arg); PHPAPI void php_pval_to_variant_ex(pval *pval_arg, VARIANT *var_arg, pval *pval_type); -PHPAPI void php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent); +PHPAPI void php_variant_to_pval(VARIANT *var_arg, pval *pval_arg, int persistent); PHPAPI OLECHAR *php_char_to_OLECHAR(char *C_str, uint strlen); PHPAPI char *php_OLECHAR_to_char(OLECHAR *unicode_str, uint *out_length, int persistent); @@ -22,606 +19,606 @@ PHPAPI void php_pval_to_variant(pval *pval_arg, VARIANT *var_arg) { - OLECHAR *unicode_str; + OLECHAR *unicode_str; - switch (pval_arg->type) - { - case IS_NULL: - var_arg->vt = VT_EMPTY; - break; - - case IS_BOOL: - var_arg->vt = VT_BOOL; - var_arg->boolVal = (short)pval_arg->value.lval; - break; - - case IS_OBJECT: - if(!strcmp(pval_arg->value.obj.ce->name, "VARIANT")) - { - int type; - pval **var_handle; - - /* fetch the VARIANT structure */ - zend_hash_index_find(pval_arg->value.obj.properties, 0, (void **) &var_handle); - var_arg->pvarVal = (VARIANT FAR*) zend_list_find((*var_handle)->value.lval, &type); - var_arg->vt = VT_VARIANT|VT_BYREF; - } - else if(!strcmp(pval_arg->value.obj.ce->name, "COM")) - { - pval **idispatch_handle; - IDispatch *i_dispatch; - int type; - - /* fetch the IDispatch interface */ - zend_hash_index_find(pval_arg->value.obj.properties, 0, (void **) &idispatch_handle); - i_dispatch = (IDispatch *)zend_list_find((*idispatch_handle)->value.lval, &type); - if (!i_dispatch || (type != php_COM_get_le_idispatch())) - var_arg->vt = VT_EMPTY; - else - { - var_arg->vt = VT_DISPATCH; - var_arg->pdispVal = i_dispatch; - } - } - else - var_arg->vt = VT_DISPATCH; - break; - - case IS_RESOURCE: - case IS_CONSTANT: - case IS_CONSTANT_ARRAY: - case IS_ARRAY: - var_arg->vt = VT_EMPTY; - break; - - case IS_LONG: - var_arg->vt = VT_I4;/* assuming 32-bit platform */ - var_arg->lVal = pval_arg->value.lval; - break; - - case IS_DOUBLE: - var_arg->vt = VT_R8;/* assuming 64-bit double precision */ - var_arg->dblVal = pval_arg->value.dval; - break; - - case IS_STRING: - var_arg->vt = VT_BSTR; - unicode_str = php_char_to_OLECHAR(pval_arg->value.str.val, pval_arg->value.str.len); - var_arg->bstrVal = SysAllocString(unicode_str); - efree(unicode_str); - } + switch (pval_arg->type) + { + case IS_NULL: + var_arg->vt = VT_EMPTY; + break; + + case IS_BOOL: + var_arg->vt = VT_BOOL; + var_arg->boolVal = (short)pval_arg->value.lval; + break; + + case IS_OBJECT: + if(!strcmp(pval_arg->value.obj.ce->name, "VARIANT")) + { +int type; +pval **var_handle; + +/* fetch the VARIANT structure */ +zend_hash_index_find(pval_arg->value.obj.properties, 0, (void **) +&var_handle); +var_arg->pvarVal = (VARIANT FAR*) +zend_list_find((*var_handle)-
Re: [PHP] array max min
On 05-Feb-2001 Steve Werby wrote: > <[EMAIL PROTECTED]> wrote: >> i thought about that, but i gave up on my first attempt on doing so, > because >> mysql complained about my query, it seems that it doesn't allow to use the >> max() function with a sum() function, an example of the query is: >> >> SELECT month, >>daynr, >>hour, >>sum(numberofusers), >>sum(numberofmails), >>sum(numberofdownloads) >> FROM table >> GOURP BY month, daynr, hour >> WHERE where_clause; >> >> and mysql complaints when i do another column with max(sum(numberofusers)) >:\ > > You just need to add a column max(numberofusers). You've already grouped by > month, day and hour so: > > sum(numberofusers) => total # of users for that month/day/hour/ > max(numberofusers) => max # of users for any record for that month/day/hour > > If you're really trying to get the total # of users for the single > month/day/hour with the most users then you need a second query. If you can > put into sentences exactly what you're trying to do, we can probably help > you a little better. > >> i think i'm doomed with the big loop thing :\ > > Nah, I think you can avoid it. MySQL is your friend. > > -- > Steve Werby > COO > 24-7 Computer Services, LLC > Tel: 804.817.2470 > http://www.247computing.com/ > > > -- > 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] ok, this is the real query: select sum(numberofusers), sum(numberofmails), sum(numberofdownloads), month(data) as month, hour from account, site where site.pid=account.id and site.siteid=10 and hour!='' group by month,hour order by month,hour while($db->next_record()) row[$db->Record[3]][$db->Record[4]]=$db->Record; } then display the table | |month1 |month2 | |hour1 |value |value | |hour2 |value |value | and to distinguish the maximum value and minimum value with somekind of color or bold or something. this is the whole job, i can't seem to find another way beside the loop thing... thanks a lot for the help guys. Rui Barreiros Software Developer WEBSOLUT - Soluções Internet Emailto: [EMAIL PROTECTED] Personal Info: http://websolut.net/people/rui.html As informações contidas neste email são confidenciais e destinam-se apenas à(s) pessoa(s) a quem foi enviado: http://websolut.net/confidencialidade-responsabilidade.html -- 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] XML Parsing with PHP
If you're talking about my article on PHPBuilder Found at: http://www.phpbuilder.com/columns/joe2907.php3 You can feel free to ask me any questions you like in private (I write them because I like supporting a community that has helped me so much) --Joe On Mon, Feb 05, 2001 at 10:19:17AM -0800, Chris Lee wrote: > PHPbulder.com classically has terrible tutorials. I myself am trying to > learn this XML deal. PHPbuilders code, cut and paste is filled with parse > errors. after fiddling Ive got his example to work, but I havent a clue how? > he posts this stupid two page article, page one is nothing, page two is > nothin plus broken code. He doesn explain what even one of his four > functions are for. completely confused. I hate to ramble, but phpbuilder is > a terrible site that ruins php for many newbies. > > > -- > > > > Chris Lee > Mediawaveonline.com > [EMAIL PROTECTED] > > > > "Joe Stump" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > phpbuilder.com - there are a few articles on the site about XML > > > > --Joe > > > > On Sun, Feb 04, 2001 at 05:02:43PM +0100, Steve Haemelinck wrote: > > > Where can I find some info on parsing XML with PHP? > > > I am not looking for functions, but examples and explanations ! > > > > > > Thx > > > > > > > > > -- > > > 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] > > > > -- > > > > -- > - > > Joe Stump, PHP Hacker, > -o) > > http://www.miester.org http://www.care2.com > /\\ > > "It's not enough to succeed. Everyone else must fail" -- Larry Ellison > _\_V > > -- > - > > > > > > -- > > 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] -- --- Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V --- -- 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] GD with TTF
Hello, Does anyone know where PHP looks for the TTF when using GD to make an image? I keep getting an error saying it can't find the font file Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- 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] include files
> -Original Message- > From: David VanHorn [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 1:04 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] include files > > > At 12:50 PM 2/5/01 -0500, Brian V Bonini wrote: > >DOCUMENT_ROOT ??? > >http://php.net/manual/en/language.variables.predefined.php > > Ok, but having read the docs you pointed to (thanks), I still > don't see how > to use it in an include directive. > > I assume that since the vhost is specified to use > "/home/dvh/public_html/" > as the server root, that DOCUMENT_ROOT is equal to > "/home/dvh/public_html/" > when the server is running any script from that vhost. > > But, how do I apply that to the include directive? > > > > -- > Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 > > > -- 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] PHPSESSID location?
Where is the temp session file held at? I have a script that uses sessions but I can't find the session file. My php.ini file indicates that the session.save_path = c:\php\sessiondata but there is not any files there when there should be. It does look like the session is working though. Any ideas? Apache win2k php 4.0.4pl1 - Shane
Re: [PHP] XML Parsing with PHP
PHPbulder.com classically has terrible tutorials. I myself am trying to learn this XML deal. PHPbuilders code, cut and paste is filled with parse errors. after fiddling Ive got his example to work, but I havent a clue how? he posts this stupid two page article, page one is nothing, page two is nothin plus broken code. He doesn explain what even one of his four functions are for. completely confused. I hate to ramble, but phpbuilder is a terrible site that ruins php for many newbies. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] "Joe Stump" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > phpbuilder.com - there are a few articles on the site about XML > > --Joe > > On Sun, Feb 04, 2001 at 05:02:43PM +0100, Steve Haemelinck wrote: > > Where can I find some info on parsing XML with PHP? > > I am not looking for functions, but examples and explanations ! > > > > Thx > > > > > > -- > > 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] > > -- > > -- - > Joe Stump, PHP Hacker, -o) > http://www.miester.org http://www.care2.com /\\ > "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V > -- - > > > -- > 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]
[PHP] Attempt to unsubscribe failed
I have tried to unsubscribe to the list because my server will be down for at least two weeks, however, I am still getting mail. If someone could pass this on to the admin I would appreciate it (and so would they). -- 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-CVS] cvs: php4 /ext/pspell pspell.c
vladMon Feb 5 10:15:32 2001 EDT Modified files: /php4/ext/pspellpspell.c Log: now when pspell/pspell.h is included, it will recognize that it has to work in compatibility mode. (The previous fix had the right idea, but was too far down in the source) Index: php4/ext/pspell/pspell.c diff -u php4/ext/pspell/pspell.c:1.13 php4/ext/pspell/pspell.c:1.14 --- php4/ext/pspell/pspell.c:1.13 Fri Feb 2 10:28:48 2001 +++ php4/ext/pspell/pspell.cMon Feb 5 10:15:31 2001 @@ -16,7 +16,7 @@ +--+ */ -/* $Id: pspell.c,v 1.13 2001/02/02 18:28:48 rasmus Exp $ */ +/* $Id: pspell.c,v 1.14 2001/02/05 18:15:31 vlad Exp $ */ #define IS_EXT_MODULE @@ -28,6 +28,9 @@ #if HAVE_PSPELL +/* this will enforce compatibility in .12 version (broken after .11.2) */ +#define USE_ORIGINAL_MANAGER_FUNCS + #include "php_pspell.h" #include #include "ext/standard/info.h" @@ -37,7 +40,6 @@ #define PSPELL_BAD_SPELLERS 3L #define PSPELL_SPEED_MASK_INTERNAL 3L #define PSPELL_RUN_TOGETHER 8L -#define USE_ORIGINAL_MANAGER_FUNCS 1L function_entry pspell_functions[] = { PHP_FE(pspell_new, NULL) -- PHP CVS 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] Is PHP integrated with LDAP?
Does anyone know if PHP is interated with LDAP, or how can I integrate PHP with LDAP? Thanks and Regards, George -Original Message- From: Alex Akilov [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 11:26 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Java Servlet Support Shawn, The PHP distribution contains various SAPIs (server API's). Examples are CGI, Apache, ISAPI, NSAPI and Servlet. Each of these SAPIs is optimized to host the PHP interpreter in the respective environment. Thus, if you want to run PHP in Apache, you can use the Apache SAPI (also known as mod_php) instead of CGI which will give you much better performance as well as being able to take advantage of the capabilities of that API. The sapi/servlet option is essentially a Java servlet that you add to your Java webserver just like you would any other servlet and it invokes the PHP engine through JNI and reflection (so you could reference Java objects from within your PHP script). This option is much more efficient then just running the ext/java extension (which allows you to access Java objects from PHP by starting up a JVM per session) since the JVM used is already running in the Java webserver and can be managed much better by the latter than anything ext/java can attempt to do. Note that using this SAPI implies that PHP will be running in your Java Webserver instead of on your HTTP webserver (e.g. Apache) which could have implications (hopefully for the better) unless they're both running on the same physical machine. Let me know if you have other questions. Alex -- 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]
[PHP] uploading file
OK, I'm not sure if the file is getting uploaded or not, and it certainly is not getting copied to the permanent directory. Here's what I have: This creates the upload form: This is the action from that form: // Creates the image file with a timestamp $timestamp = time(); $image= $timestamp.$picture_name; if ($PLATFORM == "windows") { $new_path = str_replace('^', '\\', $WINDOWS_PATH); echo $picture; if (is_uploaded_file($picture)) { copy($picture, $new_path); //move_uploaded_file($picture, $new_path); } else { echo "Possible file upload attack: filename '$picture'."; } }
[PHP] XML methods(SAX/expat)
When parsing a CDATA field that's being read in from a file, if the fread() buffer fills up, does it make two calls to the CDATA or does it wait for the closing tag to show up before firing off to the handler? while ($data = fread($fp,1)) // yes, I know you shouldn't use '1', but it's an example { xml_parse($parser, $data,feof($fp)); } ie, should I set a flag if the CDATA's base64 encoded to persist over multiple CDATA events, or does it wait for the closing tag and send all of the data off to the handler as one batch? Some CDATA elements may be multiple megabyte images. (Yes, it's from an outside source that we have no control of.) -Szii -- 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] include files
At 12:50 PM 2/5/01 -0500, Brian V Bonini wrote: >DOCUMENT_ROOT ??? >http://php.net/manual/en/language.variables.predefined.php Ok, but having read the docs you pointed to (thanks), I still don't see how to use it in an include directive. I assume that since the vhost is specified to use "/home/dvh/public_html/" as the server root, that DOCUMENT_ROOT is equal to "/home/dvh/public_html/" when the server is running any script from that vhost. But, how do I apply that to the include directive? -- Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 -- 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] GD font errors
Hello, I am trying to get started with GD and I am gettign an error saying there isn't a font. Warning: Could not find/open font in c:\apache\htdocs\sitemaestro\gd\test.php on line 4 Warning: Could not find/open font in c:\apache\htdocs\sitemaestro\gd\test.php on line 15 Warning: Could not find/open font in c:\apache\htdocs\sitemaestro\gd\test.php on line 16 Warning: ImageGif: No GIF support in this PHP build in c:\apache\htdocs\sitemaestro\gd\test.php on line 17 is the error I am getting can someone please let me know what folder I supposed to have my fonts in? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -- 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] How to reference global variables in strings
If you don't prefix a global variable with $ then how can you interpit a global variable within a string? AS IN: define ("MY_PATH", "/home/me/"); print("This is My Path: MY_PATH or is it?"); -- 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] Why doesn't this work? Please trouble-shoot my script.
> -Original Message- > From: chip [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 11:37 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Why doesn't this work? Please trouble-shoot my > script. > > > I tried your suggestion, as you can see from the script below, but it > still does not work, I get the word 'array' where I should get the > selected options. > > > > > Simrad USA Brochures Request Page > > > > $name; > $value; > while (list($name, $value) = each($HTTP_POST_VARS)) > { >echo "\n"; Since you're dealing with a situation where $value may actually be an array, perhaps you should consider serializing it first? (from http://php.net/serialize) serialize - Generates a storable representation of a value Description string serialize (mixed value) Serialize() returns a string containing a byte-stream representation of value that can be stored anywhere. This is useful for storing or passing PHP values around without losing their type and structure. To make the serialized string into a PHP value again, use unserialize(). Serialize() handles the types integer, double, string, array (multidimensional) and object (object properties will be serialized, but methods are lost). --- Mark Roedel| "A wise man once told me that everything in Systems Programmer | life is either a lesson or a joke. Our task LeTourneau University | is to figure out which is which..." Longview, Texas, USA | -- Chris Savage -- 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-CVS] cvs: php4 / NEWS
andrei Mon Feb 5 09:39:58 2001 EDT Modified files: /php4 NEWS Log: Index: php4/NEWS diff -u php4/NEWS:1.580 php4/NEWS:1.581 --- php4/NEWS:1.580 Sun Feb 4 18:09:08 2001 +++ php4/NEWS Mon Feb 5 09:39:58 2001 @@ -2,6 +2,9 @@ ||| ?? ??? 200?, Version 4.0.5 +- Static methods can now be called via call_user_method_* functions, e.g. + call_user_method('method', 'class'), and also array('class', 'method') + constructs (for array_walk(), for example). (Andrei, Zend Engine) - microtime under windows now returns accurate values (James) - Added PREG_SPLIT_DELIM_CAPTURE flag to preg_split() that allows for Perl-like functionality of capturing parenthesized delimiter expression. (Andrei) -- PHP CVS 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] include files
DOCUMENT_ROOT ??? http://php.net/manual/en/language.variables.predefined.php > -Original Message- > From: David VanHorn [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 12:16 PM > To: [EMAIL PROTECTED] > Subject: [PHP] include files > > > I've got kind of a deep page structure, lots of subdirs. > I'm having trouble with an include directive. > The problem is a footer that I use on all pages, which resides in the base > directory. > > The footer file includes another file, which I use if there is no menu. > footer.inc has menu, and includes footer-nomenu.inc > footer-nomenu.inc may be used alone. > > I know this works, in footer.inc, to pull up nomenu. > > > However, is there a more "generic" way to specify the server root > as the path? > I'd rather not expose my directory structure in the PHP code. > I tried various versions of ../ and ../../ without success. > -- > Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 > > > > -- > 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] Cobalt RaQ
1u is 1u. There's no difference in size between the RaQ and a standard 1u box, like the ones I described in my previous post. -Szii At 05:32 PM 2/5/2001 -, Julian Morcinek wrote: >I'ts also the small footprint (ideal for racking at large ISP's and Data >Centres: the prime market positioning of these boxes) and excellent MTBF's >(they just keep on trucking..) > >You can also install SSH to maintain an encrypted 'telnet' session. > >Julian >- Original Message - >From: "K.M. The" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, February 05, 2001 5:18 PM >Subject: RE: [PHP] Cobalt RaQ > > >> The reason they're so expensive is not the hardware, it's the complete >> webbased administration tool you're paying for. The users these products >are >> targeted at, are those who can't administrate a server through a standard >> SSH/Telnet connection. >> >> Vincent The >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >> Sent: Monday, February 05, 2001 6:12 PM >> To: [EMAIL PROTECTED] >> Subject: [PHP] Cobalt RaQ >> >> >> After hearing about "Coalt RaQ" a number of times on the list, >> I thought I'd cruise over and check them out. >> >> After doing so, I'm of the opinion that I'm missing something. >> >> $1,200 USD for a 300Mhz 1u box? $2,699 for a $450 w/256M RAM? >> $3,599 for a $450 w/512 RAM and a dual 30G HDs? >> >> What am I missing? You can get a dual-P3 800 w/ 256 RAM >> and a single 15G HD in a 1u for $2400 USD. With RAM and >> HDs being so cheap now, Is there something special about >> the RaQs? Software? Support? I just don't see anything to >> warrant the higher pricing. Are they RISC based and use the >> more expensive Sun chips with 2M SRAM? >> >> Thanks... >> >> -Szii >> >> -- >> 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] >> > > >-- >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]
[PHP] saving images from mysql to file
I have a mysql database of images that I would like to save each image to a file on my server. Hw do I read the image from mysql and write it to a file? -- 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]