743 Posted Topics
Re: [QUOTE=evstevemd;1553394]I'm impressed with Aptana Studio 3 and it is wonderful. I have decided to go back to eclipse after years of using Netbeans. In NB I was having option of [B]separating my files from project meta data [/B]but I cannot find how to do it with AS. Also in Netbeans … | |
![]() | Re: What are the alternatives to webfonts? Cufon and Sifr? Which offers the best compatibility right now? ![]() |
Re: Check the actual configurations being used with ini_get() function. That way you can be sure what is actually being used by PHP at runtime. | |
Re: PHP5 has a lot of built in XML classes. See: [url]http://www.php.net/manual/en/refs.xml.php[/url] I'm sure they handle CDATA and multibyte encoding. Have you tested them? | |
Re: Try using builtwith.com. It tells you a lot about the technologies websites are built on. | |
Re: You cannot increase the security of $_GET. You need the ID of the album in order to display that album, there is no way around that. If you want to limit accessed based on user/role/group however, you can do that. If you want to make sure there is no SQL … ![]() | |
Re: You can use proc_open() to open multiple php processes. You can open a process to a PHP file that will run the server online test. You don't have to wait for proc_open() to return, so you can run it multiple times. If you want to read the returns async, then … | |
Re: There is probably a JavaScript error with the editor. Make sure your browser is up to date. You can also disable the editor with the global configuration. The other option is to edit the template via FTP. The files are under /{joomla_root}/templates/template_name/ | |
Re: Here is a bit chat script. [CODE]<form method="post"> <?php if (isset($_POST['chat']) && trim($_POST['chat'])) { file_put_contents('chat.txt', $_POST['chat'] . "\n", FILE_APPEND); } echo @implode('<br />', @file('chat.txt')) . '<br />'; ?> <input name="chat" /> <button type="submit">Send</button> <button type="submit">Refresh</button> </form>[/CODE] This is meant to learn from, nothing else. You need JavaScript to retrieve new … | |
Re: Regarding: [CODE]preg_replace('/_/', 'html', preg_replace('/%/', 'html', htmlentities(mysql_real_escape_string($apost))));[/CODE] You always want mysql_real_escape_string() to be the last operation of that string before including in an sql query. Otherwise it is possible to inject some sql - though unlikely in this example. An issue is if the mysql encoding does not match that of … | |
Re: The $pattern must be a regular expression. It must have delimiters around the pattern, and optional modifiers after the second delimiter. Example patterns: "/cb/" - matches cb "/cb/i" - matches upper and lower case cb see the docs for preg_match. [url]http://php.net/preg_match[/url] | |
| |
Re: It means that smtp.live.com will only send emails via an TLS connection (TLS is an upgrade from SSL). So you might want to search google for how to configure PHP specifically for live.com. If not, you can use a PHP based SMTP class as it will allow you to put … | |
Re: [QUOTE]; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; [url]http://php.net/sendmail-path[/url] ;sendmail_path =[/QUOTE] The PHP.ini comments are a bit misleading. The sendmail_path directive must have a correct path to a sendmail executable, or else PHP will not know which path to use for sendmail in … | |
Re: Dreamweaver is great for beginners as it allows you to edit HTML visually and see the HTML source - teaching you HTML. More experienced developers prefer editing HTML directly since Dreamweaver does not produce HTML that is reusable or 'modular'. To do this you need to give IDs and Classes … | |
Re: PHP 5.2.11 on Win. Defined classes prefixed with "Spl" are: SplFileInfo SplFileObject SplTempFileObject SplObjectStorage When enabling php_spl_types extension: SplType SplEnum SplBool SplInt SplFloat are added. I'm using this to get the classes: [CODE]$classes = get_declared_classes(); foreach($classes as $class) { if (strpos($class, 'Spl') !== false) echo $class . "\n"; }[/CODE] It … | |
Re: You will have to use JavaScript even with web sockets. Are you planning to use Flash? On the PHP side, you'll need to poll the database for changes. | |
Re: If you install a converter on your server you can use PHP to invoke the converter through the command line. [url]http://www.google.com/search?q=dwg+to+pdf[/url] I searched google for a number of those. See if any have command line access. PHP can invoke command line through, exec() or system() etc. | |
Re: [QUOTE=phpuser;663932]Hi all, Can anyone help me to solve my problem? I m doing one PHP project in which i maximum used Javascript and Ajax.Now client require that when he close browser session have to automatically cleared means when he open next time that browser he must have to login first. … | |
Re: Are you aware that XMLHTTPRequest can only be made to the same domain? You need the domain you're requesting from to grant cross domain access somehow or you will have to proxy the request. | |
Re: [QUOTE=Joebhoy Designs;1533475]If it doesn't show up then try renaming it. Make sure you haven't accidently saved the picture as a .gif or .png file Hope this helps Regards Joe[/QUOTE] Just an interesting point. The file type is not determined by the name extension (such as jpg or png), it is … | |
Re: You'll need to setup a cron job to check when an ad will expire. For example you can add the creation date of the ad to the database, then check with the cron job for expiring ads. The cron script can be just a regular PHP script, that is called … | |
Re: You'll need a tool like ffmpeg to do the video conversion. [url]http://www.ffmpeg.org/[/url] You can use the command line or through PHP with an extension such as: [url]http://ffmpeg-php.sourceforge.net/[/url] | |
Re: [QUOTE=vssp;266935]hai friends I need to count the files with in the selected folder. How to count the files ?? please help me. If any paossibel ple4ase send me sample code. Thanks vssp[/QUOTE] I wrote a directory reading class in my blog that you could look at: [url]http://fijiwebdesign.com/content/view/83/77/[/url] Heres how you … | |
Re: Best place to start is the Joomla docs: [url]http://docs.joomla.org/[/url] | |
Re: [QUOTE=cliffcc;1530517]I don't want to have the submit button. Is it possible? If it can, how to rewrite the code? Thanks![/QUOTE] You can use a redirect, with cookies or session. eg: [CODE] <?php @session_start(); if (isset($_GET['tz'])) { $_SESSION['tz'] = $_GET['tz']; } else if (!isset($_SESSION['tz'])) { ?> <script> window.location = '<?php echo … | |
Re: [QUOTE=ediddy02;774296]I Downloaded Wamp server 2.0 for my php and mysql installation. When i click on the wamp server through start/programs/wampserver/startwampserver2.0 it just has an icon 'start wamp server 2.0',is it the right file i downloaded?isnt it supposed to contain other clickable icons like phpmyadmin,mysql,apache ?? Secondly,do i need to download … | |
Re: [QUOTE=SPeed_FANat1c;1497188]Hi, where is the best practice to put js, image, css files when you make component? I put them in the same directory as component is. Is it good practice? Or should they be in media directory?[/QUOTE] A lot of components will have a js/, image/ and css/ folder under … | |
Re: [QUOTE=SPeed_FANat1c;1495477]Hi, would it be difficult to let's say add a record to another table on user registration? Lets say I want to add a records how many credits the user has in jos_credits table when user registers, in other words - add record with that user id and set credits … | |
Re: Please create a new thread for your question as it does not relate to the current discussion in this thread. Please also explain your question a bit more. | |
Re: Simple example of chat. Should start you off... [CODE]<form method="post"> <?php if (isset($_POST['chat']) && trim($_POST['chat'])) { file_put_contents('chat.txt', $_POST['chat'] . "\n", FILE_APPEND); } echo @implode('<br />', @file('chat.txt')) . '<br />'; ?> <input name="chat" /> <button type="submit">Send</button> <button type="submit">Refresh</button> </form>[/CODE] Note: this does not have users, rooms, does not update automatically, and … | |
Re: You need to have the same session.name across the pages you want to access the same session. To understand this you have to understand how the PHP session works. The session.name setting in php.ini (PHP configuration) will set the name of the cookie that is being set with the session … | |
Re: You might want to look at this thread: [url]http://www.daniweb.com/techtalkforums/thread15304.html[/url] | |
Re: Just to make sure: [CODE]if(!isset($_POST['anything'])){[/CODE] will return TRUE if $_POST['anything'] is NOT set right? Are you sure you aren't confusing it somehow? It would be very improbable that something so unique would happen both on your server, and on your localhost at the same time. If it was a coincidence, … | |
Re: There are a couple of SOAP classes written in PHP: From PEAR: [url]http://pear.php.net/package/SOAP/[/url] NuSOAP: [url]http://dietrich.ganx4.com/nusoap/[/url] PHPSOAP: [url]http://phpsoaptoolkit.sourceforge.net/phpsoap/[/url] You can also use the built in SOAP function's in PHP, there require an extension and I believe PHP5. I'd believe it would be faster than the PHP SOAP classes. [url]http://www.php.net/soap[/url] | |
Re: The strtotime function is really good at calculating time from strings. See the documentation: [url]http://php.net/manual/en/function.strtotime.php[/url] Following the example they have: [CODE] echo strtotime("+1 week 2 days 4 hours 2 seconds");[/CODE] We can convert your string to one that strtotime can understand by simple replacements of "d" with "day", "h" with … | |
Re: Thumbshots.org offers a free service. [CODE]<img src="http://open.thumbshots.org/image.aspx?url=[LINK]" border="1" />[/CODE] It only gives back thumbs for domains however, not urls. Their paid service allows URLs. [QUOTE=mexabet;556227]Hi petr.pavel, Thanks for your suggestion. I'm checking out those links to see if I can find something useful. But a quick check at zugrab told … | |
Re: [QUOTE=Nouvelle;275414]I need serious help with Scrollbars. how can i position them so they go exactly where i need them. say on a picture i need it in the circle area how can i get it there and what do i need to do? Could somebody point me in the right … | |
Re: [QUOTE=desiguru;346160]Is there anyway I can type wget command into a php and that will download file directly from another server to my own server?[/QUOTE] You can run wget by invoking it via the shell as shown above. This however requires that the configuration on your server allows PHP to execute … | |
Re: Yes, it is a permission problem. You need to chmod the the in question. [url]http://en.wikipedia.org/wiki/Chmod[/url] Or if the problem is ownership, chwon: [url]http://en.wikipedia.org/wiki/Chown[/url] | |
Re: [QUOTE=kishou;499306]im just wondering how would i make like a webbrowser in javascript/html? also how would i resize the who entire webpage/webbrowser?[/QUOTE] You can use an iframe, and control its location from a form input field. Then style it to look like a mini browser embedded in your web page. Do … | |
Re: Try debugging your code. Make sure you're getting the correct list/array of passwords. eg: [CODE]$var_list = explode("\n",$var_data); var_dump($var_list);[/CODE] or: [CODE]print_r($var_list);[/CODE] Zero13 recommended using: [CODE]$var_list = explode("\r\n",$var_data);[/CODE] Instead since Windows line breaks are \r\n instead of just \n in Linux. However, to work with both Windows and Linux you need something … | |
Re: You can query the database, and build the XML just as you would HTML. That is the easiest way to do it. You can also use one of the XML parsers such as SimpleXML to build your XML object and retrieve the XML output string when done. [url]http://php.net/manual/en/book.simplexml.php[/url] With SimpleXML … | |
Re: [QUOTE=jermaghs07;672282]hey guys. i am very new to programing and was wondering if anyone else had seen this little trick. this is a little java code to get a saved password prom a website. javascript:alert(document.forms[0].elements[1].value) the forms and values change from site to site but this code works for this site. … | |
Re: Hi, Which are you having the problem with? The creation of the form and PHP code to process the form? Or the PHP for sending SMS? Do you already have some php written that you could post? | |
Re: There are examples on the project page: [url]http://code.google.com/p/xmpphp/[/url] | |
Re: You can create a deamon to run indefinitely, and have it invoke your file every few minutes. Simple version: [CODE]<?php while(1) { sleep(10*60); include('my.php'); } ?>[/CODE] It will need to be run from the command line. Example: [CODE]php deamon.php[/CODE] | |
Re: Maybe your script is being called twice. Try adding logging to the script, and see what it is called. You can use md5() to get a hash of the email. If you get the hash() more then once, then the call is being duplicated. | |
The above classes provide an interface for reading the PHP session data. PHP alone only gives you access to the current users session. This class allows you to read all session files, and thus allow you to read session data across different users. This may be useful if you want … |
The End.