Hi to all, I'm in need of help - I've got two mysql databases on different servers with a web host, and I need to copy a Joomla installation from one to the other. The problem I have is that the only way I can access the data is via php, as direct odbc connections to the database are locked down.
I don't mind doing it table by table, bu...
It's got to be somewhere in the phpinfo() dump, but I just don't know where. Is it supposed to be under the "Additional Modules" section? Somewhere else? I'm trying to figure out why some extensions don't appear to be loaded, but I don't even know where I should be looking.
...
I'm on a Windows machine. This seems like it should be unnecessary, but when I do it, everything suddenly works. Is there something wrong with my path? Do I need to add something to it to avoid having to copy DLLs?
...
How do i dynamically assign a name to a php object?
for example how would i assign a object to a var that is the id of the db row that i am using to create objects.
for example
$<idnum>= new object();
where idnum is the id from my database.
...
Slightly strange question, but hopefully someone can help.
In essence, if the time was 12pm the the elapsed percentage would be 50%, 6am would be 25% and 16pm would be 75%.
Given the current time, how could you work out the amount of day that already passed?
...
Hi,
Im writing a fairly small web application in PHP and intend on using DOJO to make it "fancy" and most likely handle some validation on the client side (there will be server side validation too).
I would like make JavaScript a requirement for my site, and therefore, if a user's browser has JavaScript disabled, or is not capable of J...
What is the best way to populate records in two tables that each need a reference to the primary key of the other?
My thoughts are either having a "link" table between them which is populated once both have been written to the db or by the following complex series of commands
Insert1
get identity1
Insert2
get identity2
update 1
How...
I've first installed the WAMP server on my system.
It used http://localhost to show my files in the www directory.
But then I installed visual studio 2008. It too uses the http://localhost/
But it doesn't show up. What should I do?
...
In PHP (v5), is there a way to make multiple requests on an open curl connection?
I'm noticing that my big bottleneck is the timeout/teardown of the connection its self (i'm making lots of small data requests that finish quickly), so I would like to be able to do something like open
init curl connection,
set url/params, do request, ge...
I just saw http://uservoice.com/login
It uses google accounts, myspace, yahoo, openid and all to sign in customers into its site? Can I do that?
I mean, customers need not register to my site. They can just sign in with their accounts on the above sites.
If you've a solution, I'd prefer a PHP and MySQL based one.
...
Hi,
I am passing some parameters to my PHP page thru POST request and in the PHP page I am reading it like;
$foo = $this->input->post('myParam');
If the 'myParam' parameter is present in the POST request, then $foo will be assigned the 'myParam' value. But, How do I check if the 'myParam' is not passed in the POST request?
PS: I a...
Hello, i have installed xCache and Zend optimizer in same time and it gives me PHP Fatal error: [Zend Optimizer] Zend Optimizer 3.3.3 is incompatible with XCache 1.2.1 in Unknown on line 0
I have lines in installation document that i should include zend php.ini file to normal php.ini and ansure that xCache runs befor Zend Optimizer.
M...
I have been using the mysql api in PHP, and am now converting to mysqli for the increased security. The example syntax I have seen uses printf, and I would like to know if this is necessary. At the moment I use echo, like so:
echo "<h1>".$row['ARTICLE_NAME']."</h1>
<div id='leftlayer' class='leftlayer'>
<p><strong>Username: </strong>".$...
I know most of the java development tools for Eclipse will have a short-cut script for adding in JavaDoc blocks for needed elements (including the page-level).
Further, I know that PDT will allow you to "Generate Element Comment" for many things through the Source menu.
Is there an Eclipse plug-in out there (or perhaps it exists standa...
I need help running a stored procedure from SQL Server in PHP. PHP is running on a Unix/Linux server. We cannot get OUTPUT variables to return in PHP. The following is the PHP code:
$conn = mssql_connect('server', 'user', 'pass');
mssql_select_db('db', $conn);
$procedure = mssql_init('usp_StoredProc', $conn);
$tmpVar1 =...
Hello. I'm developing a website in PHP and I have large JS files that I want to compress. So, I added this in my .htaccess file:
<FilesMatch "\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
It works great on my local wamp server install but once I move the files on my shared server, the DEFLATE command does n...
EDIT: now the question becomes, how do I tell Sajax to use POST instead of GET? I've tried some examples from google but they are sketchy, and as I said, they didn't work. I know, we're all jQuery nuts around here.
I've used the following code to try and find a limit to the amount of data that can be sent to the server via an ajax cal...
We have a hosted site that has a CMS we built running on a LAMP stack. We noticed that when you save HTML that has a tag embedded in the HTML the request immediately dies. This does not occur on the staging or local development instances of the CMS, so I'm assuming its a server configuration issue. Any ideas what might cause this behavi...
I am not familiar with PHP at all and had a quick question.
I have 2 variables @pricePerUnit and @invoicedUnits. Here's the code that is setting these to values:
$InvoicedUnits = ((string) $InvoiceLineItem->InvoicedUnits);
$pricePerUnit = ((string) $InvoiceLineItem->PricePerUnit);
If I output this, I get the correct values. Lets say ...
We have a webpage that we provide to partner companies via an iFrame. The iFrame contains several javascript files that make ajax requests to our server for data. The iFrame itself requires an API Key that is keyed to the domain of the partner. This prevents the iFrame from displaying if it is installed on a domain that isn't register...