- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 10
- Posts with Downvotes
- 8
- Downvoting Members
- 9
Software Engineer
159 Posted Topics
Re: check your php.ini setting short_open_tag=1 Step 1: create test.php <?php phpinfo(); ?> check short_open_tag=1 if value 0 change to 1 or ask them(hosting-provider) to change it | |
hi, I am created 3 tables for 1> category 2> subcategory 3> projectdetail In my website folder structure root-index.php, header.php footer.php folder- about -index.php and other files folder - project- index.php folder - err- 404.php In my php page project/index.php i make left column dynamic, i.e call value from table … | |
How to read clean data from .docx or .doc file? $file_url="http://www.abc.com/upload/test.docx"; $doc_data = file_get_contents($file_url); it's gives out put like �T�a�b�l�e� �N�o�r�m�a�l����ö��4Ö� l�4Ö���aö��� ���(�k ôÿÁ�(�� ������0�N�o� �L�i�s�t���� �����PK�����!�‚мú��������[Content_Types].xml how to get clean data like text file?? | |
Hi, I want to do like: 1> [COLOR="Red"]browse file and upload .xls file only[/COLOR] (Not csv or other format) 2> save into mysql database. Any sample demo example?? Or link please? | |
Re: check out link.. [URL="http://in2.php.net/mysql_real_escape_string"]http://in2.php.net/mysql_real_escape_string[/URL] hope will help you.. | |
Hi, I have dates like 20130402 (y-m-d i.e 2ndApr13) Dates are 20130402, 20130404, 20130409, 20130412 if date is 20130402 out put is 20130408 , if date is 20130412 output is 201304015 dd="20130402" echo $dd This gives me current dates next monday , date -d "next monday" +%Y%m%d How to find … | |
Hi, I am trying to read the content of url. when manually i put url in browser link : [url]http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions[/url] it opens. but using code [code=php] $homepage = file_get_contents('http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions'); echo $homepage; [/code] Warning: file_get_contents([url]http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions[/url]) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in C:\xampp\htdocs\test.php on line … | |
Re: Suppose this is your form in aaa.php [code] <table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <th width="5%" height="62" scope="col"> </th> <th width="51%" align="left" valign="top" scope="col"><form name="form2" method="post" action="aaa.php"> //here you can view uploaded image <img src="<?php echo $path ?>" height="150" width="150"> </form></th> <th width="44%" align="left" valign="top" scope="col"><form action="aaa.php" method="POST" enctype="multipart/form-data"> <p><br> <font … | |
Re: curdate(); is a mysql's function . Read the links [URL="http://www.tizag.com/mysqlTutorial/mysql-date.php"]http://www.tizag.com/mysqlTutorial/mysql-date.php[/URL] [URL="http://www.gizmola.com/blog/archives/51-Exploring-Mysql-CURDATE-and-NOW.-The-same-but-different..html"]http://www.gizmola.com/blog/archives/51-Exploring-Mysql-CURDATE-and-NOW.-The-same-but-different..html[/URL] [URL="http://www.smallsql.de/doc/sql-functions/date-time/curdate.html"]http://www.smallsql.de/doc/sql-functions/date-time/curdate.html[/URL] And [URL="http://php.net/manual/en/function.date.php"]http://php.net/manual/en/function.date.php[/URL] or simple method [code] $progress_report = date("Y-m-d"); [/code] | |
Hi, [code] check_time() { fileName=$myFileName newTime=$line newtimeaccess="date --date \"$newTime 6 hour\" '+%Y-%m-%d %H:%M:%S'" newtimeaccess=`echo $newtimeaccess | sh` strnewtime=$(date -d "$newtimeaccess" +%s) systime=$(date +%s) if [ $systime -le $strnewtime ] then return "$fileName__0"; else return "$fileName__1"; fi } value=`check_time "$myFileName $line"` ##$myFileName -- file name and $line -- time of file … | |
Hi, I need some deep knowledge Regex Vs Dom. Is Regex much faster then Dom or not? Like processing speed, reliable or not . If any one share link or article it helpful for me. | |
Hi, This is my input data [code] stdClass Object ( [Description] => WINT-2941 [Priority] => High [Name] => WINT-2941 [Requester] => 1 [ItemCrawlList] => Array ( [0] => stdClass Object ( [itemuid] => 4a303c676c7c48d9778f2276dcdf5555da3025ad [itemurl] => http://www.abc.com/R-174772 [id] => 36 ) [1] => stdClass Object ( [itemuid] => 2b47b34055f7adbb028c9a48c9ce35984a6d188f [itemurl] … | |
Hi, I am trying to upload file and save data to DB. IN File only 10 row and 5 column data.(normal sample data) File has only 24.0 KB (24,576 bytes) I am using..reader.php and oleread.php to upload file But It taking More than 650MB memory (681574400 bytes) Is any [B]other … ![]() | |
Hi, I have index.php on root. Session register using $_session['user'] and redirected to abc/demo.php session not working in directories . but on this location abc/demo.php session not working. is that any [B]setting in php.ini[/B] or anything? Same thing [B]working on local[/B](xampp) [B]but on working on live[/B] server. How to solve … ![]() | |
Hi, I want to find All no of week in any month. And first and last date of that week. Assume Month is Jan 2011 date in Y-m-d 1st week -> Start date=2011-01-01 End date=2011-01-01 2nd week -> Start date=2011-01-02 End date=2011-01-08 3rd week -> Start date=2011-01-09 End date=2011-01-15 4th … | |
[code] function encrypt_url($string) { $key = "1AT2#mr(luv^iU3tp>"; $result = ''; for($i=0; $i<strlen($string); $i++) { $char = substr($string, $i, 1); $keychar = substr($key, ($i % strlen($key))-1, 1); $char = chr(ord($char)+ord($keychar)); $result.=$char; } return urlencode(base64_encode($result)); } [/code] $data=encrypt_url('http://www.test.com'); Normally through PHP code i got encrypted value -> pqW1xGxSnOmf46Pqw9zJYdffqw%3D%3D When i try through … | |
Hi, I tried to read html content of 100 links. It is working for few links,after few links it is asking for captcha. E.g:- [B]It check 30 links then captcha come. Again After few hours gone. it start working[/B]. because of this i used proxy using cURL.But still captch coming. … | |
Hi, I am learning store procedure. my table structure is user_id int(9) primary user_name varchar(100) user_first_name varchar(100) CREATE PROCEDURE Sp1(OUT p VARCHAR(100),OUT p1 VARCHAR(100),IN p2 INT) SELECT user_name,user_first_name INTO p,p1 FROM pm_user WHERE user_id=p2; CALL Sp1(@Name,@Fname,2); SELECT @Name,@Fname; Output comes like @Name @Fname [BLOB - 0B] [BLOB - 0B] How … | |
Hi, I am uploading all types of files. After upload i want to calculate number of pages of uploaded file? The document could be DOC ,Docx, TXT ,PDF,PPT (with images or with out images) etc. How to calculate number of pages? Any Api available? ![]() | |
Hi, [code] <form id='frmuser' name='frmuser' action='web_url.php' method='post'> <input name="site_name" type="text" id="site_name" <input name="add" type="submit" id="add" value="Create image" /> </form> [/code] Suppose :- web url is google.com how to create image of this? Any google API available? using html of that url possible to create image ? | |
Hi, I am using IE8. I am trying to set value for check_id but it not working in IE8. but works in firefox. [code] <script type="text/javascript"> function check_test() { var new_url="http://www.abc.com/xyz.php?id=5"; alert(new_url); document.getElementById("check_id").value=new_url; } </script> </head> <body> <form name="mod_frm" method="post" id="mod_frm" action="<?php echo $self;?>" > <input type="radio" name="pkg_name" value="1" class="styled" … | |
Hi, I am transferring file from folder audio to data folder. suppose file abc.mp3 is transferring into audio folder. how to check through program i.e abc.mp3 is full loaded(transfer). then transfer to data folder. like abc.mp3 is 2 mb when start loading into audio folder after some time(sec) audio-> abc.mp3 … | |
Hi, I am using xampp in xampp->tmp->[COLOR="Red"]sess_jp7bfpqaritm9ta8h3b5n40df1[/COLOR] In this file some session data,html and mysql query are written. Can any one please explain me the description of this types of file. any encrypted data format is used to store session. | |
Hi, I want to create simple file management program. Suppose i have 10 users. and file xyz.txt When 1st user access file he has authority to read and write. but if at the same time 2nd user try to access this file. i have to give only read access or … | |
Hi, I want to show users upcoming 7 birthday. Here is my user table user_birth_date user_id 1984-08-09 1 2000-08-22 5 2000-07-23 8 1985-08-24 11 1986-08-25 28 2002-08-19 27 1982-08-26 26 1987-08-05 24 0185-09-27 25 1985-09-02 29 1987-08-31 30 1980-03-22 31 1982-10-20 33 i use query [code] $sql_bday="SELECT CONCAT(YEAR(CURRENT_DATE()),'-',date_format( user_birth_date, '%d-%m' … | |
Re: echo your query. copy and past in mysql db u will found error | |
I am using IFrame to load a webpage into it. When the page is getting loaded into the IFrame the status bar shows the actual link of that webpage i.e. "Waiting for http://www.abc.com/index.php". So, [COLOR="Red"]I want to hide this status message or change it to something else.[/COLOR] [CODE] <script type="text/javascript" … | |
Re: Hi, I am htaccess expert. I think htaccess not working bcoz you are again redirecting url after form submit. | |
Hi, I want to add Some text and images into word file as Header and footer. How to create word file through php code. I have uploaded Sample doc file. Plz guide me.. | |
Hi, I am trying to run a stored procedure from PHP file,i am getting following error : CALL fetch_gist() execute command denied to user 'user_name'@'localhost' for routine 'dbname.fetch_gist' on 1370 When i directly call stored procedure from phpmyadmin it works fine , [COLOR="Red"]but when i call the same from php … | |
Hi, When in google you type time or date ... it display answer - correct time means get your time zone and converted to correct time... e.g. suppose you are in india .. it automatically detect time zone convert it added +5.30 and display result. same as whether you are … | |
Hi, I want to submit the form when click on url without page refresh. I create url by using some mysql DB values url like:- index.php?pid=2&mid=25 index.php?pid=4&mid=34 when click on url pass the values to another variables But with out page reload. How to do this? Any sample link? | |
Hi, i want to insert images as header and footer into word document file. How to do this? Any api available for this? Thanks | |
[code] #include<stdio.h> #include<conio.h> #include<string> #include <iostream> #include<stdlib.h> #include "convert.h" using namespace std; int check(string); string send(string); string hr_str; int main() { int result=2,n; char tt[7]; char h[2],m[2],s[2]; cout<<"\nEnter the Time "; string colon=":"; while(result !=1) { printf("\nHR -> "); scanf("%s",h); result= check(h); } cout<<"\nMain Fun"<<hr_str; string t_time; strcpy (t_time,hr_str);//-----problem is … | |
Hi..I am trying to connect oracle which is on my pc.i am using oracle 9i. i am creating 1 customer table & trying to display it. [code] import java.sql.*; import java.net.*; public class JdbcDemo{ public static void main(String args[]){ Driver d; Connection con; Statement stmt ; ResultSet rs; try{ d=(Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); … | |
Hi, I my application lots of business name with their address store in DB. i want to show google map for them. [COLOR="Red"]How to show google map from address. Or add new column for latitude and longitude? [/COLOR] | |
Hi, I want to print the specific data from page instead of Full page data. So i can't use window.print method. I have take my data in $data variable. i want to print only this data. any other method for print selected data??(not full page) | |
Hi, I used this code to check page rank. [COLOR="Green"]E.g.[url]http://www.orkut.com[/url] it gives page rank : 8[/COLOR] [COLOR="Red"] it works on localhost perfectly.[/COLOR] [COLOR="Green"]But when same code i put on my ftp i.e. live it gives wrong output Page rank: -1[/COLOR] [COLOR="Red"] I think some setting in php.ini or some other … | |
Re: Instead of save image in database always save path of that image into DB. and to show image call path like [code] <img src="<? echo path from DB ?>"> [/code] If you want to save image into DB read the [URL="http://www.mwasif.com/2007/4/save-image-in-mysql-with-php/"]http://www.mwasif.com/2007/4/save-image-in-mysql-with-php/[/URL] | |
Re: There is 1 simple way. 1> while in registration form of user ask for time zone. Drop down for Like GMT 5, GMT +5.30, PST ...all store in DB in user record table . 2> Download php pear and install when user log in pass the GMT +5.30 or PST … | |
Re: [CODE]$to = "Your gmail id"; $from = "yahoo id"; $subject = "Success msg"; $sendmail = @mail($to,$subject,$body,"From: $from\nContent-Type: text/html; charset=iso-8859-1"); [/CODE] When you use xampp and mercury 1> Start xampp and mercury do not close mercury window. [COLOR="Red"]To get mail from local to mail i.e (yahoo,gmail) it take long time duration...may … | |
i write query like select * from pm_task_user_work LEFT JOIN pm_task_allotment ON pm_task_allotment.task_allotment_id=pm_task_user_work.task_allotment_id where pm_task_user_work.project_id='19' and (Select str_to_date(pm_task_user_work.task_user_work_link_time,'%Y-%m-%d') as MyDate from pm_task_user_work) BETWEEN '2009-12-15' AND '2009-12-15' order by pm_task_user_work.project_module_id,pm_task_user_work.task_user_work_link_follow It gives me Subquery returns more than 1 row ------------ 2> SELECT pm_task_user_work . * , str_to_date( pm_task_user_work.task_user_work_link_time, '%Y-%m-%d' ) AS … | |
Hi, I am trying to transfer multiple select country to another select box. But when i click on submit i didn't get the value of array of list2 i.e finallist? I can't understand what is problem?? Please help me how to solve this?? [code] <? if($_POST["add"]) { echo "sdads"; echo … | |
Hi, i am trying to validate credit card. I want to validate credit card 1> name on card 2> card number 3> card type (visa,mastercard... etc) 4> cvv 5> expiry date I seared on google but most of links gives information to validate card according to number. How to do … | |
[code=c] #include <stdio.h> #include <conio.h> int main(void) { unsigned port = 0; int value; value = outp(port, 'C'); printf("Value %c sent to port number %d\n", value, port); return 0; } [/code] It gives error 8 C:\Dev-Cpp\Abc\... `outp' undeclared (first use this function) How to solve this ?? I write function … | |
Hi, I want to create script like in facebook. When we log into facebook, go into any friend's profile Their gift button , show gifts with pagination. when click on image and ok button it save into database. Any sample demo script ? How to create script like this? Please … | |
Hi i am installing joomla ,virtuemart. I have some queries about shipping costs.. 1> sell the product from 5 cites. customer choose product add to cart How to customer to get product in lowest shipping cost Or cart be able to calculate shipping from the nearest city. 2> Customer can … | |
Re: url like product.php?prod_id=1 it does not have importance to that URL as search engine sees “?” sign treat it as a url which keeps on changing. so convert the dynamic URL product.php?prod_id=1 to static url format product-5.html. So rewrite the url like it display product-1.html but it actually cal product.php?prod_id=1. … | |
I want to read the registry of usb [COLOR="Red"]HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR[/COLOR] in this Name Type Data start REG_DWORD 0x00000003(3) when double click it gives value in Hex 3 How to read this value 3 or data 0x00000003(3) How to create this code in c language??? How to do it guys If any … | |
Hi,This is my php file. I want to [COLOR="Red"]replace [/COLOR] [COLOR="Green"]$$FullName$$ with Jon Rama And $$FirstName$$ with Jon and $$Gender$$ with Male[/COLOR] And [COLOR="Red"]create to new file Jon_Rama.php[/COLOR] [code] <table width="100%"> <tr> <td align="center"> <b> <h1 class="title_list">$$FullName$$</h1> </b> <br><br> </td> </tr> <tr> <td>$$FirstName$$ is a $$Gender$$.</td> </tr> </table> [/code] How … |
The End.