[PHP] help with crash on make
I'm attempting to compile php 4.2.2 and apache 2.0.39 (both of which I downloaded today) on mandrake 8.1, mainly as part of a process to help me learn more about linux and installing programs. I've followed the generic unix directions on php.net and at these steps >./configure --with-mysql --with-apxs2=/www/bin/apxs followed by >make crashes with errors at the end of the make: -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c php_functions.c php_functions.c:93:27: missing binary operator before '!' make[3]: *** [php_functions.lo] Error 1 make[3]: Leaving directory `/usr/local/php-4.2.2/sapi/apache2filter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/php-4.2.2/sapi/apache2filter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/php-4.2.2/sapi' make: *** [all-recursive] Error 1 Can somebody point out what I need to do to correct this? It doesn't make sense that the code I downloaded from php.net would have a problem since that's a stable release. TIA! -Kirk -- K.B. BABB email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with crash on make
Thanks for replying. Yes, I configured apache with mod_so enabled and the module is there. -Kirk Pushkar Pradhan wrote: > You chose to compile PHP as a DSO this requires apache to have the mod_so > module, you can check this by doing a > httpd -l in your apache's bin directory. >> I'm attempting to compile php 4.2.2 and apache 2.0.39 (both of which I >> downloaded today) on mandrake 8.1, mainly as part of a process to help me >> learn more about linux and installing programs. I've followed the >> generic unix directions on php.net and at these steps >> >> >./configure --with-mysql --with-apxs2=/www/bin/apxs >> >> followed by >> >> >make >> >> crashes with errors at the end of the make: >> >> -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c php_functions.c >> php_functions.c:93:27: missing binary operator before '!' >> make[3]: *** [php_functions.lo] Error 1 >> make[3]: Leaving directory `/usr/local/php-4.2.2/sapi/apache2filter' >> make[2]: *** [all-recursive] Error 1 >> make[2]: Leaving directory `/usr/local/php-4.2.2/sapi/apache2filter' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory `/usr/local/php-4.2.2/sapi' >> make: *** [all-recursive] Error 1 >> >> Can somebody point out what I need to do to correct this? It doesn't >> make sense that the code I downloaded from php.net would have a problem >> since that's a stable release. >> >> TIA! >> >> -Kirk >> >> -- >> K.B. BABB >> email: [EMAIL PROTECTED] >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > -Pushkar S. Pradhan -- K.B. BABB email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] still need help with crash on make
Could somebody help me with this?.I posted yesterday with only one reply...please read the following and let me know where I'm going wrong. THANKS!!! -Kirk BEGIN MESSAGE > > Yes, I configured apache with mod_so enabled and the > module is there. Still crashes on make. > >-Kirk You chose to compile PHP as a DSO this requires apache to have the mod_so module, you can check this by doing a httpd -l in your apache's bin directory. > I'm attempting to compile php 4.2.2 and apache 2.0.39 (both of which I > downloaded today) on mandrake 8.1. I've followed the generic > unix directions on php.net and at these steps > > $root> ./configure --with-mysql --with-apxs2=/www/bin/apxs > > followed by > > $root> make > > the process crashes with errors at the end of the make: > > -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c php_functions.c > php_functions.c:93:27: missing binary operator before '!' > make[3]: *** [php_functions.lo] Error 1 > make[3]: Leaving directory `/usr/local/php-4.2.2/sapi/apache2filter' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/usr/local/php-4.2.2/sapi/apache2filter' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/php-4.2.2/sapi' > make: *** [all-recursive] Error 1 > > Can somebody point out what I need to do to correct this? It doesn't make > sense that the code I downloaded from php.net would have a problem since > that's a stable release. > > TIA! > > -Kirk > > -- > K.B. BABB > email: [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -Pushkar S. Pradhan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] still need help with crash on make
Thanks, Tyler, I will if I have to, but is there someone out there who has done this on Linux? cheers Kirk "Tyler Longren" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Use apache 1.3.26 and it'll work. Just change the configure line: > ./configure --with-mysql --with-apxs=/path/to/apxs > > Apache 2 is troublesome. > > tyler > > On Wed, 31 Jul 2002 17:27:30 -0500 > "Kirk Babb" <[EMAIL PROTECTED]> wrote: > > > Could somebody help me with this?.I posted yesterday with only one > > reply...please read the following and let me know where I'm going > > wrong. THANKS!!! > > > > -Kirk > > > > BEGIN MESSAGE > > > > > > > > Yes, I configured apache with mod_so enabled and the > > > module is there. Still crashes on make. > > > > > >-Kirk > > > > You chose to compile PHP as a DSO this requires apache to have the > > mod_so module, you can check this by doing a > > httpd -l in your apache's bin directory. > > > I'm attempting to compile php 4.2.2 and apache 2.0.39 (both of which > > > I downloaded today) on mandrake 8.1. I've followed the generic > > > unix directions on php.net and at these steps > > > > > > $root> ./configure --with-mysql --with-apxs2=/www/bin/apxs > > > > > > followed by > > > > > > $root> make > > > > > > the process crashes with errors at the end of the make: > > > > > > -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c php_functions.c > > > php_functions.c:93:27: missing binary operator before '!' > > > make[3]: *** [php_functions.lo] Error 1 > > > make[3]: Leaving directory `/usr/local/php-4.2.2/sapi/apache2filter' > > > make[2]: *** [all-recursive] Error 1 > > > make[2]: Leaving directory `/usr/local/php-4.2.2/sapi/apache2filter' > > > make[1]: *** [all-recursive] Error 1 > > > make[1]: Leaving directory `/usr/local/php-4.2.2/sapi' > > > make: *** [all-recursive] Error 1 > > > > > > Can somebody point out what I need to do to correct this? It > > > doesn't make sense that the code I downloaded from php.net would > > > have a problem since that's a stable release. > > > > > > TIA! > > > > > > -Kirk > > > > > > -- > > > K.B. BABB > > > email: [EMAIL PROTECTED] > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -Pushkar S. Pradhan > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: starting Apache
I also received an error regarding libphp4.so when I tried to compile php 4.2.2 with apache 2.0.39 on Mandrake 8.1. Have not resolved it, even after asking several days ago on this site. Nobody responded. Have double checked my ./configure and everything looks good, it is when I execute the "make" command that it bombs out. Has somebody done this successfully? Yes, I've set the configure to enable modules. Kirk "Nick Niehoff" wrote > I finally got php 4.2.2 installed with Apache 2.0.39 > on RedHat 7.2. However when I restart the httpd > service, I get the following error: > > Starting httpd: Syntax error on line 230 of > /www/conf/httpd.conf: > Cannot load /www/modules/libphp4.so into server: > /www/modules/libphp4.so: undefined symbol: > ts_resource_ex > > Can Anyone Help? > Nick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail function question
I'm using argosoft's mailserver with SMTP authentication, and would like to know how to pass the usr & pwd inside php's mail() function. Please help me out here, I've RT*M without gaining an understanding of this. TIA, Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail function question
Thanks - I'm heading there now. I appreciate the help. -Kirk "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > On 07/07/2002 07:49 PM, Kirk Babb wrote: > > I'm using argosoft's mailserver with SMTP authentication, and would like to > > know how to pass the usr & pwd inside php's mail() function. Please help me > > out here, I've RT*M without gaining an understanding of this. > > No, mail() function does not have any support for authentication. > > You may want to try to use this SMTP client message sending class that > supports most common forms of SMTP authentication automatically. > > http://www.phpclasses.org/smtpclass > > > -- > > Regards, > Manuel Lemos > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] returning a variable from a class function? plus other probs
I'm new at OO and still a newbie at PHP despite hacking away at it for a while (admittedly off and on). I'm creating a signup form for alumni of our department, and I'm trying to verify that they have not signed up previously before allowing their data to be inserted. Trouble has ensued! :) In the following code: class alumnus { function addAlum($fname,$lname,$tel,$address,$city,$state,$zipcode,$country,$email) { $conxn = mysql_connect('localhost','root','redtail.7') or fail("Could not connect: ".mysql_error()); $dbSelect = mysql_select_db("alumni", $conxn) or fail("Could not select database: ".mysql_error()); $chk = "Select id, fname from contact_info where email =" . $email; $result = mysql_query($chk); $dataSet = mysql_fetch_array($result); $fields = mysql_num_fields($dataSet); if ($fields=="0") { $insertData = "INSERT into contact_info (fname,lname,tel,address,city,state,zipcode,country,email) VALUES ('$fname','$lname','$tel','$address','$city','$state','$zipcode','$country', '$email')"; $query = mysql_query($insertData); if ($query) { $bool="true"; return $bool; } } } I keep getting "supplied argument is not a valid MySQL result resource" for the lines using mysql_fetch_array and mysql_num_fields - I've looked up the functions but it doesn't seem like I'm misusing them. PLUS my $bool doesn't show up outside like I'd like it to. Can somebody guide me on the right path here? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] returning a variable from a class function? plus otherprobs
Dan, Thanks so much for the help - I learned a lot from your reply. I'll chew on this a while and go from there. BTW- yes, that really was my user and pwd up until now! Dumb now I realize, thanks for pointing that out. I've created a new root pwd, and created a user with access only to the "alumni" db. Thanks again. -Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] returning a variable from a class function? plusotherprobs
The user I created can only INSERT, SELECT, DELETE, UPDATE using the GRANT option from the mysql cmd line. I'll have to start checking my data per yours and Curt's responses. Sounds like I should remove the DELETE option from that user and create a second user with DELETE permission. -Kirk "Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > up until now! Dumb now I realize, thanks for pointing that out. I've > > created a new root pwd, and created a user with access only to the "alumni" > > If you want to be super secure you should create several users. Once > for SELECTing, one for INSERTing, etc. Juggling resource handles gets > tricky though. But basically the idea is this: > > If a user or viewer of your site can figure out what you're using to > select from / whatever in the database, they may try passing a query > into the database. For instance, if you were using a form for email, a > user might type in the following > > Email: > "; DROP TABLE *; > > You'd basically lose your database (and any other databases if you're > using your root account!). So you should check all input from the user > so that all "s are escaped and all 's are escaped, etc. Also, limiting > permissions helps. For instance, if one user is used for SELECTs then a > hacker could not drop a database. Same goes with other things. > > Just some things to think about. There are many many more things you > should be doing, but they're too extensive to list here. > > -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] functions using other functions inside of classes?
If I have a class with several functions, and one of the functions is used by the other functions in the class, how do I get to it? In particular I'd like the dbConnect, fail and success functions to be seen by the other functions in the class. I guess I just don't understand the way to use OO yet. Also, any comments on improving the logic to make sure I don't get duplicate entries would be much appreciated (I'm auto_incrementing a field named 'id' upon insert). here's the code: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: functions using other functions inside of classes?
I'm reading up on OO and PHP, so I'll retract the previous question until I can ask something better. Just ignore it. Thanks, Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] general OO php question
If I have a class called Registration, should I code in the mysql_connect inside each function inside the class that needs it, or should I make a function called dbConnect? If so, how can I correctly call dbConnect inside the other functions of the class? would it be something like this? Or am I not thinking "OO-ishly" - add "f" and "l" and it might be right ;) class Registration { function dbConnect() { mysql_connect(host,usr,pwd); } function register($usr, $email, $pwd) { dbConnect(); other code to handle the insertion of data } } TIA -Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: (native) linux-php-editor with some advanced features?
As a amateur PHP user, I have really enjoyed Komodo 2.5 (been using it since 1.3). Buy the non-commercial license, it's cheap (I think I paid $24.95) and ActiveState backs up their products well. Not a plug for them, but my experience with them has been good. Plus, if you want to switch back and forth from Windows to Linux, the license still applies (I have a dual-boot machine), and the functionality is the same. HTH -Kirk "Thomas Seifert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey folks, > > I know this topic comes up again and again but I couldn't find > any usefull php-editor for linux which is NOT written in java AND > has some advanced features like a "file navigation" (listing all functions > in a file with direct jump to them) or tooltips with the function definition > or similar. > > I liked the features of the Zend IDE but its just to aching slow on linux > (don't know why, but its much faster on windows), while other native editors > are not made for php or just contain its syntax-highlightning without any further > special features. > Did I miss one of the available editors which provides these features? > > Thanks, > > Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP $_SESSION Expiring in IE
Have you tried the header(Cache-control: private) workaround for IE6? I seem to remember reading something about that on one of the web dev sites (devshed probably). Use that immediately after session_start() and see if it makes a difference. Kirk "Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Are there any points in the program that redirect the user off site and > back or something with that affect that IE might be handling in a weird > way?" > > Nope > > "Do you have pages that detect the browser and feed alternate content > based on the browser?" > > Nope > > "do you always run the session_start before these checks?" > > Yes. > > The only other thing I guess it could be is the .htaccess mod_rewrite > maybe? It's just weird that Internet Explorer is the only browser that > seemingly looses the members $_SESSION where as Mozilla is not effected > whatsoever. > > In Fellowship, > Tarrant > > -Original Message- > From: Larry Brown [mailto:[EMAIL PROTECTED] > Sent: 03 January 2004 16:34 > To: Tarrant Costelloe; PHP List > Subject: RE: [PHP] PHP $_SESSION Expiring in IE > > > I use sessions with IE all the time without such a problem. Are there > any points in the program that redirect the user off site and back or > something with that affect that IE might be handling in a wierd way? Do > you have pages that detect the browser and feed alternate content based > on the browser? If so do you always run the session_start before these > checks? > > -Original Message- > From: Tarrant Costelloe [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 03, 2004 10:27 AM > To: [EMAIL PROTECTED] > Subject: [PHP] PHP $_SESSION Expiring in IE > > > Hello, > > I have recently launched the new Planet-Tolkien.com, one would think > that writing a message board from scratch and a dynamic weather system, > a simple session login would be the least of my problems right? Wrong. > > It would appear that for Mozilla and Opera keep a $_SESSION is not an > issue and the $_SESSION is continued until the member logs out. However > when members are using Internet Explorer browser (most versions it > seems), they can go around the site for varied amounts of time, usually > less than five minutes and then their $_SESSION will expire!!?? > > I cannot for the life of me figure out why a server side $_SESSION would > expire on IE but not for MOZ or Opera but it is, and I need to figure > out why and how can I fix this. > > REF. All login information is saved as such: > > session_save_path("$path/sessions"); > session_start(); $_SESSION['session_memberID']=$session_memberID; > $_SESSION['session_username']=$session_username; > $_SESSION['session_groupID']=$membergroup; > > In Fellowship, > Tarrant > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP $_SESSION Expiring in IE
Guess I'm being nosy here, so forgive me, but why are you settting an alternate save path and using ini_set at the start of each document? I know that has nothing to do with the problem, but I was just wondering. Are you hosting multiple sites off your server and have different session settings depending on the site? -Kirk > session_save_path("$some_path/sessions"); > ini_set('session.use_cookies', 1); > ini_set('session.gc_probability', 1); > ini_set('session.gc_maxlifetime', 60 * 60); > ini_set('session.auto_start', '1'); > session_start(); > header("Cache-control: private"); > > Here is a link to my PHP configuration: > http://www.planet-tolkien.com/test.php > > In Fellowship, > Tarrant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multi-table select?
I'm looking for a good way to do the following: I have two tables, one named teams and one named divisions. Divisions relates divisionID to the name of the division (division_name). In teams I have the divisionID stored along with the team_name. [BG info: teams can be relegated or promoted so it's easier for me to store the divID in the teams table] I'd like to populate a drop down menu with the team_name and division_name and was wondering if I can do some kind of select statement that will get all the info at once with the following details on the two tables: mysql> select * from teams; ++---+-++--++-+--+-+---+---+ | teamID | team_name | coachID | divisionID | paid | pmnt_notes | win | loss | tie | goals_for | goals_against | ++---+-++--++-+--+-+---+---+ | 1 | Metro | 0 | 1 | n| NULL | 0 |0 | 0 | 0 | 0 | ++---+-++--++-+--+-+---+---+ 1 row in set (0.00 sec) mysql> select * from divisions; ++--+ | divisionID | division_name| ++--+ | 1 | Premier | | 2 | Classic | | 3 | Recreational 7v7 | ++--+ 3 rows in set (0.00 sec) Thanks in advance! Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IIS and PHP 4.2 on NT 4.0
http://php.us.themoes.org/manual/en/install.iis.php Skip down the page to IIS with WinNT, double check what you've done so far. HTH, Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] can someone help?
First, here's my code: "; ?> Works great on the first line, but I'm stuck on printing the remaining part of the array using some sort of loop. I've tried a few things but get endless loops. In the end I'd like to make this a function and just give it the string and the container length as arguments.can someone give me some advice? THANKS! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] code with comments is here
I have a feeling I am making this much harder than it really is! I'm a new programmer, and I am trying to output "x" number of characters per line without splitting up the words in the string. I want to approach as best as possible a certain number of characters per line, let's say 80 characters, and then cycle through the remaining parts of the array to reconstruct the string in the same manner. here is the code with comments: "; ?> Like I mentioned above, this may be a case of making something much harder than it really is. I'm still stuck on printing the remaining parts of the array, and I'd really like to make this a function and just give it the string and the container length as arguments.can someone give me some advice? Or just tell me I'm stupid? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] right place to start a session?
Here's my code:
[PHP] Re: right place to start a session?
Thanks Miguel and Nathan for your help! If I can make this more secure I would definitely like to do so. Suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] register_globals=Off Question
How do I use $PHP_SELF with register_globals off? I looked up the documentation on php.net but haven't gotten this line of code to work: I get this error instead: [28-Apr-2002 16:33:31] PHP Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in - on line 140 what am I doing wrong? thanks, Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] _SERVER variable insd prnt sttmnt
Hi All, Thanks alot for all your help with the _SERVER['PHP_SELF'] earlier, I have another question related to that: What is the correct syntax for the above if I want to use it in a print statement like so (I included the whole piece of code so you guys could at least see what I'm trying to do): $string="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $chars = preg_split('//', $string, -1, PREG_SPLIT_NO_EMPTY); for ($cnt=0; $cnt < 26; $cnt++) { //commented out the next line since I couldn't get it to work //print "" . $chars[$cnt] . ""; print "" . $chars[$cnt] . ""; } Now that I'm learning a bit about running with register_globals = Off I will try to implement it everywhere I can! -Kirk side msg: big thanx to Nathan for the short tutorial on globals and security -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Question for you guys on best tools for a job
Michael, Flash is a great way to do this. I have two years in Flash but am new to PHP/MySQL - one of the things you will appreciate is the ease of using actionscript on the flash side to communicate with your PHP script. And I know not everybody will like this part, but you can put all the cool bells and whistles on using Flash! I say go for it. A very simple introduction, yet one that contains the basics on everything you would want to do for your project (since the PHP script would be handling the load) is titled"Foundation PHP for Flash" - check it out. If you're concerned about updating variables into a dynamic text field, Flash operates on whatever frame rate you assign it, and if you want to refresh your variables you simply loop the movie around the frame containing the requesting actionscript. If you have any Flash-related questions feel free to contact me. -Kirk "Michael Champagne" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Too hokey. We're talking about maybe 60 values on the page that will be > changing and it should look real time. I think Flash might be a potential > solution, I'm just not too familiar with it. Having the page refresh > occasionally is out of the question for how many things will be changing on > the client end. > > Mike > > > Why don't you use javascript to refresh the page from time to time. > > > > Michael Champagne wrote: > > > I'm not even sure this is possible without doing a client side java applet of > > > some sort. > > > > > > We are considering porting a standard client/server application to the web > > > which updates itself dynamically in real time based on values in a database. > > > > > > For instance, a field on the screen will change in real time between > > > 'Pending', 'Working', 'Cancelled', etc. etc. based on a flag in the database. > > > What would be the best tools for the job for an application of this sort? > > > I've used PHP extensively and don't really see how it could be used in this > > > case. Any ideas? > > > > > > Thanks in advance for any responses. > > > > > > > > > > > > > -- > Michael Champagne, Software Engineer > Capital Institutional Services, Inc. > wk: [EMAIL PROTECTED] > hm: [EMAIL PROTECTED] > > > > ** > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of > any financial instrument or as an official confirmation of any > transaction, unless specifically agreed otherwise. All market > prices, data and other information are not warranted as to > completeness or accuracy and are subject to change without > notice. Any comments or statements made herein do not > necessarily reflect the views or opinions of Capital Institutional > Services, Inc. Capital Institutional Services, Inc. accepts no > liability for any errors or omissions arising as a result of > transmission. Use of this communication by other than intended > recipients is prohibited. > ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.2.0 + Apache 2.0.35 (W2KSP2)
I have copied these three lines from the php install.txt file into httpd.conf: LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php and php4ts.dll is in winnt\system32. Apache freezes unless I comment out those lines. When I test php scripts from the command prompt inside the php dir. (C:\php) I see the correct output, so I know php is working (as is my install of php-gtk). Where have I "strayed from the path"? this worked for my install of Apache 1.3.24 and PHP 4.1.2, so I'm not sure what's going on. thanks for any and all help, Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] convert access to JAVA PHP mysql Xml Soap
Well said John, this isn't a place for that, and the "company guy" showed his colors pretty quick. Anyway, on to business! and a general php question: if I make a function (or several functions for that matter) is it better to place those in a separate script and include them, or just keep them where they are? I have an alumni registration script I've written (probably poorly - but it works!) which ends up being almost 350 lines when you take out the spaces. Now I know that's not big, but I have a hard time debugging it when I try to make improvements (the globals off thing), mainly because I'm not use to looking at anything that size. Any suggestions? Thanks, -Kirk "John Holmes" <[EMAIL PROTECTED]> wrote in message 000201c1f127$18b57bd0$b402a8c0@mango">news:000201c1f127$18b57bd0$b402a8c0@mango... > Gee, why didn't you copy all of the lists on your wonderful reply to my > message? I'm not trying to "cock up life", whatever that is. I'm just > trying to stop people like you from wasting everyone's time. Don't send > messages to a PHP list about an ASP programmer or learn how to write a > decent job description that accurately describes what you're looking > for. I'm sure other people agree with me. I should Cc: your message and > response to all of the PHP lists you spammed to so everyone can know > what kind of "company" you are running. > > v/r > > John Holmes > > > -Original Message- > > From: Jacky Kenna [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 01, 2002 5:17 AM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap > > > > Wonderful that you have the time to reply. Must be sitting on your > arse > > doing fuck all. At least we are doing something. Why do we all have to > put > > up with slobs like you who only have time to cock up life. Surely you > > should be out marching it's May day. > > > > -Original Message- > > From: John Holmes [mailto:[EMAIL PROTECTED]] > > Sent: 01 May 2002 16:12 > > To: [EMAIL PROTECTED]; 'Jacky Kenna' > > Cc: [EMAIL PROTECTED] > > Subject: RE: [PHP] convert access to JAVA PHP mysql Xml Soap > > > > > > I don't know what kind of company you run, but I consider this SPAM. > You > > sent this crap out to a bunch of PHP lists and you're looking for an > ASP > > programmer. Who cares if there are people on here that know ASP, > that's > > not why they are on this list. If they are looking for ASP jobs, > they'll > > subscribe to an ASP list. I wouldn't have anything to do with a > company > > that does this. Keep you SPAM to yourself next time and stop wasting > my > > time. > > > > v/r > > > > John Holmes > > > > > -Original Message- > > > From: Jacky Kenna [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, May 01, 2002 4:17 AM > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php- > > > [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; > > php- > > > [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-gtk- > > > [EMAIL PROTECTED]; [EMAIL PROTECTED]; > > [EMAIL PROTECTED]; > > > [EMAIL PROTECTED]; [EMAIL PROTECTED]; php- > > > [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > > > Subject: [PHP] convert access to JAVA PHP mysql Xml Soap > > > > > > > > > Hi We are a publishing company based in London. We have developed a > > > multi-user > > > MS Access contact management and bookkeeping database system which > we > > want > > > to adapt / re-write such that it can be used over the web ( ASP) > using > > > Internet > > > Explorer (or similar) from any location, as our clients would like > to > > use > > > it. > > > > > > We are therefore looking for someone to develope or who will head a > > team > > > of > > > developers and > > > co-ordinate this project. If you are interested in working with us > on > > > this, > > > please e-mail [EMAIL PROTECTED] with a brief outline of your > > > knowledge > > > and experience of programming languages and I will get back to you > as > > soon > > > as possible. > > > > > > Jacky Kenna > > > Managing Director, PDA > > > 0207 384 1985 > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE:[PHP-GTK Question]
This has been a hot topic on the PHP-GTK discussion list. Click here [EMAIL PROTECTED] just send it blank, wait for the confirmation. You will find that a much better place to post this type of question. You can also request the archives for all that you've missed. Good Luck -see you there (I'm doing php-gtk on W2K) -Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How do I Install PHP on Apache 2, on win32
I have been told to point your line for php in httpd.conf to apache2filter.dll in the experimental folder (PHP 4.2.0) but haven't been able to get that to work. -Kirk "Philip Newman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > How do I Install PHP on Apache 2, on win32? > > I would like to install the ISAPI module? > > Thanks > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Postnuke Anyone ?
How about some code? "Ricardo Fitzgerald" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I've been unsuccesfully trying to add a php script to a postnuke menu. > What I did is a simple form, that connects to a mysql database, and > inserts data, then some data is retrieved to generate a page with > "Welcome $name $lastname ... and so on" > The problem is the script must be in the center and must include the > header, the footer and the left block, I don't understand many things > from the way postnuke works, and I couldn't display any variable > entered in the form, neither insert data into the db ... > I've tried with action="some.php" and action=; > so far I only got parsing errors. > > Any ideas ? > > Regards, > > Rick > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Postnuke Anyone ?
Ricardo, I have noticed several things from just a quick look at your code: 1. If your not able to post any data/receive any variables from your form when the submit button is clicked, you could have register_globals set to Off. Here is a example form used for that situation: '> Please note that I used $_SERVER instead of PHP_SELF alone, and note the use of the single quotes. This is done when register_globals is turned off, which I have learned is the best way to write your scripts (thanks to the other guys & gals on this discussion board). 2. Using if (isset($submit)) { stuff..} is another thing i've been taught to do, rather than if($submit). 3. You haven't given a variable name to your submit button: give the submit button a name="submit" and you will actually have a variable which your script can pick up. Otherwise nothing will happen. HTH, -Kirk "Ricardo Fitzgerald" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I've been unsuccesfully trying to add a php script to a postnuke menu. > What I did is a simple form, that connects to a mysql database, and > inserts data, then some data is retrieved to generate a page with > "Welcome $name $lastname ... and so on" > The problem is the script must be in the center and must include the > header, the footer and the left block, I don't understand many things > from the way postnuke works, and I couldn't display any variable > entered in the form, neither insert data into the db ... > I've tried with action="some.php" and action=; > so far I only got parsing errors. > > Any ideas ? > > Regards, > > Rick > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Very Large MySQL Query String
If I use the link to the file, i.e. file//C:\filedir\file.pdf or .txt or whatever how do I insert/update/delete the file since MySQL is holding only the link? BTW David, what are the properties of the field you are inserting to? Could that be the problem? -Kirk "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Instead of uploading to Mysql, why don't you store the file at a directory > and on Mysql only the path to it? > > Retrieving files from the hard drive is much faster than doing the same on > Mysql, and also access to manipulation (insert, update, delete, etc...) > > -- > > Julio Nobrega. > > Um dia eu chego lá: > http://sourceforge.net/projects/toca > > Ajudei? Salvei? Que tal um presentinho? > http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 > > > "David Bouw" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I can't seem to figure out the following. > > > > I use the http upload functions a lot, works great!!.. > > For some months now I have been using a small PHP program > > which I use to upload PDF files of scanned documents and > > insert them into a Mysql table.. > > > > Normally these files are small (<250 kb), but I now have a > > PDF of 1 MB... When uploading files I run the > > function: chunk_split(base64_encode($binaryfile)); > > to encode it, this to transform the binary file to text.. (Works great!!!) > > > > When the query was called to insert the data, nothing happens, > > also no error from mysql... Only think I can think of is that the mysql > > query string is to long.. ?? (The data when encoded is about 1.3 MB of > > text).. > > > > This is the source code.. > > > > if (!($userfile_size == 0)) > >{$fd = fopen ($userfile, "r"); > > $contents = fread ($fd, filesize ($userfile)); > > fclose ($fd); > > unlink ($userfile); > > echo "Eerste RAW: ".strlen($contents); > > $encodes_data = chunk_split(base64_encode($contents)); > > $userfile_name = str_replace(" ", "", "$userfile_name"); > > echo strlen($encodes_data)." - Displays text size "; //Works > right! > > mysql ($databasename_boekhoud, "insert mubo_boekhoud_images (data, > > originalname, groep, type) > > values '$encodes_data', '$userfile_name', '$groep', '$userfile_type')"); > // > > mysql_error(); //No error given..? > > } > > > > Any suggestions are very much appreciated... > > > > With kind regards, > > David Bouw > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to stop site flipping?
I have a listing of department alumni which calls up their email address when one of the form buttons (letters of the alphabet) is clicked. The emails are not hard-coded; the form sends the $letter to a php script which handles all the usual stuff (the query, getting the array for the query, printing/formatting it). Is this type of thing accessible to spiders? They can't actually perform actions on the pages can they? Sorry if this is a stupid question, I've been reading along with this discussion. From reading what's been said so far, I'm guessing the only email they can get to is the webmaster address on the front page of the site Thanks! Kirk "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This might help: > > I have a php file in my doc root called email.php. Instead of linking an > email address with mailto:[EMAIL PROTECTED]";>, I link it like this: > > Justin French > > (Actually I do it with a function, but for clarity sake, I'll leave the > above in place). > > email.php isn't a HTML page, it's a small script which sends a mailto: > header to the browser: > > > if(!isset($_GET['to'])) > { > $_GET['to'] = "info"; > } > > if(!isset($domain)) > { > $_GET['domain'] = "mydomain.com.au"; > } > > $to = $_GET['to']; > $domain = $_GET['domain']; > > $email_address = $to."@".$domain; > > // send email header to page > header ("Location: mailto:$email_address";); > > ?> > > As you can see, there are defaults in there, so if they link to > email.php?to=justin, the default domain will be used, and vice-versa for a > missing "to", or both missing. > > I tested it in a few browsers, and the original page was not refreshed... an > email window popped up in outlook express, just as it would with a regular > mailto: link, and everything works fine. > > > This prevents spiders hunting for mailto:something in your pages. Other > spiders might look for anything that looks like an email address, so I'd > recommend not having regular email address' anywhere: > > Justin French > > instead of > > [EMAIL PROTECTED] > > > I've seen some simular stuff where the users put in something like a space > around the @ to make it harder for the spiders to find the text too, but I > dunno if this is that reliable: > > justin @ > indent.com.au > > > Of course the other option is to strip every email address from your site, > and put in a "contact us" form. > > > Justin French > > > > > > on 14/05/02 12:07 PM, David McInnis ([EMAIL PROTECTED]) wrote: > > > I have been running a newswire service since 97 and recently noticed an > > increase in the number of people flipping our site to harvest email > > addresses contained in the news releases posted on our site. (prweb.com) > > > > I am running apache and php on a linux box. Can anyone suggest > > something that I can implement that would block users who are harvesting > > data from our site? I do not mind legit users from using this data, but > > the flippers are chewing up my bandwidth and db resources. > > > > I also want to be careful to not block valid search engine spiders from > > indexing our site. > > > > David McInnis > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $PHP_SELF
SysInfo: Apache/1.3.24 (Win32) PHP/4.1.3-dev I have a question that could be Apache, could be php, but I'm so new to this I have to ask: what is wrong with my code for the form action? Apache does not recognize the " METHOD=POST> SSN: First Name: Last Name: Employer: Comments: Unable to connect to the database server at this time." ); exit(); } // Select the Alumni db if(! @mysql_select_db("Alumni") ) { echo( "Unable to locate the Alumni db at this time." ); exit(); } // If an alumni information record has been submitted if ("SUBMIT" == $submitalumni) { $sql = "INSERT INTO Alumni SET " . "SSN='$ssn', " . "FIRST_NAME='$firstname', " . "LAST_NAME='$lastname', " . "EMPLOYER='$employer', " . "COMMENTS='$comments' "; if (mysql_query($sql)) { echo( "Your alumni information has been added."); } else { echo( "Error adding submitted alumni information: " . mysql_error() . ""); } } echo(" Here are all the Alumni in our database: "); // Request all alumni entries $result=mysql_query( "SELECT * from alumni"); if (!$result) { echo( "Error performing query: " . mysql_error() . ""); exit(); } // display alumni info in paragraph form while ( $row = mysql_fetch_array($result) ) { echo( "" . $row["SSN"] . ""); } ?> THANKS for your help! - Kirk