Message from David Most recent post: 10/25/2007 5 authors and 8 replies. I have php and mysql both working seperately but not together <?php phpinfo(); ?> - Shows everything working fine but no mention of Mysql in it. Mysql is setup and working properly. Users and databases all connect fine All my PHP scripts which have mysql connection info just show as a blank page. No error messages. Any ideas?!. 'd appreciate any input, its driving my crazy. read more about PHP cannot see MySQL!!!!!!!!
Message from David Basford Most recent post: 10/24/2007 4 authors and 5 replies. if I search for $_SESSION['thing'] is it specific to my site? can another person make a site, set up a session and set 'thing' and then come to my site with it set? As you see I'm new and sessions seem great but I want to know if this or other things are a drawback Any help guys? read more about Sessions 102
Message from John Doe Most recent post: 10/23/2007 2 authors and 2 replies. Here's my issue: I have an instant messenger type feature for my site, its basically an ajax IM feature. I run with a mysql backend on the site, I have a div on my main page that runs a JAVAscript timer to load the php page via ajax every 15 seconds which checks the "pinguser" table to see if the user has any chat requests, then echoes them to a div on the page. what I REALLY want to do is have the ajax page see if there is a ping for the user, and if so, pop up a JAVAscript alert or somethign to let the user know he has a chat request. I tried just echo'ing the JAVAscript to do an alert(); , or even a window.open. It works if I just run the script by itself, but when it runs in the div on my main page, I get the rest of the feedback (it displays the message I echo'ed that said "youve got mail", but the alert box doesnt pop up. Anyone have any idea what Im doing wrong? I have been googling for 3 days straight and going crazy, never thought to check the groups before. read more about trying to write instant messenger in php/ajax
Message from Peter Most recent post: 10/23/2007 2 authors and 2 replies. Hi I have a directory of pdf files 13344.pdf 21488.pdf etc Users want to search for a particular pdf file and have that displayed to them. ie user searches for: 13344Is it possible for a PHP script on its own to search a folder based on file name and retrieve the pdf file or will I need to add the files name to a mysql table for php to lookup? TIA for any advice/opinion anyone can give read more about PHP Filename Search - Possible?
Message from artev Most recent post: 10/21/2007 5 authors and 5 replies. example that I want to do: if I have this 3 files MYSITE.com/index.php MYSITE.com/one.php MYSITE.com/two.php I want that file two.php and file three.php are not never accesible by url; I think that is necessary some row in htaccess; not sure if is this solution; or is necessary change file's CHMD ? ------------------------------------------------------------------------------------------------ other similar MYSITE.com/index.php MYSITE.com/A/B/one.php MYSITE.com/A/C/X/other.php is possible write in htaccess a code that if one write MYSITE.com/A/B/one.php or MYSITE.com/A/C/X/other.php is redirect always at index or see an error in the page? ------------------------------------------------------------------------- other: for a directory which is the code for protect all the file excluse the index files ? read more about protect php file
Message from Ian Hobson Most recent post: 10/20/2007 3 authors and 4 replies. Hi guys, I have a problem that I believe is related to character sets. I'm in the UK and I need to store £ (GBP currency symbol) in a MySQL database, using php, pull it out again and put it into a .pdf file. On my test machine everythign work fine - the text can be input in a text or textarea field, gets processed via mysql_real_escape_string on its way to the MySQl database, get stored as the single character according to phpMyAdmin. When the data is sent back to the screen both display and edit field contents appear correct. The code also create a dynamic dpf file, which contains the correct symbol and prints correctly. On the production machine things are slightly different. The character is altered as it is stored - an "A with a hat" character is stored before the pound symbol. Although this displays correctly on show and edit in the browser, the pdf has the "A with hat" symbol prepended, and this is also printed. Although there are small differences in versions between php, and apache between the two machines, there are no differences I can see in the character sets of database setup, my.ini/cnf , php.ini or httpd.conf files. They both have the database in Latin1 and connection as utf-8. The production machine is Ubuntu Server LTS "out of the box" (running as a VM). The test machine is Win2K with Apache2, PHP5 and MySQl 5.0.24a-community-nt - all fairly "out of the box". Anyone have an idea how I can trace the problem read more about character set problems
Message from voutesfloir Most recent post: 10/16/2007 2 authors and 2 replies. With so many around its difficult to know which is secure. I simply need to submit a standard webform. Anyone know the name of a popular secure script? In perl terms this was the NMS script but im not sure what is popular in php terms read more about OT:Recommend a php webform Script?
Message from Anze Most recent post: 10/15/2007 3 authors and 3 replies. Hi! Just had an idea and I'd like to hear your comments - or better yet, links to information on how to easily do this. Let's say you want to have accounting information of the company on the web so the clients can check their status anytime. But you do not have your own server or don't trust the administrator of the server with the data. So, the idea is that the administrator is the hacker you wish to lock out, at least so he can not read the data. Is this possible? I guess the data could be encrypted before it is sent to the server, saved in some DB there and then decrypted on a client machine when it comes back from the server. The problems I see are: - where'd the client key reside? I guess in a cookie, but it should be installed there and kept permanent... - the administrator could've access to PHP pages too so he could alter them and get the key through XSS attack Yeah, I know, get your own server and an administrator you can trust... Any other idea? :) Any comment on this'd be appreciated. Thanks, Anze read more about public / private key client side encoding
Message from Dean Most recent post: 10/15/2007 8 authors and 9 replies. Amazing. Maybe more a PHP problem. This little phscript works perfect with PHP 5.0 and Mysql 5.0 ...under Windows with IE and Netscape 8.0. Exactly the same script gives a syntax error on line: b=<?=$rec?> (little green arrow pointing to <?) with PHP 5.0 and Mysql 5.0 and Netscape 7.2 under Linux (redhat 9.0). The script code: <html><body> <?php $link = mysql_connect("localhost", "root", "pw") or die("Impossible de se connecter : " . mysql_error()); $dbsel = mysql_select_db('mydb', $link); $sql = "SELECT logon, number FROM mytable"; $result = mysql_query($sql); $rec=mysql_num_rows($result); echo $rec; // = 12 ?> <script type="text/JAVAscript"> b = <?=$rec?>; // error line alert(b); </script> </body></html>(Variable $rec = 12 ) I really do not know what's wrong with this code ... Do you? Thanks Dean read more about amazing syntax error
Message from Marc Bauer Most recent post: 10/14/2007 4 authors and 5 replies. Hi I'd like to fix one E_ALL bug in the following code, but I have no idea what's wrong here... any idea how to solve this? I'd like to say - it is possible that the "Second part match string" is not inside the $text variable... maybe this is the source of thisn'tice. However i'd like to remove the notice... Error: "notice: Undefined offset: 1" Code: list($first, $second) = explode("Second part match string", $text);Regards Marc read more about E_ALL: notice with list()
Message from David Basford Most recent post: 10/12/2007 4 authors and 5 replies. I'm relatively new to php and mysql and this hosting thing I have written a site that will be big- and am making it open source so it will be bigger (I'm guessing mine and other sites will have 5-10k regular users). So security'd be nice :) I learned php as I went along (I'm a C programmer in my job which made it easdy though this is a non-financial hobby enterprise) I'd followed what I read and used .INC files to hold important info like usernames and passwords for the different access levels that different pages might use. Is not that rubbish? should not these pages be .PHP files you require_once ? if a site user looks for http://www.mysite.com/inky.inc he'll sometimes get to see the contents including all the php stuff (I have not mastered all my permissions yet - and I know I need to work on that) but if he/she tries http://www.mysite.com/inky.php the content'd be whatever non-php was in that file. Is my assumption correct? I need to make a generic file which is referenced to. It'll (presently) contain information about other files (presently .inc files) that contain password and user information If I did not explain well, let me know Any ideas - is it Ok to change to 'require_once' ? It certainly seems safer than 'include' Thanks read more about 'require_once' or 'include' security question
Message from java.inet Most recent post: 10/10/2007 3 authors and 4 replies. HI this is newbieHow to get d server time in php .... and how to fine year(not system date yr) in server side like use of calendar functions read more about time
Message from Ben Bradley Most recent post: 10/10/2007 2 authors and 2 replies. Hi everyone We're in the process of setting up an intranet solution using Apache, PHP and MySQL. Currently it's all running on windows server 2000 but once we're closer to completion we'll move all this over to Linux. My question relates to what the best way is to handle dates/times with regards to daylight savings time. And we have managed to get ourselves confused over it all in the process. At the moment we have been storing all dates/times as Unix timestamps in our MySQL database, as a standard integer field. Which we noticed was the same way phpBB does it, so it can not be a bad idea. At the moment all our users are in our UK office But when we convert those values to readable dates, we usually use the PHP date command: date('j M y H:i', $timestamp);At the moment running that using the current time does return the correct values. Here's my questions: 1) When we're in BST (British Summer Time) which is 1hr ahead of GMT, does that function provide an automatic correction? 2) The Default timezone setting in our php.ini file (as discovered from phpinfo) is currently Europe/London Do I need to change any timezone of Apache or MySQL on our server from BST to GMT when the clocks change, in order to make sure we're storing accurate timestamps with our data? 3) Our Windows 2000 Server is set to GMT timezone, and the box is checked for Automatically adjust clock for daylight saving changes Also we've it synchronising time using read more about Running an intranet PHP server... handling time in scripts
Message from John Most recent post: 10/10/2007 9 authors and 13 replies. I am looking for some software to create pdfs dynamically from php pages. Pages are php driven with mysql data tables which will be picked up. Top and side menus are inserted into the page using includes and won't appear in the pdf. Must be easy to configure, be able to use css, recognise standard html features and also watermarks, headers, footers and all the other paraphernalia to make it look good. Building a new page using output buffering'd be an ideal solution. Does anyone have a favourite package or know of one. Not looking for a freebie necessarily but happy to pay up to a few hundred pounds if required. I've searched the web, before anyone asks, but there does not seem to be much out there. Thanks John read more about PDF Maker
Message from artev Most recent post: 10/10/2007 4 authors and 4 replies. by php which the fast solution for make redirection at homepage ? Time ago read some solutions, but one most fast because not load or not make a reload of itself page, not remember exactly but was a solution more fast read more about solution for redirect at page index
Message from Marc Bauer Most recent post: 10/5/2007 4 authors and 4 replies. Hi i'd like to replace an array key, but I cannot figure out how this could work. As an example this array: $array1 = array('key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3' ); Now, i'd like to replace the 'key2' => 'value2' with 'key4' => 'value4' and the array should look like: $array1 = array('key1' => 'value1', 'key4' => 'value4', 'key3' => 'value3' ); The order of the keys is important... so I must replace on the same array position. Regards Marc read more about how to replace an array key and keep the position?
Message from artev Most recent post: 10/5/2007 4 authors and 5 replies. if I have a file myfile.php (the dir are more) http://SITE/A/B/myfile.php is possible insert in the page a code that write the path where it is = http://SITE/A/B/ and also must recognize if its url change example http to https https://SITE/A/B/myfile.php it write https://SITE/A/B/ read more about recognize url where file is
Message from Christian Bruckhoff Most recent post: 10/3/2007 2 authors and 2 replies. Hi. How is it possible to compare two strings with umlauts (z.B. "unregelmäßig"). It does not work neither with array_search()nor with an if-statement. cya Christian read more about Comparing two strings with umlauts (particularly array_search())
Message from Daniele Teti Most recent post: 10/3/2007 5 authors and 6 replies. Hi all, there is a good implementation of ActiveRecord pattern in PHP? (ADOdb implementation isn't good for me...) Thanks Daniele read more about ActiveRecord pattern
Message from Fred Most recent post: 10/3/2007 3 authors and 7 replies. Hi, I am totally new to php and wish to set it up on my computer with the following in mind: First I want to set up so as to have php able to run my scripts on this machine without having going through a web server. For example, file i/o, create files, delete files, read in text a line at a time or whole files to a var; split lines into several vars etc, etc. Also, move, create, rename, and delete sub-directories; read from and write to a database. (mysql?) You get the idea - sort of like souped up batch files. Second, Then start applying this to php at work on my web site. I am not sure what to get in the way of a simple to set up solution but I have looked here: http://www.hotscripts.com/PHP/Software_and_Servers/Installation_Kits/ Perhaps something like WAMP5, EasyWAMP, or perhaps ZZEE PHP GUI? The problem is that I do not know nuthin yet. This isn't something I'm going to dally with. I really want to get a handle on PHP and at the same time solve some of my real needs at the home computer level. If it's necessary to have a web server from the getgo I have a little server on the network here in the home where that can reside while I learn.I hope I have been clear as to what I wish for so perhaps someone could start me off with some ideas as to what simple installation'd get me going. In advance thank you very much for listening! fried read more about what new setup?
Message from artev Most recent post: 10/3/2007 4 authors and 4 replies. if by PHP_SELF I have some similar: /localhost/namefile.php is possible to extract only this : namefile.php (is possible also have only namefile -no extension-) or is there a specific function? read more about to extract word
Message from vic Most recent post: 10/2/2007 2 authors and 2 replies. I was told by my host provider that I need to purchase a license from Adobe in order to use PDFLIB Lite. Is this true and do you know the cost? It seems that I read there is a commercial version and a lite version but there was no mention of a license. Thank You, Vic read more about Does PDFLIB Lite require a license?
Message from youngord Most recent post: 10/1/2007 2 authors and 2 replies. <?php $mix=array( array("A",10), array("B",5), array("C",100) ); function com($x,$y){ echo $x[0]; } usort($mix,'com'); ?> I think the $x[0] result is A, but the final $x[0] result is BC. why??? read more about the usort 's puzzle
Message from artev Most recent post: 9/30/2007 2 authors and 9 replies. if I have this code <?php if (VAR1) {echo "<!-- funz1();print_r(xxxx);echo "-->"; } ?> that make comments in html's page source; how I can to achieve all in a file (and not send in html page) ? and is also possible to make a file every day so not write always in same file, but every day to make automatically a file where to write; ? read more about to write echo in a file
Message from Peter Most recent post: 9/29/2007 2 authors and 4 replies. Hi, Sorry for the long intro but I think I should mention this first: My site is driven by Smarty, a php based framework. One of the features of Smarty is that after dynamically building a page, it can be cached and re-used always after it has been compiled once. One day a found a file *.txt? on my webspace and go very worried ... how did it get there ... so I did some searching and read about a problem with file insertion in combination with register_globals = on. I have re-written my (none-smarty) php scripts to not need register_globals and since a while now register_globals = off (PS. I have asked my site-admin to re-check this setting while I'm writing this) I haven't found rogue files since BUT I notice from time to time that links in my pages have changed. This is after I updated pages and cleared the cache, so that all pages needed to be rebuild. As pages are built on a need only basis, some of the lesser used pages get built days after and aren't checked by me. Once built they get cached, and used always, but some thugs or whatever, manage to make the system cache badly built pages (with changed links). To the point: The changed links in question are always to the "same" page but in another folder (different language). The created page link is then something like '/es/' . $from Where $from is created as follows: $link = explode('/',$_SERVER['PHP_SELF'].$special_char.$_SERVER['QUERY_STRING']); $from = $link[sizeo read more about vulnerability ?
Message from Ron Eggler Most recent post: 9/29/2007 3 authors and 3 replies. Hi, I'd like to place a mysql select query but avoid double entries. I have a table with events from a city, there's more than one even in one city so the city appears multiple times. Now I want to select the city first and in a second run i'm gonna read all the events from this city. How would I do this, how'd the select statement look like? Or do I need to get it all back and ditch multiple entries in php? Thanks! Ron read more about mysql query
Message from Old Caledonia Most recent post: 9/28/2007 5 authors and 8 replies. Hi, I'm in the process of upgrading an aged php application to php5 compatibility. One script has me stumped. Here's a code snippet: while($categoryrow = mysql_fetch_array($categoryresult)) { $categoryval = $categoryrow["category"]; $categoryidval = $categoryrow["categoryid"]; $tempbox = "box" . $categoryidval; //assign dynamic variable $categoryvalue = ${$tempbox}; // end code snippet. If I echo $tempbox, I get a list of numerical values (correctly). If I echo $categoryvalue, my data is empty. If it's not a PHP5 thing then I'm lost - any ideas/suggestions? Neil read more about Does PHP5 support dynamic variables?
Message from _q_u_a_m_i_ss Most recent post: 9/28/2007 2 authors and 3 replies. Hy, I need to make some sort of debug function, to be able to send some messages to a database or text file. I'd like my function declaration to be something like this function debug($text){ [....] } The weird thing is that I need to be able to print the file and line number from where it was called, so the output'd be like this: Debug from "index.php" : line:"322", message: "bla bla bla bla". How can I find out the line and file from where it was called? I tried using __LINE__ and __FILE__ but it seems that they point to the file & line where the debug function is defined. Can anyone help? read more about debug and __LINE__ , __FILE__
Message from Chenky Most recent post: 9/27/2007 2 authors and 2 replies. I have been trying to nut this error out for the last three days to no success. Here's the code: $usern = "myusername"; $passw = "mypassword"; $db="mydatabase";$link2 = @xxxxxxxxxxx("localhost", $usern, $passw); if (! $link2) { die("Connect error.");}mysql_select_db($db) or die("DB Select error"); $status = mysql_query("SELECT * FROM members WHERE usern='$user'");while ($display = mysql_fetch_array($status)) {print $display['usern']; }mysql_close($link2); (Obviously Ive change the real database name, user and password, but rest assured the real ones are correct - this I have triple and quadruple checked)On a whim I changed the $status variable to: $status = mysql_query("SELECT * FROM members WHERE usern='$user'") or die (mysql_error()); and was given this error:Access denied for user 'myusername@xxxxxxxxxxx' (Using password: NO)This is what confuses me - why is not it recognising the use of password? All help appreciated. read more about query issue
Message from artev Most recent post: 9/27/2007 3 authors and 5 replies. is there some php's application for to value the really features of a server:max ram , cpu, velocity for to elaborate php script etc.., db ? read more about make benchmark with script php
Message from nervino Most recent post: 9/25/2007 2 authors and 2 replies. I am trying to print "selected" when an id of the first recordset is also present in the second recordset. I did the code below but it only print out "selected" one time, and I'm shure there are two id in the second recordset identical to two id of the first. What do I mistake? (I hope my english to be understandable) Thank youMy code: $query_cat = "SELECT * FROM cat_documenti ORDER BY categoria ASC"; $result_query_cat=mysql_query($query_cat) or die('Query failed. ' . mysql_error()); $query_cat_sel = "SELECT id_categoria_doc FROM link_cat_doc WHERE id_documento =".$id_documento; $result_query_cat_sel=mysql_query($query_cat_sel) or die('Query failed. ' . mysql_error()); $dati_recordset = mysql_fetch_array($result_query_news); $dati_recordset_cat_sel = mysql_fetch_array($result_query_cat_sel); while ($dati_recordset_cat = mysql_fetch_array($result_query_cat)) { $id_categoria_doc=$dati_recordset_cat['id_categoria_doc']; $categoria=$dati_recordset_cat['categoria']; while ($dati_recordset_cat_sel = mysql_fetch_row($result_query_cat_sel)) { $id = $dati_recordset_cat_sel["id_categoria_doc"]; if (in_array($id_categoria_doc, $dati_recordset_cat_sel)) { echo " selected=\"selected\""; } } print $categoria; } read more about Problem with two recordset
Message from Santana Most recent post: 9/25/2007 2 authors and 2 replies. Hei all, hoe I can extract a text from image : jpeg, tiff, bmp, etc.. using PHP is possible ? What class I must use ? Can you give me a example, please ? Regards, Paulito Santana read more about How I can extract a text from image(jpeg, tiff,etc..) ?
Message from ashore Most recent post: 9/24/2007 3 authors and 3 replies. What level do you like to use, and why? In beta, I use error_reporting(E_ALL) to get all the feedback I can, but that may or may-not be the world's best idea in a system you're fielding. (This is in a Free/Open-Source project.) Thanks,all. AS read more about error_reporting () for a Production System?
Message from Jean-Guy Mouton Most recent post: 9/24/2007 2 authors and 2 replies. Hello, I am teaching myself PHP. I have an HTML page with various products each with a specific reference in the form "Reference XXX". I'd like to put an email link below each product with the product reference as part of the subject of the email link. What kind of procedure'd you use? Could you please put me in the right track? Thank you very much for your time. read more about Searching for a recurring string in a string
Message from Andrew Most recent post: 9/23/2007 3 authors and 3 replies. Could I get your help with this problem? It has got me stumped. I want to display and save any images from a like this one. http://www.somesite/index.php?s=4e0e5ea42fec1a1c3ed=attach&type=post&id=63880 The challenge is that the last number increments by one. I could just edit the browsers address bar for each image but I was looking for a php program. How can it be done? read more about Increment id number for _Get
Message from artev Most recent post: 9/23/2007 2 authors and 2 replies. is possible to do this: the row B must remain how it is; insert a code php (in point A - C) that inglobe the row B and can activate or not the row B; A B<?php code ?> CI think some similar this: <?php if(myvar==on) then <?php code ?> ?> whic is the better and fast solution read more about jump php code
Message from Your Name Here Most recent post: 9/21/2007 2 authors and 2 replies. Hi, Being new coding in phpI have a question concerning server side form validation. In a php script I check if a form is correctly filled in. Now I want that the page containing the forms is represented agian so that the user can fill in a correct value. The other forms that a correctly filled in should be showed agian. On the moment when a user fills in a wrong value they get a different page with a message...some that is not tha usable. I want to represent the orginal form again. Thanks read more about server side form validation - update forms
Message from vertigo Most recent post: 9/20/2007 2 authors and 3 replies. Hello <?php $fh =3D fopen("/var/www/localhost/htdocs/web/webalizer.hist","r"); $line=3D""; while(!feof($fh)){ $line=3Dfgets($fh); print "$line<BR>"; } print "LINE: $line<BR>"; fclose($fh); ? Why I have such result that I co not see anything after "LINE:" ? (is $line variable zeroed after while loop ? how can I prevent it ?) Thanx read more about php strcpy
Message from cory Most recent post: 9/18/2007 2 authors and 2 replies. Hi at all, I'm newbie in php and I'm searching to make function one project that I found in a school book, the project is ok because it functions a part some script. I'd like to know which is the error. I'm working on win xp pro and on it I have installed a server apache ver.2.2.4 php ver. 5.2.4, mysql server and client ver. 3.23 I report you the problem: When I compile the form, my data that I fill in, it hasn't processed.The thing strange is that when I change version of Apache, version of php, And version of mysql the problem becomes another in other words is another script that do not go. here is the script: <? include ("admin/config.php"); include ("admin/users.php"); ######################################################## ## NEW MEMBER REGISTER ######################################################## if($register=="Register New Member"){//**************************** // CHECK FOR USER AND EMAIL ** //**************************** $SELECT_USERS = mysql_query("SELECT * FROM users WHERE Username='$username'",$db); $USER_EXISTS = mysql_num_rows($SELECT_USERS); $SELECT_EMAILS = mysql_query("SELECT * FROM users WHERE Email='$email'",$db); $EMAIL_EXISTS = mysql_num_rows($SELECT_EMAILS); //****************** // BEGIN CHECK ** //****************** if(strlen($firstname)<3){$msg[1] = "Firstname too short";} if(strlen($surname)<3) {$msg[2] = "Surname too short";} if(strlen($telephone)<6){$msg[3] read more about newbie
Message from vinaykant.sahu Most recent post: 9/17/2007 2 authors and 2 replies. Thanx a lot to the group. My problem has been shortout. Regards Vinaykant http://vinaykant.ifastnet.com read more about How can I convert media (mpeg,mp3 etc) files in to swf by php programming?
Message from Marnok.com Most recent post: 9/17/2007 3 authors and 5 replies. I can not find it, but is $them reserved? Some code I had was working, now it tells me "Cannot use string offset as an array", but only when I try to access an array called $them (I have $they, $their, etc whcih work fine) I'll just change the names of the arrays, but I wondered for future reference, as gooling rvealed nothing to me. Thanks read more about problem with using "$them"?
Message from _mario.lat Most recent post: 9/16/2007 3 authors and 3 replies. Hallo, I'd like to parse and calculate the value of an expression. Any suggestion? for example: I have these constants: C1=2, C2=4, C3=6, ... and user write this: C1*2*(log(1+C2)/C3)*4 And I'd like to calculate the value. How can I do that? Thankyou in advance, Mario. read more about how to parse an math expression?
Message from Pugi! Most recent post: 9/14/2007 4 authors and 7 replies. I am using PDO for my MySQL database connection and actions. I was wondering if it is possible to test if your are in a transaction. ... start transaction ... call a function, can I test in this function if I am in the middle of a transaction or not ? ... end transaction ... thanx, Pugi! read more about PDO: test for transaction
Message from Kevin Raleigh Most recent post: 9/13/2007 4 authors and 5 replies. How do you store an audio file and an mpeg in a mySQL database? Do you know of any links? Kevin read more about Storing mpeg's and audio files
Message from Jammer677 Most recent post: 9/12/2007 2 authors and 3 replies. I'd like to have PHP for windows run in another directory than c:\inetpub\wwwroot. I have tride changeing parameters in php.ini in my c:\php directory. But nothing changes. When I run the phpinfo() I always get Configuration File (php.ini) Path as c:\windows. But I don't have the php.ini file there. Is there something I am doing wrong or is it a bug. I tried renameing the php.ini file and reseting the IIS and believe it or not my scripts still work in c:\inetpub\wwwroot. read more about PHP Scripts to run in another directory with IIS
Message from Reffo Most recent post: 9/12/2007 3 authors and 11 replies. Hi. I'm very new to PHP, and just want to stop some attacks, and spammers. They all are using =http:// in the query string, I know that I'll stop some other visitors too. Is it possible to put a script in my index.php to redirect people / robots using such commands / remote attacks? If so, I'd like an example please! I'd like to redirect them to another place that is banning them from my site. I have tried using query_sting in htaccess without any luck. Thank-You Regards, Trond read more about Redirection based on Query string
Message from Peter Most recent post: 9/12/2007 2 authors and 5 replies. register_globals = off and I want to either POST or GET a variable to a script. How'd you assign $myvar ? If I do this: $_GET['my_var']; or if ($_GET['my_var']) { // } is my_var assigned then ? Or do I have to do this: $my_var = $_GET['my_var'] ; to assign the value And what if my_var can be either POSTed or be in the URL (GET) ? Should I do something like this then? if (!$_GET['my_var']) { $my_var = $_POST['my_var'] ; } else { $my_var = $_GET['my_var'] ; } read more about assign variable via POST or GET (newb Q)
Message from Ron Barnett Most recent post: 9/11/2007 5 authors and 7 replies. Can anyone advise if I need to set up anything special before I can run an AJAX application on a PHP enabled Apache server ? I have tried demo code and just get no response, its as if the PHP code is not getting called. Normal PHP apps work fine, and regular JAVAScript works fine - mouseovers, submit buttons etc It is as if there is an extension missing Any suggestions read more about First steps with Ajax
Message from Z.K. Most recent post: 9/11/2007 3 authors and 5 replies. I was wondering if some could tell me how to get the IP address of the server PC that I am using. I can get the address of the machine that is being connected to the server, but I'd like to be able to get the server IP address as well. I used: <?php //Gets the IP address $ip = getenv("REMOTE_ADDR") ; Echo "Your IP is " . $ip; ?> to get the address of the machine the is connecting to the server, but what argument'd I use with getenv() to get the server's address? I tried LOCAL_ADDR, but that didn't do anything. I guess I'll need to find me a reference book somewhere that lists all the commands. Z.K. read more about get IP address
Message from Z.K. Most recent post: 9/9/2007 2 authors and 3 replies. I installed apache and it works across my LAN just fine. When I install php though, nothing happens even with very simple commands. I even turned on the error checking in the php.ini file and still the web page is blank where the php stuff should be. Z.K. read more about need help installing php