743 Posted Topics
Re: do you really need to rebuild PHP for openssl? You should be able to just use enable the openssl extension in PHP.ini. restart apache, and the [ICODE]php_openssl.dll [/ICODE]will be loaded dynamically. You can find the extensions path with phpinfo(), as the value for "extension_dir". php.ini path is also there. | |
Re: [QUOTE=stymiee;267517]PHP only works on the server side. That means once it the page is sent to the browser PHP can't affect it anymore. You need to use HTML or JavaScript for this.[/QUOTE] Or you can use flash. Even though I personally go against using flash as a substitute for html/javascript, … | |
Re: Try clicking on the 'learn more', it may tell you more about why it is being blocked. It could also be because you're sending an HTML form in the email. You should probably only send a link to a form on your site. Adding a plain text version should also … | |
Re: [QUOTE=sashkat;834361]Hi, I need help with writing a piece of code that counts all the folders in a specific directory and prints the number, then counts image files in the same directory but located in all the fullsize sub folder of each gallery. Example: -images -galleries -gallery1 - fullsize -thumbs -gallery2 … | |
Re: You can copy a file to a remote server with PHP. Say you have the two servers: [url]http://site.com/[/url] [url]http://remote.com/[/url] If you have a file on [url]http://site.com/file.zip[/url] You could just tell [url]http://remote.com[/url] to download the file by giving it the url. eg: [CODE=php]<?php $file_url = 'http://site.com/file.zip'; $result = file_get_contents('http://remote.com/remote-download.php?file='.urlencode($file_url)); if ($result … | |
Re: [QUOTE=Pado;833205]I can pass my SWF file a variable from PHP using Flashvars, but when I try to pass in a number Flash tells me it's NaN. Is there something I can do to make sure it is a number? I'm not sure what to do here. Can someone help? Thanks … | |
Re: [QUOTE=nikhita;832257]hello all, Please get me a way to export all contents of a table in mysql database to a PDF file and it can be downloadable and can be printed from the website.. please provide some sample code. it is very much urgent for me. plz help[/QUOTE] There are quite … | |
Re: [QUOTE=danarashad;831586]I am getting odd query results. I should be getting a list of students, over 100, but I am only getting 3. Here is my connection and sql, please help. It works excellent on PC, but the client is using a Mac. Please advise. On PC, I get all 100 … | |
Re: > i guess you could use `ctype_space()` function for more details refer to php manual http://in.php.net/manual/en/function.ctype-space.php `ctype_space` seems to check if the string is composed of all spaces. I think the function to use would be `ctype_graph`. http://in.php.net/manual/en/function.ctype-graph.php This makes sure all characters are printable, and do not create whitespace. … | |
Re: [QUOTE=yssirhc;828301]Background - this code adds & deletes file inputs from the screen as well as adds & deletes them from an array that will be used in the uploading process. I'm having trouble splicing the correct value from an array. In the remove function, I think it is always removing … | |
Re: The good thing about Rails is that you don't have a to choose a framework. If you are developing websites with Ruby, you most likely are using Rails. With PHP there are too many frameworks, too many clones of RoR. The development curves are two high between frameworks. The PHP … | |
Re: [QUOTE]I feel like I just drank a whole bottle of Vodka and then beat my head with the empty bottle. [/QUOTE] That said.. So you have a table with: element_type_id, element_id and term_taxonomy_id So you are saying: element_type_id and element_id have a direct relationship. Then just remove one of them, … | |
Re: so you're saying the output from the PHP file is: 2 #1 In the HTTP Body? So that means you have some junk before the #1. If you just use the browser, and populate the URL with: server.com/validtaion.php?user=testlogin&pass=testpass If it returns 1 or 0 correctly. Then you can forget about … | |
Re: What is the command you're using in the pipe? What MTA (mailserver) are you using. | |
Re: Is it possible to redraw the canvas on however, or is that too slow? | |
Re: A change it the URL path won't affect "AJAX". Only a domain change, such as a subdomain. So it must be something else in your code. | |
Re: [QUOTE=swit;828910]Hello, can anyone help me. im working on a project using joomla cms and within a certain component, all of a sudden the save, edit and cancel buttons dont work. all the buttons that have javascript code behind dont work in the joomla back end. plus, the buttons work perfect … | |
Re: [QUOTE=samarudge;829042]Well to start off with it uses a CDN. Something like the webhosts will have thousands of servers all over the world. The will also use compression (Google GZip Apache). As well as E-Tags, Cache Control, Expires and Minified content. Just look up those things Regards, Sam R P.S. This … | |
Re: Looks like you just have to place that file on a web server. So if you have a web server, place the file in your web directory, and it should enable you to use it as a proxy. | |
Re: If you're using Firefox, download Firebug. It will give you the error. Safari and Chrome also have a JS debugger/console built in. | |
Re: [QUOTE=justapimp;821661]Hello fellow developers I have a site project I've just acquired for a quick repair and I have problem with the url string being truncated because of the "#". What I mean by that is if I have a url string with a nave/value pair: deviceNane= AjaxText #2 only the … | |
Re: You can also use [URL="http://www.regular-expressions.info/"]regular exressions[/URL]. It will probably be less memory usage then SimpleXML but may be slower. [CODE=php]preg_match_all("/<enclosure type=\"audio\/mpeg\" url=\"([^\"]+)\" length=\"[0-9]+\" \/>/", $xml, $matches); $urls = $matches[1];[/CODE] [url]http://php.net/preg_match[/url] | |
Re: [QUOTE=cosby;827578]I have the permission to run chown using the command prompt, so the script that uploading file need to be root before executing chown.[/QUOTE] You could do this by writing the file with a process owned by the actual user you want to be the owner. For example, with FTP. … | |
Re: [QUOTE]PHP obviously runs in a web browser.[/QUOTE] PHP executes on the server. Java also executes on the server. To have Java execute on the browser, you need user to have the JRE on their computer. They will also need the Java Plugin for their Browser. It isn't as common nowdays … | |
Re: [QUOTE]I am using databases and PHP Sessions for user validation but i can still directly access my pdf files without logging in by using direct url...[/QUOTE] If you have the sessions working. Then just pass the files you want to make available to PHP. see: [url]http://php.net/readfile[/url] | |
Re: [QUOTE=veledrom;824190]Hi, Can i use sleep() for 1 hour? I mean is there any expiry time for it or browser or session so on. Purpose is to send 2000 emails every one hour. Thanks[/QUOTE] For what you're doing the browser should not be in the equation. What you want is to … | |
Re: Parsing an RSS file w/ PHP can be done in many different ways. Usually they consist of these steps: 1) The RSS feed text is imported into PHP as a string. 2) The RSS feed text is then parsed by PHP into PHP Objects that represent the data in the … | |
Re: [QUOTE=mschroeder;824236]That is because your column type is set to datetime or timestamp not certain which one actually produces that as I don't use the mysql datetime or timestamp data type. To store a unix timestamp you just need an INT(10)[/QUOTE] It really is best to store a mysql timestamp, or … | |
Re: [QUOTE=progurammaar;804739]i dont think you'll be able to do it for orkut, because it has applied some method which restricts photo access......for everything else try reading this book[/QUOTE] Anything that is accessible by a browser can be accessed by PHP. You may want to look into their specific APIs however, they … | |
Re: like sarahk said, as soon as their is some http output, you cannot modify the headers. This is a restriction of the http protocol. PHP can also buffer http output and only send the output when you want it to using the ob_start() and ob_end_flush(). This is also useful in … | |
Re: Interesting stuff. You could automate it further by screen scraping the mail pages. Just have PHP download the latest mail periodically and do everything in an automated way. However, this would require that PHP know the passwords of the users it wants to download mail for and also authenticate with … | |
Re: [QUOTE=niketa.kasliwal;801933]Hi I want to send data to remote server ,I have used http_post_data and cURL and even fsockopen method. For http_post_data it has give me undefined function error.For cURL i have included curl libraries .dll file ,uncommented curl extension from php.ini file though it's giving error like curl_init() can not … | |
Re: [QUOTE=xodus1;792559]Hi, I am trying to build an SQL statement for a reporting tool, the idea is to count from multiple statements and group my output by date, I've also learnt that GROUP is an intensive statement - 'not sure' again. I'm a newbie to PHP so please help. I just … | |
Re: Also to consider is the google AJAX language API. It offers translation of a block of text to different languages through a JavaScript API, or through a REST interface. Here's documentation: [url]http://code.google.com/apis/ajaxlanguage/documentation/[/url] If you want to use PHP, you can use the REST interface. The response format is JSON. eg: … | |
Re: [QUOTE=Avalon]I have recently turned my site into a [URL=http://casino.finditjack.com]php site[/URL]. The only problem is I am trying to run more than one banner at the top. I don't want one underneathe the other. I would like them side by side and centered. Also, I have seen on some sites similar … | |
Re: [QUOTE=BeerGuzler;341666]Hi, I'm trying to put together a PHP Ajax search against an mySQL database yet doesnt seem to work .. HELP! I had to resort to using frameset which I dont really want to do. what I'm trying to is perform a search against a mysql database and display the … | |
Re: [QUOTE=shibobo2001;778314]I would like to delop a search facility allowing the user to search other user by name, matching users should be listed, each matching user should have a hyperlink labelled"Make Friends", could anybody help me write an ajax code for this, many thanks[/QUOTE] Are the users in a database? If … | |
Re: [QUOTE=cakka;772724]What the diferrent of www1 and www? Thanks.[/QUOTE] There is nothing significant about "www1". It is just what some large sites have chose as their subdomain following the format of the - historically - default subdomain "www". | |
Re: You probably have short open tags enabled in the PHP config. So it would see the xml declaration as an opening PHP tag. In PHP.ini disable short open tags by finding "short_open_tag" and making the value "0". You can also seperate the < and ? in <?xml so it doesn't … | |
Re: Regular expressions are quite simple. Instead of matching exact characters like in your str_replace() you match patterns. The pattern is held in two delimiters, denoting the start and end of the pattern. The delimiter has to be non-alphanumeric. After the end delimiter, you have the modifiers (flags). So a regular … | |
Re: [QUOTE=alipourhadi;772127]hi to all i wana get the Traffic left from rapidshare account i used this work but it doesnt work anyone cans help me? [CODE]ereg("<td>Traffic left:</td><td align=right><b><script>document\.write\(setzeTT\(\"\"\+Math\.ceil\((\d+)/1000\)\)\);</script> MB</b></td>", $pagedata, $traffic); [/CODE] html code of this part is : [CODE]<td>Traffic left:</td><td align=right><b><script>document.write(setzeTT(""+Math.ceil(-123313/1000)));</script> MB</b></td>[/CODE] i need this number : -123313 in html[/QUOTE] … | |
Re: I wouldn't use $_SERVER['PHP_SELF']. It has an XSS vulnerability. If someone made the URL: [CODE] index.php#<script>alert(document.cookie)</script> [/CODE] PHP would display it as such. Anyone can choose a malicious URL that will become part of your form. If you have a form and don't specify an "action" url, it defaults to … | |
Re: It would be a lot more efficient to just use the string replacement functions such as str_replace() or str_ireplace() [CODE]$replace = array('a', 'b'); $replacements = array('<b>a</b>', '<b>b</b>'); $subject = "You are the best At BaseBall"; $subject= str_ireplace($replace, $replacements, $subject); echo $subject; [/CODE] or [CODE]$replace = array('a', 'b'); $subject = "You … | |
I'm trying to create an Alpha Numeric List of links. Each alphabet links to a page that will display rows whose titles start with that alphabet or numeral. For each alphabet, I want to get the number of titles that start with that alphabet. This allows me to link only … | |
Re: [QUOTE=danielpataki;770623]Hi DiGSGRL I don't think what you are saying really applies here, especially the security issue. What I want to get around is recounting how many comments someone has made after every refresh. I can do this by storing their comment count as an integer in the Users table. So … | |
Re: The domain probably has more then one IP. Try: [url]http://www.php.net/manual/en/function.gethostbynamel.php[/url] and do a in_array() on the list of IPs. [url]http://www.php.net/in_array[/url] | |
Re: [QUOTE=Aamit;763246]Hi I want to count page views .. suppose when user [COLOR="Green"]viewing page 1 and spend minimun 10 seconds time on page 1[/COLOR] then i have to [COLOR="Red"]calculate view as 1[/COLOR]... so how to do that?? plz give me sample example[/QUOTE] You will need persistent storage for the number of … | |
Re: Is it failing to reach your users specifically on AOL or is it failing on other mail hosts also? [php]require_once "Mail.php";[/php] What mail class are you using? Does it check for mail injection? If it doesn't, your php allows for mail injection. This would be the cause of your mail … | |
Re: [QUOTE=david.1982;751663]Well I stared at this for a bit and finally came up with a workable solution. My MySQL skills are rather intermediate so this may not be the best way to run this sort of query. Here's what I came up with so far..any comments/suggestions/rewrites apprciated :) [CODE] SELECT count(*) … | |
Re: Hi, You should try JpGraph. It requires the GD lib. [url]http://www.aditus.nu/jpgraph/[/url] Its really simple though (as far as creating graphs with php goes). :) ps: offtopic: its also cool for creating your own barcodes! (not too usefull.. but cool) [url]http://www.aditus.nu/jpgraph/docs/barcode/index.html[/url] |
The End.