For example, I'm working on a webpage where a user can apply to join a group.
When they click 'Apply' I want it to redirect them to a forum we're members of, more specifically the Private Messaging system, with the subject and body already filled out.
Is this even possible?
The forum is off server, by the way. Owned by someone else.
...
I am using SimpleHtmlDOM PHP quite successfully to scrape some of my favorite webpages. Some of these pages, however, require me to log in before I can get at the information that I really care about. Does anyone know how (or if it's possible) to get this library to access a page that requires a username and password be enterred before y...
I'm calling php lint from a Windows batch file, like so:
@echo off
for %%f in (*.php) do php -l %%f
When a file contains a syntax error, it only outputs Errors parsing xxx.php. Is there any way to get it to tell me what the nature of the error is, and what line it's on? Maybe another switch?
...
Hi, I'm working on a web-app, in which each user has multiple non-local XML files that are downloaded and parsed via SimpleXML each page (re)load. Each request takes a little less than a second on average, however with more than five or six files (which is likely), the load time is quite noticeable. So my question is what factors go into...
Hi, I am trying to write Classes to show some people in my skill test. One of the questions is as follow:
Show how a child would call a parent's method. Show how overloading works. Indicate the syntax for class variables.
I think I got most of the question done but not sure what Indicate the syntax for class variables mean...Could som...
Hello there,
Is it possible to create a http response for requests associated with a different PHP session? If so, how to do that?
I'm creating a script language to make it easier for PHP developers to handle phone interactions. My application receives phone calls and then activates the user scripts associated with those calls.
Scrip...
I inherited a site with a with a large user base. My client is updating their records and I need to import some predetermined passwords for about 900 users into a mysql table. The row that I am importing to seems to encrypt the passwords if I enter them through the php front end. I can get all of the passwords to import into the table us...
hey,
i know it's not possible to get the hashvalue of an url with php, cause it's already executed on the server, but is it possible to write a hashvalue to a url with php like you can do with javascript?
regards matt
...
Hi, I have a problem selecting 6 random friends
This is the query I've got so far:
$result = num_rows("SELECT * FROM friends WHERE member_id = '".$_SESSION['userid']."'");
if($result >= 6) {
$f_num = 6;
} else {
$f_num = $result;
}
for($i = 1; $i <= $f_num; $i++) {
$q_get_member_friends = mysql_query("SELECT * FROM frie...
Hi guys.
I got a skill test for a quick mysql query. I am given the tables:
Orders OrderItems
----------------------------------------
id id
date order_id(Orders.id)
shipping_amount product_id
order_status pr...
I have basic knowledge of PHP and had done a few small personal projects before. Since my programs were small and usually consisted of less than five classes, I jumped into coding right away -- thinking of my database tables and user interface design as I went along. The problem was that I often found myself lost in my own ideas at the m...
Heya,
Just wondering what the exact correct header is to send along when I redirect requests from one server (eg. abc.com) to another (eg. def.com/blog/).
I've got the redirects working right, but always get confused as to the exact header to send along with it.
Any help would be greatly appreciated.
Thanks.
Oliver
...
Figured it out, see Update below.
I'm trying to work with a particular web service via PHP (tried both the native and Zend SOAP clients) and it only returns a failure status.
I suspect that it has something to do with the multiple beans in the retrieveMemberInfo method call (authBean, memberInfoBean).
Could someone take a look at the...
Hello,
I'm using a PHP / MySQL login system, and I'm having issues keeping the user logged in when I navigate around the site.
Would it help if I put session_start(); at the top of each page? (I'm looking for a quick-and-dirty / ham-fisted solution that works rather than an elegant one).
Thanks in advance,
John
...
The following code outputs 43211, why?
echo print('3').'2'.print('4');
...
The Zend Framework uses the new BSD license, right?
http://framework.zend.com/license
I'm developing a CMS that uses ZF.
Look at the third condition of the license. Does that mean that I cannot write, in any place of my CMS's website, that it uses ZF?
Is it illegal ff I write: "... is a Content Management System based on Zend Framewor...
I have formatted english text stored in mysql. When I echo it out with php, I get a whole a lot of "� � � � � ���" instead of where spaces should be. It looks fine in the DB.
Whats the reason for that?
...
I'm trying to convert this PHP cookie parsing snippet into C#, but my PHP is a bit rusty. It's taken from a facebook SDK sample.
<?php
define('FACEBOOK_APP_ID', 'your application id');
define('FACEBOOK_SECRET', 'your application secret');
function get_facebook_cookie($app_id, $application_secret) {
$args = array();
parse_str(t...
I have a view which lists some nodes and I want a custom output for the title of the node. Im using customfield which allows me to write PHP code but I cant find how to output the link to the node? It doesnt appear in the $data object. I can add the field, but still cant use it in the customfield code
...
I want to remove all the line breaks and carriage returns from an XML file so all tags fit on one line each.
XML Source example:
<resources>
<resource>
<id>001</id>
<name>Resource name 1</name>
<desc>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nibh magna, fermentum et pretium vel, malesuada sit amet ...