Posts
 
Reputation
Joined
Last Seen
Ranked #116
Strength to Increase Rep
+12
Strength to Decrease Rep
-3
90% Quality Score
Upvotes Received
114
Posts with Upvotes
101
Upvoting Members
56
Downvotes Received
14
Posts with Downvotes
14
Downvoting Members
6
58 Commented Posts
~419.72K People Reached
Favorite Tags
Member Avatar for NardCake

For parsing ini configuration files there is a parse_ini_file() function. http://php.net/manual/en/function.parse-ini-file.php That could simplify the class a bit.

Member Avatar for Vitaly_1
2
953
Member Avatar for loopylouis

[QUOTE=loopylouis;299573]Hi i own an online game and i wish to know weather there is a way to disable my members from changing the URL in the url bar and only allow them to click links. If they change the URL in the url bar i would like it to header/re-direct …

Member Avatar for Shoaib_10
0
3K
Member Avatar for jej1216

[QUOTE=jej1216;396659]I have a website that lists pdf files for downloading, with links to each file. What I want to do now is design a search page that will look in the folder that contains these docs and search for docs that match a partial name. I have created search pages …

Member Avatar for Ray Paseur
0
3K
Member Avatar for galeej

The problem is that your function does not support sending to multiple email addresses. With SMTP, multiple addresses are sent one after the other, and the client has to wait for a response before writing the next recipient. So in your function change: [CODE]//email to fputs($smtpConnect, "RCPT TO: <$to>" . …

Member Avatar for Kevin_40
0
1K
Member Avatar for kozkay

[CODE]You're saying it's possible to host this script on another server and still have the added benefits of seo for my domain?[/CODE] A side effect of using JavaScript is that it is that it is invisible to Search Engines. So the reviews would not be indexed by search engines. If …

Member Avatar for Arthur_4
0
5K
Member Avatar for manish812

[B]Headers already sent[/B] refers to [B]HTTP Headers[/B]. The server cannot send any more http headers if the HTTP Content has started sending. In PHP code, this means you have ouput something to the page with echo or print etc. PHP will not output any whitespace in between php tags, However, …

Member Avatar for Steven_17
0
4K
Member Avatar for solomonski

[QUOTE=solomonski;271126]Sorry i didnt mention that the website sits on a windows platform machine.[/QUOTE] The windows scheduled tasks manager works the same as cron. You can set up the task to run your php script. If you want a purely web based solution take a look at this article in my …

Member Avatar for Ajaypal_1
0
259
Member Avatar for nikesh.yadav

[QUOTE=nikesh.yadav;676618]hi all, i m working on the email validation i ve to check email id either it is correct or not but i cannt send mail on them. ie when i validate all email id client send newsletter and they should not bounce. thanx in advance[/QUOTE] You can validate if …

Member Avatar for pritaeas
0
6K
Member Avatar for rubberman

The thing that get's me about template engines is that in order to be as expressive as the language they are written in, they can become quite complex and add another learning curve for the designers. The developers have to learn the template syntax as well and know how to …

Member Avatar for TexWiller
3
2K
Member Avatar for vssp

[QUOTE=vssp]Hi friends Is it posssible to create an email account in the cpanel without manualy logging in ? I want to create a php script which logs into the cpanel and create an email account . I hope i would get a solution form u guys Thanks[/QUOTE] Hi vssp; Fortunately …

Member Avatar for jaison_1
0
2K
Member Avatar for digital-ether

Here is a PHP class written for PHP4 and PHP5 that will validate email addresses by querying the SMTP (Simple Mail Transfer Protocol) server. This is meant to complement validation of the syntax of the email address, which should be used before validating the email via SMTP, which is more …

Member Avatar for lps
0
4K
Member Avatar for Smoking Bros

You'll probably get better help with this posting at the xampp forum. [url]http://www.apachefriends.org/f/viewforum.php?f=16[/url] This has little to do with PHP programming so it would be hard to answer your question. It is more to do with the apache server and specifically xampp.

Member Avatar for J. M. P.
0
794
Member Avatar for rajabhaskar525

You can send SMS for free to most carriers by sending an email to their Email to SMS gateway. A list of carriers is here: [url]http://en.wikipedia.org/wiki/List_of_carriers_providing_SMS_transit[/url] I wrote a class based on this a while ago but never got around to finishing it: If you're interested in finishing it, here …

Member Avatar for Bishnoi_1
1
2K
Member Avatar for shishtawitch

[QUOTE=shishtawitch;1053274]i want to pass a youtube code like [url]http://www.youtube.com/watch?v=NMAYr709-9Y&feature=dir[/url] and it return me the embed code.........!! how can i do that with php and curl........!![/QUOTE] This it the embed code for that particular page: [CODE]<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/NMAYr709-9Y&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NMAYr709-9Y&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>[/CODE] Notice …

Member Avatar for Mark_24
0
499
Member Avatar for rahul10721

[QUOTE=robothy;604081]Hi, Surely the FTP will map your public_html folder, within which will be your PHP scripts. So can you not simply use the unlink function in PHP? Sorry if I am over simplifying the problem. R[/QUOTE] unlink() function in PHP will be run under the Apache user, however, you can …

Member Avatar for veedeoo
0
1K
Member Avatar for alfredferg

You cannot read files backwards, but you can use fread() and fseek() to read chunks from the end of the file, and see if you have 10 lines in it. This examples keeps reading a chunk from the end, moving towards the beginning of the file, until it finds 10 …

Member Avatar for santoshv22
0
2K
Member Avatar for digital-ether

Searching the net I couldn't find a simple way of retrieving HTTP Request Headers and HTTP Request Body in a PHP Script. PECL extensions offer this but not a standard PHP install. So heres a simple class that will do it for you. Docs in my blog: [URL]http://fijiwebdesign.com/content/view/90/77/[/URL]

Member Avatar for veedeoo
0
11K
Member Avatar for RobotFX

The PHP script is not responding when the JSON request is made. ie: $.getJSON() This happens in the client side JS, but your PHP script on the server, will just hang. You'll have to figure out what is hanging. I'm guessing it is the HTTP requests made in the PHP …

Member Avatar for Reza_3
0
1K
Member Avatar for soumyakollon1

To retrieve the video/audio stream from the browser you need a browser plugin that has access to the webcam. The most common way to do this right now is with Flash. (I'm guessing you want this to run in the browser). You'll need to write some ActionScript to get the …

Member Avatar for ssdwd
0
1K
Member Avatar for cancer10

Heres a search for it on sourceforge. [url]http://sourceforge.net/search/?type_of_search=soft&words=ip+to+country+php[/url] There are a number of IP to country scripts in PHP there.. What to note is that differnet scripts use different IP to Address databases. Some are better than others. If you're interested in writing your own, you can download a database …

Member Avatar for diafol
0
2K
Member Avatar for himerus

[QUOTE]NOTE: This script requires the GD image library to be compiled, and to my knowledge only works on a *nix server. PHP must also be installed using GD support.[/QUOTE] GD works fine on Apache on Windows (PHP4) didn't test PHP5 but it should work.

Member Avatar for gpcodelibrary
0
980
Member Avatar for sharmilli

A few ideas: 1) The process created by PHP will be run as the PHP user. Does this user have the required permissions. 2) If you're getting errors, you would need to access stderr. Try "2>&1" at the end to redirect stderr to stdout. 3) Compiling takes time, you might …

Member Avatar for vars
0
924
Member Avatar for Aamit

[QUOTE=Aamit;1080561]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 …

Member Avatar for jerryangel
0
16K
Member Avatar for MIGSoft

[QUOTE=MIGSoft]Hey All. Have a question. I have this situation: in JavaScript I have a parent window that opens a child window using window.open(). Now, through the course of the whole thing, comes a point where the child refereshes the parent window using opener.location.reload(). After the reload happens, I have realized …

Member Avatar for ankurg11
0
3K
Member Avatar for Noth

I understand this post is solved with the new host, but there are some security concerns with your code that you should take care of. <?php include 'core/init.php'; protect_page(); not_admin_redirect(); $user_id = $_GET['user_id']; mysql_query("UPDATE `users` SET `banned`= 1 WHERE `user_id` = $user_id"); header('Location: liste.php'); ?> The mysql query has the …

Member Avatar for digital-ether
0
169
Member Avatar for starter

[QUOTE=starter;751210]I need help with a dynamic drop down menu. I need when I select a make. the corresponding model load in the second drop down menu [code=php]<?php $conn=odbc_connect("cisproject","" ,"");// database connection $make = $_POST['manuf_name']; if ($make){ ///////////////////////////////////////////////// $query = sprintf("SELECT * FROM Models where manufacture_id='$make'"); $result = @mysql_query($query); $rowModel = …

Member Avatar for diafol
0
208
Member Avatar for jkon

I would argue that the practice of optimizing essential components of an application does not affect the overall performance of an application. You should be concerned about other areas that do affect performance, such as caching the instances (singleton pattern), lazy loading etc. These do affect performance of a framework. …

Member Avatar for bato3
0
454
Member Avatar for dayballer2285

[QUOTE=dayballer2285;400964]Hello, I am using php to check if a URL is available using th if file exists function. [code] if(file_exists("http://www.domain.jsp")) { $lines = file('http://www.domain.jsp'); }else{ $lines= echo $variable } [/code] But it keeps giving me errors...is there an alternative to if file exists? Thanks[/QUOTE] I don't believe file_exists() works on …

Member Avatar for sakkal
0
1K
Member Avatar for zido85

So it doesn't matter which language represents the XML document as DOM, it will have the same structure and methods defined by the [URL="http://www.w3.org/DOM/"]DOM Specs[/URL]. Use var_dump() and get_class_methods() to find out what methods are available on an object. For example, on your $album object. It really helps to use …

Member Avatar for redblue35
0
3K
Member Avatar for achiman

It would be simpler and less error prone to use an actual currency conversion API. Here is a listing: [url]http://www.programmableweb.com/apitag/?q=currency[/url]

Member Avatar for PatrikIden
-1
4K