8,966 Posted Topics

Member Avatar for dmorrison

if you have a look in the manual (php.net/str_replace) you can see that you are instructing php to replace the whole word with a single star. [code=php] $password = preg_replace('.', '*', $password); // or $password = str_repeat('*', $length); [/code]

Member Avatar for pritaeas
0
90
Member Avatar for krisfr

I use wampserver as local development server. Typically I use PHPMailer, Smarty, jQuery, Shadowbox and Google API's. Next to that are my cms, some custom classes and image packs.

Member Avatar for almostbob
0
146
Member Avatar for wickedsunny

Something like this: RewriteRule "^photo/(.*)$" "http://www.linkzdirect.com/art/$1" [R=301,L]

Member Avatar for wickedsunny
0
887
Member Avatar for chupinette

1. He could poll the database to see if there have been any changes. 2. He could write a specific page which you can trigger.

Member Avatar for flashyflashy
0
131
Member Avatar for click here

It's missing an important feature: caching. [url]http://www.webresourcesdepot.com/19-promising-php-template-engines/[/url]

Member Avatar for click here
0
147
Member Avatar for marygreen

Is it required to see those lines as they are generated. If you could send them to a file, you can speed it up. The memo is really awful for this amount of data. Also, the processmessages slows things down. You could call it every 100 loops instead for example. …

Member Avatar for jng
-1
107
Member Avatar for Stefano Mtangoo

You get this error, because you've already outputted the doctype on the first line. You can remove it, because your code will always redirect. Same goes for the /body and /html tag. Also the echo's before the header cause this problem.

Member Avatar for almostbob
0
165
Member Avatar for viiids

the first [ starts a character class in a regex. if you intended to use the character [ then prepend it with a backslash.

Member Avatar for pritaeas
0
117
Member Avatar for xuexue

It is just an <a> tag with several css properties. Just inspect the element using your browser, and you can see how it's done.

Member Avatar for pritaeas
0
185
Member Avatar for innocent.boys
Member Avatar for hemgoyal_1990
0
323
Member Avatar for yozuca
Member Avatar for FlamingClaw
-1
164
Member Avatar for mainguy

You can use MyFileStream.Write(); Please look in the help for parameter info. I think the first can be a string, and the second the length. If you want to write ResponseStream, there might be some other options.

Member Avatar for mainguy
-1
252
Member Avatar for baudday

I don't think there is a need to use $x. In general it is not a good idea to use globals in recursive functions. I have no possibility to test my code, but you could try this: [code=php] function list_dir($handle, $path, $x = 0) { // Loop over the directory …

Member Avatar for baudday
0
177
Member Avatar for sulkhanz

Add the line: [code] $Firstname = $_POST['Firstname']; [/code] before the line with mysql_select_db.

Member Avatar for sulkhanz
0
118
Member Avatar for carobee
Member Avatar for carobee
0
84
Member Avatar for smvec

Replace $res = mysql_query($sql) or die("cud not add record"); with $res = mysql_query($sql) or die(mysql_error()); and paste the error message too.

Member Avatar for smvec
0
82
Member Avatar for debuitls
Member Avatar for sinnerFA

An XML document needs exactly one root element. So you should wrap your devices tags in another tag. See: [url]http://en.wikipedia.org/wiki/Root_element[/url]

Member Avatar for sinnerFA
0
381
Member Avatar for cwarn23

According to the section "PHP Access" in [url]http://code.google.com/apis/ajaxsearch/documentation/#The_Basics[/url] it should be possible. My guess is you already tried this. At work we use the paid version of google search, which just returns xml.

Member Avatar for cwarn23
0
190
Member Avatar for smartness

Perhaps here: [url]http://pear.php.net/packages.php?catpid=1&catname=Authentication[/url]

Member Avatar for pritaeas
0
48
Member Avatar for tiger86

Not sure about security, but mySQL will eventually be dropped in favour of mySQLi. That should be reason enough to decide...

Member Avatar for mwasif
0
123
Member Avatar for andrei4002

If you are using a different user for the dump, than you could disallow priviliges to the general user, while dumping/truncating, and reset priviliges afterwards. "FLUSH TABLES WITH READ LOCK" may be a better option. But haven't used it myself.

Member Avatar for verruckt24
0
142
Member Avatar for Naveenk2k

"The onLoad and onUnload events are triggered when the user enters or leaves the page." -- w3schools A refresh is leaving a page and then entering the same once again. I don't think there is a way to see if the same page will be loading again, or if the …

Member Avatar for digital-ether
0
72
Member Avatar for Jord09

It probably can't connect to the DB... Unless the DB class uses your login credentials as default. [code=php] $db = new DB('localhost', 'youruser', 'yourpass', 'yourdb'); [/code] might do the trick, although this solution is not recommended.

Member Avatar for Jord09
0
141
Member Avatar for jay_412

[code] $esql = "CALL editweeklyevent()"; [/code] Inside the () put the variables in the correct order, as specified in the create procedure.

Member Avatar for pritaeas
0
142
Member Avatar for AdventDeo

[code=php] <?php session_start(); if (isset($_POST['submit'])) { $fields = array ('cliname', 'cliadd', 'clino', 'cliprod', 'clitest', 'clidr'); $empty_field = false; foreach ($fields as $field) if (empty($_POST[$field])) $empty_field = true; if ($empty_field) $_SESSION['err'] = 'All fields are mandatory!'; else click_submit(); } $err = $_SESSION['err']; ?> //OR <?php session_start(); if (isset($_POST['submit'])) { if (empty($_POST['cliname']) …

Member Avatar for AdventDeo
0
107
Member Avatar for ronny22

Maybe you can use this: [url]http://www.daniweb.com/forums/thread200109-3.html[/url] Post #28 Created an admin panel as a demo that does just that. You only need to change it to use your own database, but an example db is included.

Member Avatar for pritaeas
0
95
Member Avatar for pradeeprs
Member Avatar for cwarn23
0
105
Member Avatar for servis

If the query has no result, $link will be null and that is the invalid argument. If you initialize $link = array (); before the query, this will solve that problem.

Member Avatar for servis
0
160
Member Avatar for arul25538

If you are just looking for an implementation: [url]http://www.phpclasses.org/browse/package/193.html[/url]

Member Avatar for pritaeas
0
41
Member Avatar for brando|away

Fiddler can do this too, even if it's not your server. [url]http://www.fiddler2.com/fiddler2/[/url] [url]http://www.robbihun.com/post/2009/06/08/Manipulating-POST-Data-with-Fiddler.aspx[/url]

Member Avatar for pritaeas
0
102
Member Avatar for aerliana

using php: [url]http://php.net/manual/en/function.date.php[/url] or in your query: NOW() [url]http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html[/url]

Member Avatar for cwarn23
0
66
Member Avatar for chavansoft

It is possible that your script times out before reaching the end. You can try to use: set_time_limit(0); at the start of your script, to allow it to run (indefintely) until completed.

Member Avatar for cwarn23
0
120
Member Avatar for jay_412

[code=php] <?php $query="SELECT id,firstname FROM people"; echo "<select name='people' id='people'>"; FillList($query); echo "</select>"; ?>[/code]

Member Avatar for jay_412
0
190
Member Avatar for vijaysoft1
Member Avatar for Untam3d

I think you should do something like this: [code=php] $inject = false foreach ($badchars as $bad) { if (strpos($char, $bad) !== false) $inject = true; } [/code]

Member Avatar for Untam3d
0
104
Member Avatar for crohole

It should be possible to download and parse the raw access logs from your website. All info you need should be in there. You can find a lot of parsers online to process them.

Member Avatar for pritaeas
0
76
Member Avatar for BigDan531

[url]http://us.php.net/manual/en/function.imagepng.php[/url] You should add a filename to the imagepng() function call.

Member Avatar for pritaeas
0
342
Member Avatar for rajuchacha007
Member Avatar for rajuchacha007
0
168
Member Avatar for jen140
Member Avatar for jen140
0
93
Member Avatar for veledrom

I use this: [code] <Files ~ "^[^\.]+$"> ForceType application/x-httpd-php </Files> [/code] Or this: [code] <Files ~ "^[^\.]+$"> ForceType application/x-httpd-php5 </Files> [/code] Depending on the server. It will treat any file without extension as a php file.

Member Avatar for veledrom
0
86
Member Avatar for gagan22

1. There are paid services offering this. 2. Create a webservice which can create such snapshots on demand. In the backend you'll need an application to download the page and save the output to an image.

Member Avatar for pritaeas
0
147
Member Avatar for navarannan
Member Avatar for navarannan
0
169
Member Avatar for johny321
Member Avatar for plut0564
0
114
Member Avatar for harinatha.php

Can you explain a bit more ? What special charaters ? Are you using the right content-type ?

Member Avatar for harinatha.php
0
50
Member Avatar for BigDan531

You cannot use a variable in a single quoted string. Use: [code=php] mail($email, 'test', 'test message') [/code] or [code=php] mail("$email", 'test', 'test message') [/code]

Member Avatar for BigDan531
0
311
Member Avatar for vanessia_1999

This happens because you are opening a new php file. You would need to use e.g. index.php?page=linkexchange and test in your index.php if linkexchange is set, and then show different content. Another option is to create a function to setup the basic layout and call it in every php file.

Member Avatar for pritaeas
0
196
Member Avatar for rickya100
Member Avatar for Gadfly_1943

You get a hyperlink in Excel because Excel recognizes the email format. Navicat just treats it as text.

Member Avatar for pritaeas
0
82
Member Avatar for lifeworks

[code=sql]select * from products,images where products.id = images.product_id[/code]

Member Avatar for lifeworks
0
124

The End.