743 Posted Topics

Member Avatar for Stefano Mtangoo

[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 …

Member Avatar for ulyssey
0
289
Member Avatar for iamthwee

What are the alternatives to webfonts? Cufon and Sifr? Which offers the best compatibility right now?

Member Avatar for iamthwee
0
150
Member Avatar for daza166

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.

Member Avatar for digital-ether
0
18K
Member Avatar for srdva59

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?

Member Avatar for digital-ether
0
81
Member Avatar for projecttoday

Try using builtwith.com. It tells you a lot about the technologies websites are built on.

Member Avatar for digital-ether
0
92
Member Avatar for cliffcc

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 …

Member Avatar for diafol
0
111
Member Avatar for Xcelled194

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 …

Member Avatar for Xcelled194
0
157
Member Avatar for vaultdweller123

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/

Member Avatar for digital-ether
0
184
Member Avatar for Whilliam

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 …

Member Avatar for maxlipman
0
103
Member Avatar for Tehim

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 …

Member Avatar for digital-ether
0
787
Member Avatar for raghujosh

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]

Member Avatar for raghujosh
0
130
Member Avatar for phpDave
Member Avatar for phpDave
0
157
Member Avatar for klemme

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 …

Member Avatar for digital-ether
0
284
Member Avatar for klemme

[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 …

Member Avatar for digital-ether
0
180
Member Avatar for cossay

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 …

Member Avatar for digital-ether
0
117
Member Avatar for rouse

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 …

Member Avatar for rouse
0
141
Member Avatar for Awah Mohamed

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.

Member Avatar for digital-ether
0
79
Member Avatar for arshadshaikh

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.

Member Avatar for arshadshaikh
0
565
Member Avatar for phpuser

[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. …

Member Avatar for Somnathpawar
0
5K
Member Avatar for v_sriram

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.

Member Avatar for digital-ether
0
181
Member Avatar for mrjoli021

[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 …

Member Avatar for digital-ether
0
141
Member Avatar for samsambm

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 …

Member Avatar for digital-ether
0
97
Member Avatar for elibyy

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]

Member Avatar for digital-ether
0
105
Member Avatar for vssp

[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 …

Member Avatar for kyobul
0
2K
Member Avatar for rajeesh_rsn

Best place to start is the Joomla docs: [url]http://docs.joomla.org/[/url]

Member Avatar for digital-ether
0
98
Member Avatar for cliffcc

[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 …

Member Avatar for digital-ether
0
181
Member Avatar for ediddy02

[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 …

Member Avatar for chrishea
0
638
Member Avatar for McLaren

[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 …

Member Avatar for McLaren
0
157
Member Avatar for McLaren

[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 …

Member Avatar for McLaren
0
434
Member Avatar for haye321
Member Avatar for rakesh74888

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.

Member Avatar for digital-ether
0
111
Member Avatar for saikishore

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 …

Member Avatar for digital-ether
0
356
Member Avatar for abhi10kumar

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 …

Member Avatar for digital-ether
0
1K
Member Avatar for Majdaa

You might want to look at this thread: [url]http://www.daniweb.com/techtalkforums/thread15304.html[/url]

Member Avatar for chayan.cjee
0
704
Member Avatar for nuttyniall

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, …

Member Avatar for nuttyniall
0
154
Member Avatar for PuneetSeo

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]

Member Avatar for Sorcher
0
177
Member Avatar for jrhitokiri

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 …

Member Avatar for jrhitokiri
0
192
Member Avatar for mexabet

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 …

Member Avatar for sarajohnmich
0
146
Member Avatar for Nouvelle

[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 …

Member Avatar for julianmoors
0
227
Member Avatar for desiguru

[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 …

Member Avatar for ctsjoe
0
1K
Member Avatar for darkmikey

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]

Member Avatar for Dragonbaki
0
153
Member Avatar for kishou

[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 …

Member Avatar for cobrax
0
101
Member Avatar for atticusr5

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 …

Member Avatar for atticusr5
0
135
Member Avatar for SunnySideUp

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 …

Member Avatar for digital-ether
0
98
Member Avatar for jermaghs07

[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. …

Member Avatar for mijaja
0
3K
Member Avatar for MKIII

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?

Member Avatar for GreaseJunkie
0
505
Member Avatar for prem2

There are examples on the project page: [url]http://code.google.com/p/xmpphp/[/url]

Member Avatar for abhinavsingh
0
474
Member Avatar for ayesha789

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]

Member Avatar for digital-ether
0
1K
Member Avatar for pingvin

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.

Member Avatar for digital-ether
0
114
Member Avatar for digital-ether

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 …

Member Avatar for digital-ether
2
1K

The End.