hasanatkazmi
Members-
Posts
44 -
Joined
-
Last visited
Everything posted by hasanatkazmi
-
How to run a console app and use its output in website
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
Thanks You very much, I think i am on the right path. -
How to run a console app and use its output in website
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
well, thanks for the replies, but there is a problem. The PHP files are hosted on the web server, If I, by browsing in windows explorer do to the batch file and execute that, it will work, but if it is executed over http, the IIS and Apache wont allow due to Secuty reasons. (correct me if i am wrong) What should I do in this case, please suggest me some key words which I can google to get some lid -
Hi, I want to make an web application where if an event occurs (say user clicks execute me) than a program triggers on my computer, does some thing and then returns the data back to the site so that i can show the result to the visitor lets make it more understandable see this diagram http://www.pixel-touch.com/untitled.bmp I badly need help
-
[SOLVED] String manipulation problem
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
great! it worked, u solved the biggest problem i faced in months -
[SOLVED] String manipulation problem
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
yes this is exactly i should do, i have a number of long files, i cant change all 'enters' to '\\n\\r , how can i change all 'enters' by using some function, if i use str_replace than how can i tell the function what 'enter' is??? -
[SOLVED] String manipulation problem
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
well, it does see, if (!isset($_GET['id'])) { die(); } else { $id = $_GET['id']; } switch ($id){ case "contentdiv1": $html = 'This should idealy work but isnt working'; break; case "contentdiv2": $html = '<b>This content came from our Ajax Engine and came for tag 2 </b>'; break; case "contentdiv3": $html = '<b>This content came from our Ajax Engine and came for tag 3 </b>'; break; } in the case of contentdiv1 , it gives no result (and no js error) , i dont know why !!!!!! -
[SOLVED] String manipulation problem
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
so how to solve it, how to convert newlines into noting, or simply doing what "wrap text" in note pad does? -
[SOLVED] String manipulation problem
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
Perhaps you didnt get what i want to say, i dont want newline, i want to echo $html as innerHTML . the problem is that when $html contains a newline created by enter tab not by <br> or \n , it fails to work -
I have a file which basically outputs some javascript, the problem is that when the $html variable contains some thing with enter / newline, the code fails giving no error e.g if $html is like $html='<p><b>this works</b></p>'; but this fails $html='<p> <b> this works </b> </p>'; <?php the actual code is this : (which fails ) $html = '<p>this page talks about services provided by pixeltouch</p> <p> </p> <p> </p> <p>lolz</p> <p> </p> <p> </p> <p> </p> <p>we make graphics</p>'; ?> div = document.getElementById('nameofdiv'); div.innerHTML = '<?php echo $html; ?>';
-
mysql_query on sql fetches an array??? is it so?
-
I am new to MySql, how can i search for a value in specific column in the table suppose table is $table, and coulmn is $cloumn and I am searching for a some variable say $var
-
i have an scrollable iframe with in a div, but it behaves like an image, no links are clickable and it cant be scrolled. what might be possible reasons
-
well, this is.
-
i have an scrollable iframe with in a div, but it behaves like an image, no links are clickable and it cant be scrolled. what might be possible reasons
-
i too think so, but how to start.... any ideas
-
[SOLVED] putting $class->myFunction into another function?
hasanatkazmi replied to Northern Flame's topic in PHP Coding Help
try $this->myFunctionContent(); why are u echo ing it? -
I have a textbox, user writes in something including + and - signs, when he clicks on - all text next to that part ontracts/collapses ....... i.e. I am supposed to make user input as active object. But how to ? any ideas please
-
is there any build in html and javascript parser in PHP, if not, can u tell me any free/opensourse parser on the internet
-
[SOLVED] loading whole webpage in a variable
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
oo thanks, i just forgot this function -
is there any function or a class which can be used to load contents of whole web page in a variable. I tried fopen but this cant be used to open all webpages becuase if a webpage is like ...com/site/world it will not open
-
[SOLVED] Running Programs using PHP?
hasanatkazmi replied to winmastergames's topic in PHP Coding Help
why dont u use serverside javascript for this -
I have vista ultimate and iis, i installed PHP using installer on php.net. When i open any php file it gives me error that my mime settings are not set to process this extension and if this is some scripting page then hander should be edited(??/ modified or whatever). Here is exactly what is says HTTP Error 404.3 - Not Found Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed. Error Code: 0x80070032 Notification: ExecuteRequestHandler Module: StaticFileModule Requested URL: http://localhost:80/hi.php Physical Path: C:\inetpub\wwwroot\hi.php Logon User: Anonymous Logon Method: Anonymous Handler: StaticFile Most likely causes: It is possible that a handler mapping is missing. By default, the static file handler processes all content. The feature you are trying to use may not be installed. The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.) What you can try: In system.webServer/handlers: Ensure that the expected handler for the current page is mapped. Pay careful attention to preconditions (e.g. runtimeVersion, pipelineMode, bitness) and compare them to the settings for your application pool. Pay careful attention to typographical errors in the expected handler line. Please verify that the feature you are trying to use is installed. Verify that the MIME map is enabled or add the MIME map for the Web site using the command-line tool appcmd.exe. Open a command prompt and change directory to %windir%\system32\inetsrv. To set a MIME type, use the following syntax: appcmd set config /section:staticContent /+[fileExtension=string',mimeType='string] The variable fileExtension string is the file name extension and the variable mimeType string is the file type description. For example, to add a MIME map for a file which has the extension ".xyz", type the following at the command prompt, and then press Enter: appcmd set config /section:staticContent /+[fileExtension=.xyz',mimeType='text/plain] Warning: Ensure that this MIME mapping is needed for your Web server before adding it to the list. Configuration files such as .CONFIG or dynamic scripting pages such as .ASP or .ASPX, should not be downloaded directly and should always be processed through a handler. Other files such as database files or those used to store configuration, like .XML or .MDF, are sometimes used to store configuration information. Determine if clients can download these file types before enabling them. Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here. More Information... This error occurs when the file extension of the requested URL is for a MIME type that is not configured on the server. You can add a MIME type for the file extension for files that are not dynamic scripting pages, database, or configuration files. Process those file types using a handler. You should not allows direct downloads of dynamic scripting pages, database or configuration files. What i need to know, help plz
-
Please help me !@!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! simple algo to group strings togehter
-
Hi I am using PHP to build a system, the system will be provided with a number of sentences. I need to make an algorithm which can group the sentences on the basis of similarity e.g I have following senteces: "Musharraf vows that Nawaz Sharif will be arrested on his return because he is in exile because of the agreement he signed." "Maria Sharapova seems to be very deterministic about her new ambition, she can win the title." "The presedent of Paksitan: Musharraf is facing a lot of difficulties at Home, at one side Supreme court has ruled against him and on the other side Nawaz Sharif is comming back." Now if I have a number of sentences (may be in thousands), I need to write an algo which can group first and the third sentence, and grop 2nd alone. I need help in this? Do I need to study any specific technology for this which can help me in this?? pelase help he in the algorothm or give me sudo code if possible
-
[SOLVED] methods to send information using PHP
hasanatkazmi replied to hasanatkazmi's topic in PHP Coding Help
i have this form <form name="log" action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> Email: <input type="text" name="email" maxlength="40"> Password <input type="password" name="pass" maxlength="50"> <a href="#" onclick="document.log.submit();">Submit Form</a> </form> but this submit link didnt work, plz help