Hello,
I reformated my system, and now I cannot echo ""; but phpmyadmin loads just fine, without errors. I have the php.ini in the windows directory.
What is wrong?
Thanks
Jean
This is for make something similar to "templates" in MediaWiki with PHP in order to make the parameters between nested templates work.
Is possible with a regex to capture all occurrences of a character between braces but ignoring occurrences of it if it occurs in a nested group of braces?
| {{ | {{ | }} | | }} |
Highlighted:
| {{ *|* {{ | }} *|* *|* }} |
Hi guys,
I have build a php authentication for my site http://www.skyeye.cc/ and wanted to make sure I didn't forget any security holes... let see if you can hack into it?
Thanks!
P.S. Do not close this topic, the site is really mine!
Hello,
I wanted to localizate some texts in my Zend Framework applicaiton.
There are some texts like:
Hello, I'm <a href="test.php" title="Title-Attribute" rel="test">a sample text</a>, greetings to all of you! :)
If there's no html in it, it's simple to localizate, but with HTML in it, how should I do it best?
The language is PHP. I have one foreach ( $a as $b) and another foreach ($c as $d = $e). How do i combine them to read as one. I tired foreach (($a as $b) && ($c as $d = $e)), but that is rubbish.
Can anyone please tell me why this result is generation only one results? taking in mind that everything is set right and the three tables are populated correctly, i took out the group_concat and it worked but of course with a php undefined index error!
SELECT `songs`.`song_name`, `songs`.`add_date`, `songs`.`song_id`, `songs`.`song_picture`, group_concat(DISTINCT artists.artist_name) as artist_name FROM (`songs`) JOIN `mtm_songs_artists` ON `songs`.`song_id` = `mtm_songs_artists`.`song_id` JOIN `artists` ON `artists`.`artist_id` = `mtm_songs_artists`.`artist_id` ORDER BY `songs`.`song_id` DESC LIMIT 10
so i'm guessing it's something related to group_concat.
best regards,
Rami
I'm passing an object to mustache and this object has a method with one parameter. Is something like this possible with Mustache and PHP?
{{object.method(parameter)}}
If it gets too laborious to achieve this with Mustache, what template engine would you recommend?
Remember I need to pass parameters to object methods while in the view
context (like we do with helpers). The nearest as possible to mustache syntax is welcome.
On our site, we have a lot of swimming times that we would like to convert to seconds. i.e. 1:23:33.03 or 58:22.43. Is there a PHP function that can do this? A MySQL function?
Hello,
I made a comment on a Wordpress blog and I noticed that after I submitted the comment, the top of the browser was flush with the top of my comment. In other words, the web page was auto-scrolled down to the top of my comment.
How can I do this? I am using a comment system with PHP / MySQL.
Thanks in advance,
John
I'm working with a function whose signature looks like this
afunc(string $p1, mixed $p2, array $p3 [, int $p4 = SOM_CONST [, string $p5 ]] )
In some cases I don't have data for the last parameter $p5 to pass, but for the sake of consistency I still want to pass something like NULL. So my question, does PHP treat passing a NULL exactly the same as not passing anything?
somefunc($p1, $p2, $p3, $p4 = SOM_CONST);
somefunc($p1, $p2, $p3, $p4 = SOM_CONST, NULL);
Hi,
I am using xdebug plugin for vim. After making few changes i was able to run debugger but not able to set breakpoints.
So, I enabled xdebug.remote_log and below is the log statements corresponding to setting breakpoint.
<- breakpoint_set -i 5 -t line -f file:///C:\htdocs\testLocal.php -n 36
-
Its issuing request to debugger in proper format only but no idea why debugger is returning "command is not avilable".
Please let me know if anything is wrong.
In PHP, I know that mysql_real_escape in much safer than using addslashes.
However, I could not find an example of a situation where addslashes would let an SQL Injection happen.
Can anyone give some examples?
Thanks!
I have this PHP/SQL query:
$sql = sprintf("SELECT * FROM %sCubeCart_filemanager WHERE filepath REGEXP '%s[\\/\\\\][^\\/\\\\]+$' AND type = '%d' AND disabled = '0' ORDER BY filepath ASC %s", $this->_config['dbprefix'], str_replace(array('\\','/'),'.',$folder), $type, $limit);
if '$folder' == 'iha9' it is finding results like 'iha91' and 'iha99' too. Something is wrong with the regular expression, but I don't know how they work, can anyone help?!
I am new to time manipulation or time arithmetic operations
and am currently developing a navigation system with Web server based information and currently I have this Database that contains a table peek hours whose columns are id, start_time, end_time , edge_id, day_of_the_week, edge_weight
------------------------------------------------------------------------
| Peek Hours |
------------------------------------------------------------------------
| | | | | | |
| id | start_time | end_time | edge_id | day_of_the_week | edge_weight |
| | | | | | |
------------------------------------------------------------------------
I am using PHP as a webservice and so based on the current time i want to get all the records that would fit this equation
start_time< current_time < end_time
I have a SolrPhpClient on my classifieds website, and whenever users wants to add/remove classified the index in Solr gets updated via Php code.
So I wonder, does this mean that my Solr index is open for anybody to alter with?
Same Q applies to the Solr Admin page.
If I set a password for the admin page, does this mean that my classifieds website wont have access to updating/removing documents from the Solr index?
Thanks
Hi All,
I am new with cron job in php,basically i want to send email to user on certain time of period.i want to send email daily,weekly,monthly,quarterly,yearly,or specific amount of days.
In smarty template i want to use this type of function
Can any body know how to do tihs?
I would like to know what you think is the best web-based File Explorer to manage files in a remote server through HTTP / Web.
It would be preferable to have PHP or Flash technology, but any good suggestion would do.
More generally, how would you allow someone to manage files on a remote server with HTTP being the only open outgoing port?
Is this an okay practice or an acceptable way to use PHP's error suppressing?
if (isset($_REQUEST['id'] && $_REQUEST['id'] == 6) {
echo 'hi';
}
if (@$_REQUEST['id'] == 6) {
echo 'hi';
}
I am collecting registration information on my site and need to figure out how to pass all data stored in the MySQL DB (or just portions of it) as a comma delimited CSV file through an SFTP so our partners can access the information. The pages are built using PHP.
I literally have no idea how to do this and am hoping somebody has experience doing so.
Thanks ahead of time!
I am developing a website and sometimes the browsers keeps loading, and I would like to know exactly what's making it load for so long. It gets stuck kindof.
So I wonder if there is any application or way to check what is getting loaded onto the page, so I can see what element or object it gets stuck on?
The website uses php/javascript/mysql and html
I was able to create a subdomain in my plesk panel (linux serverm and plesk 10.4.4 ) using API (with a PHP script).
But I'm not able to find a documentation online for just two things:
How can I set the stats property to be "awstats" instead of "Nothing"?
How can I set (if is it possible) the home directory for the created subdomain to be, for example /subdomains/my-subdomain?
Thank you very much...
I have created a pdf using tcpdf in php. i have a table with one row and one column. when i put the content from a form which is a textarea, the content in the form flows out of the table border. how can i make it so that it is contained in the border itslef???
Anyone know of a code editing platform that allows users to collaborate in a live environment? For example, google docs but for editing PHP code with others?
I am using PHP, i want to display a string which comes as title of a post, in a textbox as value. if this title has inverted commas then the string value tag of input field terminates on that quote. now as there is an add slash function to add back slashes, is there a similar function to add forward slashes ? but just before quotes, and not any other character