php

Trying to figure out how to make this rating system work

I am using the script found on this page. I downloaded the whole package found on the page and modified the url to the php file like this: $('#rate').rating('output.php', {maxvalue:5}); And in the output.php I have this. The author of the page says that the post will be calling rating. So that is why I'm using post rating. <?php if(...

Problems with database relations with symfony framework - Cannot fetch TableMap for undefined table

Hello, Currently developing an application using the newest version of symfony, obtained through PEAR. This is my exact schema configuration propel: user: id: name: { type: varchar(255), required: true } level: { type: integer, required: true, default: 1 } created_at: post: id: title: { type: varchar(255)...

APC not recommended for production?

I have started having problems with my VPS in the way that it would faill to serve the pages on all the websites. It just showed a blank page, or offered to download the php file ( luckily the code was not in the download file :) ). The server was still running, but this seemed to be a problem with PHP, since i could login into WHM. If...

Cheap php templating with vprintf?

Ok, so printf/sprint/vprintf all accept a certain type specifier syntax %[num][type]. (http://us2.php.net/sprintf see examples 3 and 4) Where num is the index to the type. Example: vprintf('Number %1$d string %2$s. String %2$s, number %1$d',array(1,"no")); Yes, it is limited... And you would need to maintain the indexes. But it's nativ...

having problem getting the posted array from jquery ...

hi im trying to post a group of array using jquery post method but , am having trouble getting the value of those array how can i get the values of the array that i have sent ? if somebody could help me i would be grateful.... here is what i have done: $(document).ready( function() { $("#submit_info").click ( function() {...

Force string download with http-header

Hi, I'm having a problem with my function. The purpose of my function is to force a string to be downloaded. What it really happens is that the string is outputted to the screen and not downloaded. This is my function: function arrayToCSV($vectorDados, $cabecalho) { $arr = array(); $arr=$vectorDados; $csv = $cabecalho . "\...

Invoke external shell script from PHP and send some input to it

Hi All, my aim is to invoke a shell script from a PHP program and then wait for a few seconds to send some termination key to it (I can't simply kill it because I want to test the correct execution of the termination phase). Here is an example of what I'd like to have: system( "RUNMYSCRIPT.sh" ); // Launch the script and return immedi...

PHP4 on Linux, Dev on Windows... Subversion problem

Hi "Cleanup failed to process the following paths The system cannot find the file specified" Am having this issue with Tortoise SVN going to a SAMBA share.. any thoughts on setup? Its probably permissions getting mucked up, but this setup doesn't feel very robust.. am having to delete the affected directory, then recreate from svn. I...

Accessing user credentials with PHP on IIS 7

Hi all We are installing WordPress MU onto an IIS 7 sever We need to enable single sign on against the AD. We are happy to code the PHP to auto login / create accounts for the users etc. What we need help with is how to we get the users Credential (username,email,name etc.) from the IIS / windows server into PHP variables so we can ...

How to include PHP file in SHTML pages?

I have a shtml file index.shtml in which I want to include a PHP file which performs some programing and returns HTML data. I am trying to include my PHP file but I don't know how to do that, I tried following but nothing is working, Following line is just printing an error, "[an error occurred while processing this directive] ": <!--...

PHP XML Parser - ignoring nested/child tags

I've got a situation where I'm using an XML parser to extract data from a php://input. The data being sent in looks like:- <this>foo</this> <that>bar></that> <data><dong>zebras</dong><fong>monkeys</fong></data> Now, the issue is that because the handler:- $xml_parser = xml_parser_create(); xml_parser_set_option($xml_parser...

cake's Acl problems...

I created an application using the method described in the "http:// book.cakephp.org/view/641/Simple-Acl-controlled-Application" but after I try to log in there is an error which says, "DbAcl::allow() - Invalid node [CORE\cake\libs\controller\components\acl.php, line 325]" I did exactly same as mentioned in the website but after loggin ...

PHPBB3 How to display Last Post Title in index

I am using the prosilver theme in phpbb3. In the file forumlist_body.html there is a part that looks like this: <dd class="lastpost"><span> <!-- IF forumrow.LAST_POST_TIME --> <dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL} <!-- IF not S_IS_BOT --> <a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- E...

How can i return and process results from running a .bat file from PHP

I have a PHP script that executes a .bat file using system("cmd /c C:\dir\file.bat"); This launches an AWS server and returns info such as the id of the server started. I need to use this id in the script later on. How can I return the results from the .bat file to PHP and then how can I extract the id from the rest of the results. I...

My script stops after a foreach loop

Hi, My script is acting strange. After a foreach loop, the script stops. I don't have any error, any warning or notice from Apache. This is the code: foreach($clientFact as $line) { $cliTemp1[] = $line["idcliente"]; echo "qwerty"; } echo "123"; If I add an "echo(qwerty")" inside the loop, it will show the "qwerty" but, right ...

ASP.Net (C#) & MSQL -or- PHP & MySQL for Performance?

Money, Staff, Skill and preference to open source or commercial is neutral. Lets take the best of the best programmers (for arguments sake) and think about this: What will perform better overall: PHP & MySQL or ASP.Net & Microsoft SQL (I don't want biased answers, just looking for Performance, and Speed). ...

Prevent IIS7 rewrite from adding "index.php" to path on redirect?

Hi, I am trying to configure rewrite rules for a Wordpress MU 2.7 on IIS7 with PHP5 (fastcgi). At the moment I only have the following rewrite rule in Web.config: <rule name="Canonical Host Name" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll"> <add...

Can someone point me to advanced tutorial (course) available for wordpress programming?

Exact Duplicate: Tell me a good tutorial to become a wordpress expert design and programming Can someone point me to advanced tutorial (course) available for wordpress programming? ...

string to byte/binary arrays in php

How do I convert a string to a binary array in php? ...

How do I create a CMS for a news portal?

OK I'll try again, sorry if it's too simple for you; we all have to start somewhere. I need to use a webpage to specify the layout of the newspaper ie header, footer and news areas. This is produced by an HTML page which I have created [the one with check boxes and a create button]. A second web page is to add content to the various ...