Jump to content

jawaidpk

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jawaidpk's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi Friends, I am using SimpleXMLElement class to parse an XML, the XML I have is actually stored in Database, so I have to fetch it from the database first and then provide to the SimpleXMLElement, so the problem is everytime I provide that variable having XML stored in it to the SimpleXMLElement class it gives me an error String could not be parsed as XML, but If I provide the same XML directly (without using variable) to SimpleXMLElement class it works fine as expected, I have been trying to resolve it for the last few days but no success . Can anybody help me in this regard. Thanks
  2. Hi Friends, I have a task in which I have to fetch a row from database table created on specified date, the problem is that the date stored in db table is actually the integer value of mktime(), and this value will be different for every min in a single day, so how can I write the query which will fetch all the rows created on a given DATE. Lets say if 5 records are created at 01-11-2008 at different times then there will be 5 different values in database table but I need all of them to be fetched with one query. so how can I write the WHERE clause in this situation. Thanks
  3. Hi Friends, I want to integrate worldpay payment gateway with my scripts, the snippets and the help which I found up till now shows me how to do this, but the thing which is common among all those is that they are all redirect our user to the pages of world pay where our user enters their credit card info and then the transaction is made but the thing which I want is that I have a credit card no and the account info of a worldpay account and I want to make a transaction through our code without any human intervention, I tried to find APIs of World Pay but could not succeed. Can any one help me how can I do this? It is very urgent
  4. Hi Zhadus, Barand Thanks buddies, I did'nt read the documentation properly, but your help have resolved my issue. Thanks Jawed Islam
  5. Hi Friends, well I got a problem while using inverse trigonometric functions like atan, asin etc. in fact the formula which I am using assumed all the calculations would be done in degrees while PHP assumes the input to be provided to the trigonometric functions is Radians. I guess most of you would be thinking about to suggest me to use deg2rad() function, but I think its not the solution. for example in degrees atan(0.4423) = 23.8598 but in PHP atan(deg2rad(0.4423)) = 0.0077 I need 23.8598 as my answer as I have to use it in the upcoming calculations. if any body can tell me from where I could get those trigonometric functions in PHP which accepts degree as argument rather than radians then it would solve my overall problems. Otherwise it would also be acceptable if anybody can tell me how can I get the same result by using existing atan() and deg2rad or rad2deg functions. Thanks in advance
  6. hi Friends, I am trying to upload an Mp3 song having size about 4 MB, that works fine, no error no warning, (infact error code which is returned in $_FILE array is also 0) I also echoed move_uploaded_file and is_uploaded_file both returned 1 but when I take a look at the destination directory through FTP it shows no File there, I checked the permission for that folder it also shows 777, so I could not understand where the problems lies, can any one please tell me Thanks
  7. hello members, I want to write a script that can connect to the MS-Access database & then fetch data from there I got a code from a site which is as follows ----------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------- <?php // Two versions of Microsoft Office. Choose one. //$db = 'C:\\Program Files\\Microsoft Office\\Office\\Samples\\Northwind.mdb'; $db = 'C:\\Program Files\\Microsoft Office\\Office10\\Samples\\Northwind.mdb'; $conn = new COM('ADODB.Connection') or exit('Cannot start ADO.'); // Two ways to connect. Choose one. $conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=$db") or exit('Cannot open with Jet.'); //$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$db") or exit('Cannot open with driver.'); $sql = 'SELECT ProductName, QuantityPerUnit, UnitPrice FROM Products ORDER BY ProductName'; $rs = $conn->Execute($sql); ?> ----------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------- but it generates an error like this "Cannot open with Jet.". Any one can help me regarding this error
  8. well I have a text file which contains some formatted text (means paragraph,newlines & bullets are there) & I want to print that text through PHP in exactly the same style as in text file well I used PHP's fread() function but it just gave my all the text without formatting so If any one can help me??Remember it is urgent
  9. well I executed you code & surprisingle I got an error like this You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table' at line 1
  10. well whenever I have just install my PHP 5.2.0 but when I tried to execute $dbh = mysql_connect("localhost","root","root") or die("could not open the database"); mysql_select_db("database",$dbh); $res = mysql_query("SELECT * FROM table"); echo mysql_num_rows($res); I saw nothing infact a blank page Remeber I have checked the extension php_mysql.dll in my php.ini file & extension directory settings as well they all are fine infact I also copied libmysql.dll in my C:\windows
  11. well I have PHP 5.2.0 installed, & I have a huge project to work on but the problem is that the project was developed by using earlier version of PHP where "<? ?>" these tags are allowed but PHP 5.2.0 dont allow "<? ?>" tag instead it allows "<?php ?>" tags. There are so many files in that project that it is almost impossible to change each & every "<?" tag to "<?php" tag. So I wanna know whether it is possible to use "<?" tag in PHP5.2.0. If yes then how it is possible??
  12. well I try to explain further Infact I wanna install Zend optimizer but it could not be installed, the requirements of optimizer to be installed is that you should have PHP which was compiled in a non-debug mode & without enable versioining setting, I checked the first requirement i-e my PHP was compiled in a non-debug mode by looking in the output of phpinfo() in the row Debug Build which was set to no. It means that my PHP was compiled in a non-debug mode, but I dont know how to check the second requirmet i-e my PHP should be compiled without enable versioning setting I know it can be also be checked by looking at the output of phpinfo() but at which row I dont know, so if you know how I can test my PHP as PHP which was compiled without enable versioning setting then tell me, n again remember it is urgent
  13. I wanna know whether I have my PHP as PHP which was compiled without enable versioning setting. how can I see this in the output of phpinfo() Please tell me in an easier to understand way ( I mean this row should be there in the output of phpinfo(), preceded by which row & followed by which row). & It is urgent so Plz reply me as soon as possible
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.