Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~3K People Reached
Favorite Tags
c++ x 17
php x 7
c x 5
Member Avatar for disc

Hi All, I'm trying to access php-code on another url: Local php-code test.php: [CODE]ob_start(); include( "http://www.mysite.eu/ext.php"); echo "Local call!"; echo "External call: ".GetExternal( ); ob_end_flush(); ?>[/CODE] And the code on the other url in ext.php: [CODE]<?php function GetExternal( ) { $output = "This is external text"; return $output; } ?>[/CODE] …

Member Avatar for ohmagoleh
0
74
Member Avatar for disc

Hi all, Since I have a new provider where the error_reporting settings are more tight, I'm having difficulties with the following. The error message is: [INDENT][I]Strict Standards: Creating default object from empty value on the following line:[/I][/INDENT] [CODE]$settings->paths->absolute->site = $_SERVER['DOCUMENT_ROOT']."/qb/";[/CODE] Does anybody know how to get rid of this error? …

Member Avatar for pritaeas
0
66
Member Avatar for disc

Hi all, After moving my PHP-code from a Windows Server to a Linux one I have problems with the $_SESSION variables. When I login an click a menu option, all my $_SESSION variables get cleared and I have to login again. Does anyone recognize this problem and have a solution …

Member Avatar for cwarn23
0
163
Member Avatar for kz07

well, this is my code: [CODE] while(!isdigit(c) || num.length() < 4){ cout << "Enter your four digit pin: "; cin >> num; for(i = 0;i < num.length(); i++){ c = num.at(i); if (isdigit(c)){ pin[i] = atoi(num.substr(i, 1).c_str()); } } if(!isdigit(c) || num.length() < 4){ cout << "Invalid Pin." << endl; …

Member Avatar for kz07
0
1K
Member Avatar for disc

When checking my code with PC-LINT it advised me to make some member-functions const What is the advantage of doing this ?

Member Avatar for disc
0
178
Member Avatar for ROTC89

ok i have everything done for my program but it says i didnt declare myQ i dont understand some help would be nice here is the main #include <iostream> #include "queue.h" using namespace std; int main() { Queue myQ; int i; for(i=0;i<SIZE;i++) { myQ.enqueue(i*2); } myQ.dequeue(); myQ.dequeue(); cout<<myQ.front()<<myQ.back()<<endl; while(!myQ.empty()) { …

Member Avatar for ROTC89
0
123
Member Avatar for disc

Hi All, I want to set the version number of my application and show it in my form. Going through some forums, I read that I had to implement 'Version' in my resource file, so that's what I did. But... after setting the version in the resourcefile to 0.0.0.99 and …

Member Avatar for replic
0
84
Member Avatar for disc

[code] class MyControl : public BaseControl { } class Base { proctected: BaseControl &mControl; } class MyClass : public Base { public: MyClass( MyControl &control ); void ReadControl(); } MyClass::MyClass( MyControl &control ) :Base(control) { } void MyClass::ReadControl( void ) { MyControl &control = (MyControl &)mControl; // <=== ??? control.DoSomething(); …

Member Avatar for disc
0
155
Member Avatar for disc

Hi all, This is my problem: [code] void StartRun( void ) { std::auto_ptr<Validate> val ( new Validate( "input.txt" ) ); val->DoIt( ); } // Destructor Validate::~WValidate( ) { if( mFileIn.is_open()) { mFileIn.close(); } if( mFileOut.is_open() ) { mFileOut.flush(); mFileOut.close(); } } [/code] The function DoIt() makes use of a DLL. …

Member Avatar for WaltP
0
83
Member Avatar for disc

I'm trying to retrieve the name of the computer that my programm is running on. This is the code: [code] TCHAR compName[MAX_COMPUTERNAME_LENGTH + 1]; DWORD cnt = MAX_COMPUTERNAME_LENGTH + 1; std::string name = [COLOR=#800000]""[/COLOR]; [COLOR=#0000ff] if[/COLOR]( GetComputerName( compName, &cnt) ) { name = compName; } [COLOR=#0000ff] return[/COLOR] name; [/code] The …

Member Avatar for disc
0
103
Member Avatar for disc

Goodmorning, Can anyone tell me how to convert a TCHAR to a std::string ?? Thanks....

Member Avatar for disc
0
183
Member Avatar for SHWOO

I am working on a struct. The two requirements are for the user to be able to input an entry and then view it. I have two questions, when entering the data shouldn't I be able to enter spaces when entering the address i.e. 654 smith st and store that …

Member Avatar for disc
0
105
Member Avatar for mocherla14

Suppose we have [code=c] main() { try{ while(error) throw 1st excep } catch(1st excep) { if (condition) we have to jump to 2nd excep is it possible? i am unable to send from this catch to next catch. pls help me with codin/example..........? } catch(2nd excep) { ...... } } …

Member Avatar for disc
0
56
Member Avatar for joelw

ok, i need help writing a program that stores data about a basketball player in a structue. I need to create a structure for players name, players number, and by points the player scored. I need to keep an array of 5 of these structures. Which each element is for …

Member Avatar for may4life
0
187
Member Avatar for disc

Hello, Can anyone tell me what the code beneath means. I've searched but can't find a clear explanation. Maybe someone can give an example of how to use it. Thanks... [code] [COLOR=#0000ff]bool[/COLOR][COLOR=#000000] MyClass::[/COLOR][COLOR=#0000ff]operator[/COLOR][COLOR=#000000]()()[/COLOR] [COLOR=#000000]{ [/COLOR] [COLOR=#000000] ....[/COLOR] [COLOR=#000000]}[/COLOR] [COLOR=#000000]class MyClass[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#0000ff]virtual[/COLOR] [COLOR=#0000ff]bool[/COLOR] [COLOR=#0000ff]operator[/COLOR]()(); } [/code]

Member Avatar for disc
0
157