Posts
 
Reputation
Joined
Last Seen
Ranked #428
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
89% Quality Score
Upvotes Received
29
Posts with Upvotes
24
Upvoting Members
21
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
12 Commented Posts
2 Endorsements
Ranked #630
Ranked #505
~67.1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Shantanu88d

i have been given an assignment, to find frequencies of all words in a large text file. I have tried a program which finds the same in a sample string. Done by taking that string in an array. But in case of a text file spanning many pages with thousands …

Member Avatar for edwinhermann
0
563
Member Avatar for branding4you

this is weird, I have form and on this form three file uploads and submit button, when i change the button to image (so it looks better than this old thing on my website) it does not upload the files The button however works 100%, am i missing something here? …

Member Avatar for ab_omid
0
5K
Member Avatar for stephen_UK

I have 2 versions of the same database. One uses M/S Access and is installed on stand alone laptops, the second is web based MySQL/HTML/PHP. The database is simple ie a single table with cuirrent 8000 records with 32 fields/record which is expanding at around 1000 records per year. What …

Member Avatar for stephen_UK
0
165
Member Avatar for statsProf

I have the following problem passing coordinate data from a web page to a php handler that will read and write the data to a storage file or a database. What I am asking the user to do is click on a line (a png image) which has attributed coordinates …

Member Avatar for statsProf
0
190
Member Avatar for adityamadhira

Hi I need help regarding file download. $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $id = strrchr($url,"/"); $id= substr($id,1,strlen($id)); retrieving name of the pdf from url header('Content-disposition: attachment; filename='.$id); header('Content-type: application/pdf'); readfile($id); code for downloading file but it is not working? So i need help from you guys. Thanks in advance.

Member Avatar for adityamadhira
0
137
Member Avatar for garyjuano

anyone know whats the problem/reason with this codes? 1. calculation with fix time <?php date_default_timezone_set('UTC'); $deff = strtotime("20:00:00")-strtotime("19:00:00"); echo date('h:i', $deff ); OUTPUT = 01:00 //above was correct ?> 2.output should be in munite, but the output is 12:50 what's wrong with this code? date_default_timezone_set('UTC'); $deff = strtotime("20:00:00")-strtotime("19:10:00"); echo date('h:i', …

Member Avatar for edwinhermann
0
136
Member Avatar for petrovitch

Is it possible to run command line exec in the foreground instead of the background with PHP?

Member Avatar for edwinhermann
0
151
Member Avatar for Commando112

Hi, what is the best replacement for session_is_registered? Here is my code Main Page [CODE=PHP]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <? session_start(); if(!session_is_registered(myusername)){ header("location:index.php"); } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>C&amp;C-Relived Control Panel</title> </head> <body> <span>Login Successful</span> <form name="form1" method="post" action="logout.php"> <input type="submit" name="Submit" …

Member Avatar for edwinhermann
0
100
Member Avatar for unikorndesigns

hey fellow PHP developer, Is there any way we could protect our PHP source code from being modified after a 3rd person receives the code? I had developed a web application and when i give the source code to another person i want it to be write protected. Currently i …

Member Avatar for edwinhermann
0
919
Member Avatar for kirtan_thakkar

I have inputted a word from a user and i want to find that word in a text file. My text file is like this. -------------- name1:value1 name2:value2 name3:value3 ... ... -------------- So if my user inputs name1 so i want corresponding value1.. How can i do these? Can anyone …

Member Avatar for trickist17
0
12K
Member Avatar for bangla

Hi, i am trying to open a file in php but its not. 1. i saved a txt file, called welcome.txt welcome.txt content "welcome to PHP file" 2. then i wrote another file, "file.php". content is: [CODE]<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html> [/CODE] 3. "file.php" and "welcome.txt" on the …

Member Avatar for ddymacek
0
159
Member Avatar for ibrahimbit17

Hello all, I have a problem. I need to make a php application with manual licensing not using any software for it but I didn't find anywhere a tutorial or a book about this. I have only found some tutorial about different types of licensing but could not find any …

Member Avatar for ibrahimbit17
0
340
Member Avatar for puvi

Hi frens, i have a query, i am working on a project, where the codes are kept on the server, i am using putty to access the server, wanna know if there is any editor/ide to edit the code on putty.. thanks for ur time and reply..

Member Avatar for edwinhermann
0
74
Member Avatar for knan

A service running in the Server is listening to port 2978 on 1xx.xxx.xx.xx for incoming connections! My PHP code receives URL data through get method. A tcp connection has to be established with the 'service' on that port and the data received from the URL should be sent to the …

Member Avatar for edwinhermann
0
275
Member Avatar for karthik_ppts
Member Avatar for ushajase
0
16K
Member Avatar for phorce

Hello, I am working on a system that logs someone in, from their IP address and not their username and password. The thing is, I need to access the remote IP address rather than the router's IP address. For example [code] <?php echo $_SERVER['REMOTE_ADDR']; ?> [/code] Will only display their …

Member Avatar for edwinhermann
0
150
Member Avatar for decade

Hello guys, I'm new to programming especially in php. i would like to know how to use the substr() in this kind of problem. problem: I have this string. $stringA = "Hello to all of you!" output should be this: "Hello to ..." I try to use the substr how …

Member Avatar for tnjiric
0
133
Member Avatar for Paaat

Good evening or morning everyone.. Is there any way to understand this: $array = ('element 1','element 2','element 3'); while($x=each($array)){ echo $x['key'].' Value:'.$x['value']; } I mean where did the 'key' and 'value' come from although they're not defined in the file at all??

Member Avatar for edwinhermann
0
114
Member Avatar for palsoft

Hi, I have PHP script which is calculating some Google Maps API functions in Javascript and then sending output back to PHP. My biggest problem is, that i need it to run at intervals, but AFAIK cron can't handle javascript I've tried a little workaround - setting cron which sends …

Member Avatar for palsoft
0
2K
Member Avatar for Shantanu88d

I want to find frequency of all words in a given string. I wrote this code, but it is not giving correct output. Plz help [CODE] <?php //string here $wordsArray = "Hello world hello world this is hello world"; //echo($wordsArray); //function here $startPosForWord; $endPosForWord; $wordToMatch; $word; $scannedWords; $occurance = 0; …

Member Avatar for edwinhermann
0
3K
Member Avatar for haimz
Member Avatar for edwinhermann
0
95
Member Avatar for paarade

I don't program in PHP so looking at similar code and hacking it has not worked well. Perhaps someone here can help me get started. I'm a genealogist and would like a simple script to determine when someone was born based on their age on a particular date. For example, …

Member Avatar for diafol
0
131
Member Avatar for public-image

Hello Guys! :) I am just wondering how I would be able to echo a random [B]hour[/B] timestamp. Any help would be appreciated! Yours, Public-Image

Member Avatar for edwinhermann
0
7K
Member Avatar for jacob21

Hi,I am working on this code.the problem is its not going to 2nd elseif(upload). need suggestion. [CODE]if(empty($mobile)) { echo '<script language="javascript">alert("Enter Phone Number")</script>;'; } elseif(!(empty($mobile))) { if((is_numeric($mobile))) { if((strlen($mobile)!=10)) echo '<script language="javascript">alert("phone number should be of 10 digit")</script>;'; } else { echo '<script language="javascript">alert("Please Enter valid phone number")</script>;'; } } …

Member Avatar for edwinhermann
0
82
Member Avatar for Spyzker

i have echo error. code; [CODE] echo '<li>'; echo '<div>'; echo '<div class="author-image">'; echo '<img alt="gravatar" src="http://0.gravatar.com/avatar/8a567031a8d520b2f97089e715b64e00?s=50&amp;d=%3Cpath_to_url%3E&amp;r=G" class="avatar avatar-50 photo" height="50" width="50" />'; echo '</div>'; echo '<div class="comment-wrapper">'; echo '<div class="comment-inner">'; echo '<div class="comment-top">'; echo '<div class="comment-author">'; echo '<a href="http://www.outerspiceweb.com" rel="external nofollow" class="url" target="_blank" />'.$yorumlari_cek_yeni['yazan'].'</a>'; echo '</div>'; echo '<div class="comment-text">'; …

Member Avatar for diafol
0
170
Member Avatar for rpv_sen

Hi Friends I am using dynamic text box, i want to calculate the amount from value of rate in the text box and qty Pls help me how to solve it... [CODE]<?php include("config.php"); ?> <script type=text/javascript> function multiply(){ a = document.getElementById("rate").value; b = document.getElementById("qty").value; c = a*b; amt = alert(c); …

Member Avatar for edwinhermann
0
191
Member Avatar for verbob

Ok, I'm not exactly great at PHP, but I'm learning... Here's what I would like to do: An event occurs every Tuesday and Sunday. I would like to echo out the "next" date for the event. For example- "Yardsale every Tuesday and Saturday Next Yardsale: " [echo the next event …

Member Avatar for verbob
0
141
Member Avatar for Yemen Coder

hi guys i have a small question about < form action='' > what is difference between [CODE]<form action='$SERVER['PHP_SELF'] >[/CODE] and [CODE]<form action='<? echo htmlspecialchars($_SERVER['PHP_SELF'); ?> ' >[/CODE] if this way [CODE]action='<? echo htmlspecialchars($_SERVER['PHP_SELF'); ?> ' [/CODE] have benefit in security ! i wait any idea Thanks a lot

Member Avatar for Yemen Coder
0
144
Member Avatar for kained

On Thursday the [URL="http://www.theregister.co.uk/2010/09/17/eu_cookie_law/"]EU law[/URL](which the uk has passed verbatum) regarding cookies comes into effect. From my reading of it, any site that has among other things google analyitics present on it, will need to inform the user that cookies are present on the site, refer them to the sites …

Member Avatar for edwinhermann
0
205
Member Avatar for noahshoa2

Hi, I have this vision: Someone clicks on a link that goes to my website. When they get my website, my website picks up the url that they just came from. With my code I have gotten that far. But what I want is for the page's url that they …

Member Avatar for twiss
0
201