- 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
Re:
In my HTML-page I am using following HTML + PHP-code: [COLOR="Blue"]Today is: <? print(Date("l F d, Y")); ?>.[/COLOR] I would expect to see: [COLOR="Green"]Today is: monday October 4, 2010.[/COLOR] or something like that. The only thing I see is: [COLOR="red"]Today is:.[/COLOR] (mind the dot at the end. This means the … |
|
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:
Hi, Me again... Just wanted to know, i have this piece of code to enter the data from a registration form of mine into the user db. I want to use the mysql_real_escape_string to help stop those evil people who enjoys hacking from hacking my DB $query = "INSERT INTO … |
|
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:
Is there anyone who can explain to me how can i store image in a folder to the server then the path to mysql. i dont know even how to get started,i will appreciate for your help. Or links where i can find the tutorials. |
|
Re:
I know it's a dumb question, but I can't figure it out. What's wrong with this code? - [CODE]$progress_report = curdate();[/CODE] It doesn't work. Thank you! |
|
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:
can some tell me what's wrong i tried putting the $date in my textfield from my MySQL. can someone pls correct my code :) thanks [CODE]<?php $username="root"; $password=""; $database="dbdate"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die("Unable to select database"); $query = "SELECT * FROM `cdate` WHERE 1 LIMIT 0 , 30"; $result = … |
|
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:
Please help me to solve the problem.I want to rewrite the url from [url]http://localhost/demo/index.php?keyword=sap[/url] TO [url]http://localhost/demo/sap[/url] but i am facing problem in rewriting url i.e unable to rewrite url to [url]http://localhost/demo/sap[/url] i have written my htaccess as RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?keyword=$1 Please help... Thankyou [code] <?php if( (isset($_GET['action'])) && … |
|
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 … |